Skip to content

Commit

Permalink
test: test
Browse files Browse the repository at this point in the history
  • Loading branch information
lzf575 committed Jan 22, 2025
1 parent 6f50ff5 commit b9725ac
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions server/cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ import (
"github.com/deepflowio/deepflow/server/ingester/droplet/profiler"
"github.com/deepflowio/deepflow/server/ingester/ingester"
"github.com/deepflowio/deepflow/server/ingester/ingesterctl"
"github.com/deepflowio/deepflow/server/libs/ckdb"
"github.com/deepflowio/deepflow/server/libs/debug"
"github.com/deepflowio/deepflow/server/libs/logger"
"github.com/deepflowio/deepflow/server/libs/nativetag"
"github.com/deepflowio/deepflow/server/querier/querier"

logging "github.com/op/go-logging"
Expand Down Expand Up @@ -105,6 +107,22 @@ func main() {
report.SetServerInfo(Branch, RevCount, Revision)

shared := common.NewControllerIngesterShared()
common.UpdateNativeTag(true,
1,
nativetag.DEEPFLOW_ADMIN,
&nativetag.NativeTag{
AttributeNames: []string{"host", "table", "metrics_count", "duration"},
ColumnNames: []string{"host", "table", "metrics_count", "duration"},
ColumnTypes: []ckdb.ColumnType{ckdb.String, ckdb.String, ckdb.Int64, ckdb.Float64},
})
common.UpdateNativeTag(true,
1,
nativetag.DEEPFLOW_TENANT,
&nativetag.NativeTag{
AttributeNames: []string{"host", "type", "count", "queue_capacity"},
ColumnNames: []string{"host", "type", "count", "queue_capacity"},
ColumnTypes: []ckdb.ColumnType{ckdb.String, ckdb.String, ckdb.Int64, ckdb.Float64},
})

go controller.Start(ctx, *configPath, cfg.LogFile, shared)

Expand Down

0 comments on commit b9725ac

Please sign in to comment.