diff --git a/managed/services/victoriametrics/scrape_configs_test.go b/managed/services/victoriametrics/scrape_configs_test.go index 7f12e179191..695afd970c9 100644 --- a/managed/services/victoriametrics/scrape_configs_test.go +++ b/managed/services/victoriametrics/scrape_configs_test.go @@ -55,7 +55,7 @@ func TestScrapeConfig(t *testing.T) { } expected := []*config.ScrapeConfig{{ - JobName: "node_exporter_75bb30d3-ef4a-4147-97a8-621a996611dd_hr", + JobName: "node_exporter75bb30d3-ef4a-4147-97a8-621a996611dd_hr", ScrapeInterval: config.Duration(s.HR), ScrapeTimeout: scrapeTimeout(s.HR), MetricsPath: "/metrics", @@ -98,7 +98,7 @@ func TestScrapeConfig(t *testing.T) { "vmstat", }}, }, { - JobName: "node_exporter_75bb30d3-ef4a-4147-97a8-621a996611dd_mr", + JobName: "node_exporter75bb30d3-ef4a-4147-97a8-621a996611dd_mr", ScrapeInterval: config.Duration(s.MR), ScrapeTimeout: scrapeTimeout(s.MR), MetricsPath: "/metrics", @@ -127,7 +127,7 @@ func TestScrapeConfig(t *testing.T) { "textfile.mr", }}, }, { - JobName: "node_exporter_75bb30d3-ef4a-4147-97a8-621a996611dd_lr", + JobName: "node_exporter75bb30d3-ef4a-4147-97a8-621a996611dd_lr", ScrapeInterval: config.Duration(s.LR), ScrapeTimeout: scrapeTimeout(s.LR), MetricsPath: "/metrics", @@ -189,7 +189,7 @@ func TestScrapeConfig(t *testing.T) { } expected := []*config.ScrapeConfig{{ - JobName: "node_exporter_75bb30d3-ef4a-4147-97a8-621a996611dd_hr", + JobName: "node_exporter75bb30d3-ef4a-4147-97a8-621a996611dd_hr", ScrapeInterval: config.Duration(s.HR), ScrapeTimeout: scrapeTimeout(s.HR), MetricsPath: "/metrics", @@ -258,7 +258,7 @@ func TestScrapeConfig(t *testing.T) { } expected := []*config.ScrapeConfig{{ - JobName: "mysqld_exporter_75bb30d3-ef4a-4147-97a8-621a996611dd_hr", + JobName: "mysqld_exporter75bb30d3-ef4a-4147-97a8-621a996611dd_hr", ScrapeInterval: config.Duration(s.HR), ScrapeTimeout: scrapeTimeout(s.HR), MetricsPath: "/metrics", @@ -292,7 +292,7 @@ func TestScrapeConfig(t *testing.T) { "standard.process", }}, }, { - JobName: "mysqld_exporter_75bb30d3-ef4a-4147-97a8-621a996611dd_mr", + JobName: "mysqld_exporter75bb30d3-ef4a-4147-97a8-621a996611dd_mr", ScrapeInterval: config.Duration(s.MR), ScrapeTimeout: scrapeTimeout(s.MR), MetricsPath: "/metrics", @@ -331,7 +331,7 @@ func TestScrapeConfig(t *testing.T) { "slave_status", }}, }, { - JobName: "mysqld_exporter_75bb30d3-ef4a-4147-97a8-621a996611dd_lr", + JobName: "mysqld_exporter75bb30d3-ef4a-4147-97a8-621a996611dd_lr", ScrapeInterval: config.Duration(s.LR), ScrapeTimeout: scrapeTimeout(s.LR), MetricsPath: "/metrics", @@ -412,7 +412,7 @@ func TestScrapeConfig(t *testing.T) { } expected := []*config.ScrapeConfig{{ - JobName: "mysqld_exporter_75bb30d3-ef4a-4147-97a8-621a996611dd_hr", + JobName: "mysqld_exporter75bb30d3-ef4a-4147-97a8-621a996611dd_hr", ScrapeInterval: config.Duration(s.HR), ScrapeTimeout: scrapeTimeout(s.HR), MetricsPath: "/metrics", @@ -445,7 +445,7 @@ func TestScrapeConfig(t *testing.T) { "standard.process", }}, }, { - JobName: "mysqld_exporter_75bb30d3-ef4a-4147-97a8-621a996611dd_mr", + JobName: "mysqld_exporter75bb30d3-ef4a-4147-97a8-621a996611dd_mr", ScrapeInterval: config.Duration(s.MR), ScrapeTimeout: scrapeTimeout(s.MR), MetricsPath: "/metrics", @@ -482,7 +482,7 @@ func TestScrapeConfig(t *testing.T) { "slave_status", }}, }, { - JobName: "mysqld_exporter_75bb30d3-ef4a-4147-97a8-621a996611dd_lr", + JobName: "mysqld_exporter75bb30d3-ef4a-4147-97a8-621a996611dd_lr", ScrapeInterval: config.Duration(s.LR), ScrapeTimeout: scrapeTimeout(s.LR), MetricsPath: "/metrics", @@ -559,7 +559,7 @@ func TestScrapeConfig(t *testing.T) { } expected := []*config.ScrapeConfig{{ - JobName: "mysqld_exporter_75bb30d3-ef4a-4147-97a8-621a996611dd_hr", + JobName: "mysqld_exporter75bb30d3-ef4a-4147-97a8-621a996611dd_hr", ScrapeInterval: config.Duration(s.HR), ScrapeTimeout: scrapeTimeout(s.HR), MetricsPath: "/metrics", @@ -590,7 +590,7 @@ func TestScrapeConfig(t *testing.T) { "standard.process", }}, }, { - JobName: "mysqld_exporter_75bb30d3-ef4a-4147-97a8-621a996611dd_mr", + JobName: "mysqld_exporter75bb30d3-ef4a-4147-97a8-621a996611dd_mr", ScrapeInterval: config.Duration(s.MR), ScrapeTimeout: scrapeTimeout(s.MR), MetricsPath: "/metrics", @@ -625,7 +625,7 @@ func TestScrapeConfig(t *testing.T) { "slave_status", }}, }, { - JobName: "mysqld_exporter_75bb30d3-ef4a-4147-97a8-621a996611dd_lr", + JobName: "mysqld_exporter75bb30d3-ef4a-4147-97a8-621a996611dd_lr", ScrapeInterval: config.Duration(s.LR), ScrapeTimeout: scrapeTimeout(s.LR), MetricsPath: "/metrics", @@ -717,7 +717,7 @@ func TestScrapeConfig(t *testing.T) { expected := []*config.ScrapeConfig{ { - JobName: "mongodb_exporter_75bb30d3-ef4a-4147-97a8-621a996611dd_hr", + JobName: "mongodb_exporter75bb30d3-ef4a-4147-97a8-621a996611dd_hr", ScrapeInterval: config.Duration(s.HR), ScrapeTimeout: scrapeTimeout(s.HR), MetricsPath: "/metrics", @@ -747,7 +747,7 @@ func TestScrapeConfig(t *testing.T) { }}, }, }, { - JobName: "mongodb_exporter_75bb30d3-ef4a-4147-97a8-621a996611dd_lr", + JobName: "mongodb_exporter75bb30d3-ef4a-4147-97a8-621a996611dd_lr", ScrapeInterval: config.Duration(s.LR), ScrapeTimeout: scrapeTimeout(s.LR), MetricsPath: "/metrics", @@ -835,7 +835,7 @@ func TestScrapeConfig(t *testing.T) { } expected := []*config.ScrapeConfig{{ - JobName: "postgres_exporter_75bb30d3-ef4a-4147-97a8-621a996611dd_hr", + JobName: "postgres_exporter75bb30d3-ef4a-4147-97a8-621a996611dd_hr", ScrapeInterval: config.Duration(s.HR), ScrapeTimeout: scrapeTimeout(s.HR), MetricsPath: "/metrics", @@ -868,7 +868,7 @@ func TestScrapeConfig(t *testing.T) { "standard.go", }}, }, { - JobName: "postgres_exporter_75bb30d3-ef4a-4147-97a8-621a996611dd_mr", + JobName: "postgres_exporter75bb30d3-ef4a-4147-97a8-621a996611dd_mr", ScrapeInterval: config.Duration(s.MR), ScrapeTimeout: scrapeTimeout(s.MR), MetricsPath: "/metrics", @@ -898,7 +898,7 @@ func TestScrapeConfig(t *testing.T) { "custom_query.mr", }}, }, { - JobName: "postgres_exporter_75bb30d3-ef4a-4147-97a8-621a996611dd_lr", + JobName: "postgres_exporter75bb30d3-ef4a-4147-97a8-621a996611dd_lr", ScrapeInterval: config.Duration(s.LR), ScrapeTimeout: scrapeTimeout(s.LR), MetricsPath: "/metrics", @@ -1162,7 +1162,7 @@ func TestScrapeConfig(t *testing.T) { } expected := []*config.ScrapeConfig{{ - JobName: "external-exporter_75bb30d3-ef4a-4147-97a8-621a996611dd_mr", + JobName: "external-exporter75bb30d3-ef4a-4147-97a8-621a996611dd_mr", ScrapeInterval: config.Duration(s.HR), ScrapeTimeout: scrapeTimeout(s.HR), ServiceDiscoveryConfig: config.ServiceDiscoveryConfig{ @@ -1210,7 +1210,7 @@ func TestScrapeConfig(t *testing.T) { } expected := []*config.ScrapeConfig{{ - JobName: "external-exporter_75bb30d3-ef4a-4147-97a8-621a996611dd_mr", + JobName: "external-exporter75bb30d3-ef4a-4147-97a8-621a996611dd_mr", ScrapeInterval: config.Duration(s.HR), ScrapeTimeout: scrapeTimeout(s.HR), MetricsPath: "/some-metric-path",