Skip to content

Commit

Permalink
refine malachite fetcher implementation to cache cgroup path
Browse files Browse the repository at this point in the history
  • Loading branch information
waynepeking348 committed Jul 30, 2023
1 parent a58378c commit 1ed02a0
Show file tree
Hide file tree
Showing 17 changed files with 673 additions and 667 deletions.
2 changes: 1 addition & 1 deletion pkg/metaserver/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func NewMetaAgent(conf *config.Configuration, clientSet *client.GenericClientSet
}

if conf.EnableMetricsFetcher {
metaAgent.MetricsFetcher = malachite.NewMalachiteMetricsFetcher(emitter, conf)
metaAgent.MetricsFetcher = malachite.NewMalachiteMetricsFetcher(emitter, metaAgent, conf)
} else {
metaAgent.MetricsFetcher = metric.NewFakeMetricsFetcher(emitter)
}
Expand Down
157 changes: 0 additions & 157 deletions pkg/metaserver/agent/metric/malachite/cgroup/cgroup_test.go

This file was deleted.

0 comments on commit 1ed02a0

Please sign in to comment.