Skip to content

Commit

Permalink
feat: controller support native field
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaochaoren1 authored and sharang committed Feb 15, 2025
1 parent 6abf224 commit d9c2893
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/controller/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import (
"github.com/deepflowio/deepflow/server/controller/http/router"
"github.com/deepflowio/deepflow/server/controller/manager"
"github.com/deepflowio/deepflow/server/controller/monitor"
"github.com/deepflowio/deepflow/server/controller/native_field"
"github.com/deepflowio/deepflow/server/controller/prometheus"
"github.com/deepflowio/deepflow/server/controller/recorder"
"github.com/deepflowio/deepflow/server/controller/report"
Expand Down Expand Up @@ -163,6 +164,8 @@ func Start(ctx context.Context, configPath, serverLogFile string, shared *server
controllerCheck := monitor.NewControllerCheck(cfg, ctx)
analyzerCheck := monitor.NewAnalyzerCheck(cfg, ctx)
go checkAndStartMasterFunctions(cfg, ctx, controllerCheck, analyzerCheck)
// native field
native_field.Refresh()

router.SetInitStageForHealthChecker("Register routers init")
httpServer.SetControllerChecker(controllerCheck)
Expand Down
3 changes: 3 additions & 0 deletions server/controller/native_field/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/deepflowio/deepflow/server/controller/native_field

go 1.18
20 changes: 20 additions & 0 deletions server/controller/native_field/native_field.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) 2024 Yunshan Networks
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package native_field

func Refresh() {
}
2 changes: 2 additions & 0 deletions server/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ replace (
github.com/deepflowio/deepflow/server/controller/http/service/agentlicense => ./controller/http/service/agentlicense
github.com/deepflowio/deepflow/server/controller/http/service/configuration => ./controller/http/service/configuration
github.com/deepflowio/deepflow/server/controller/monitor/license => ./controller/monitor/license
github.com/deepflowio/deepflow/server/controller/native_field => ./controller/native_field
github.com/deepflowio/deepflow/server/ingester/config/configdefaults => ./ingester/config/configdefaults
github.com/deepflowio/deepflow/server/ingester/flow_log/log_data/dd_import => ./ingester/flow_log/log_data/dd_import
github.com/deepflowio/deepflow/server/ingester/flow_log/log_data/sw_import => ./ingester/flow_log/log_data/sw_import
Expand Down Expand Up @@ -110,6 +111,7 @@ require (
github.com/bytedance/sonic v1.12.5
github.com/deepflowio/deepflow/server/controller/http/appender v0.0.0-00010101000000-000000000000
github.com/deepflowio/deepflow/server/controller/http/service/agentlicense v0.0.0-00010101000000-000000000000
github.com/deepflowio/deepflow/server/controller/native_field v0.0.0-00010101000000-000000000000
github.com/deepflowio/deepflow/server/ingester/flow_log/log_data/dd_import v0.0.0-00010101000000-000000000000
github.com/deepflowio/deepflow/server/ingester/flow_log/log_data/sw_import v0.0.0-00010101000000-000000000000
github.com/deepflowio/deepflow/server/libs/logger/blocker v0.0.0-20240822020041-cdaf0f82ce6f
Expand Down

0 comments on commit d9c2893

Please sign in to comment.