mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-04 20:06:12 +02:00
config: add consul health_filter fixture coverage
Signed-off-by: Mohammad Varmazyar <mrvarmazyar@gmail.com>
This commit is contained in:
parent
fac097b161
commit
06b7f1f625
@ -481,6 +481,7 @@ var expectedConf = &Config{
|
||||
PathPrefix: "/consul",
|
||||
Token: "mysecret",
|
||||
Services: []string{"nginx", "cache", "mysql"},
|
||||
HealthFilter: `Service.Tags contains "canary"`,
|
||||
ServiceTags: []string{"canary", "v1"},
|
||||
NodeMeta: map[string]string{"rack": "123"},
|
||||
TagSeparator: consul.DefaultSDConfig.TagSeparator,
|
||||
|
||||
1
config/testdata/conf.good.yml
vendored
1
config/testdata/conf.good.yml
vendored
@ -182,6 +182,7 @@ scrape_configs:
|
||||
token: mysecret
|
||||
path_prefix: /consul
|
||||
services: ["nginx", "cache", "mysql"]
|
||||
health_filter: 'Service.Tags contains "canary"'
|
||||
tags: ["canary", "v1"]
|
||||
node_meta:
|
||||
rack: "123"
|
||||
|
||||
1
config/testdata/roundtrip.good.yml
vendored
1
config/testdata/roundtrip.good.yml
vendored
@ -41,6 +41,7 @@ scrape_configs:
|
||||
- server: localhost:1234
|
||||
token: <secret>
|
||||
services: [nginx, cache, mysql]
|
||||
health_filter: 'Service.Tags contains "canary"'
|
||||
tags: [canary, v1]
|
||||
node_meta:
|
||||
rack: "123"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user