Skip to content

Commit

Permalink
PMM-12712 Renaming.
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriCtvrtka committed Jan 8, 2024
1 parent 67f8380 commit 16c1f11
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions managed/services/agents/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ func v225Args(exporter *models.Agent, tdp *models.DelimiterPair, listenAddress s
enableParam: "--collector.topmetrics",
},
// disabled until we have better information on the resources usage impact
"sharded": {
"shards": {
enabled: false,
enableParam: "--collector.sharded",
enableParam: "--collector.shards",
},
}

Expand Down Expand Up @@ -258,9 +258,9 @@ func defaultCollectors(collectAll bool) map[string]collectorArgs {
enableParam: "--collector.topmetrics",
},
// disabled until we have better information on the resources usage impact
"sharded": {
"shards": {
enabled: collectAll,
enableParam: "--collector.sharded",
enableParam: "--collector.shards",
},
}
}
Expand Down
6 changes: 3 additions & 3 deletions managed/services/agents/mongodb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func TestMongodbExporterConfig226(t *testing.T) {
"--collector.diagnosticdata",
"--collector.indexstats",
"--collector.replicasetstatus",
"--collector.sharded",
"--collector.shards",
"--collector.topmetrics",
"--compatible-mode",
"--discovering-mode",
Expand All @@ -189,7 +189,7 @@ func TestMongodbExporterConfig226(t *testing.T) {
"--collector.diagnosticdata",
"--collector.indexstats",
"--collector.replicasetstatus",
"--collector.sharded",
"--collector.shards",
"--collector.topmetrics",
"--compatible-mode",
"--discovering-mode",
Expand Down Expand Up @@ -219,7 +219,7 @@ func TestMongodbExporterConfig226(t *testing.T) {
"--collector.diagnosticdata",
"--collector.indexstats",
"--collector.replicasetstatus",
"--collector.sharded",
"--collector.shards",
"--collector.topmetrics",
"--compatible-mode",
"--discovering-mode",
Expand Down
2 changes: 1 addition & 1 deletion managed/services/victoriametrics/scrape_configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ func scrapeConfigsForMongoDBExporter(s *models.MetricsResolutions, params *scrap
"dbstats",
"indexstats",
"collstats",
"sharded",
"shards",
})
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion managed/services/victoriametrics/scrape_configs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ func TestScrapeConfig(t *testing.T) {
ScrapeTimeout: scrapeTimeout(s.LR),
MetricsPath: "/metrics",
Params: map[string][]string{
"collect[]": {"collstats", "dbstats", "indexstats", "sharded"},
"collect[]": {"collstats", "dbstats", "indexstats", "shards"},
},
HTTPClientConfig: config.HTTPClientConfig{
BasicAuth: &config.BasicAuth{
Expand Down
2 changes: 1 addition & 1 deletion managed/services/victoriametrics/victoriametrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ scrape_configs:
- collstats
- dbstats
- indexstats
- sharded
- shards
scrape_interval: 1m
scrape_timeout: 54s
metrics_path: /metrics
Expand Down

0 comments on commit 16c1f11

Please sign in to comment.