feat: review prometheus label
This commit is contained in:
parent
d3a1b4178c
commit
2470faf2c7
@ -61,19 +61,30 @@ scrape_configs:
|
|||||||
- source_labels: ['__meta_consul_tags']
|
- source_labels: ['__meta_consul_tags']
|
||||||
regex: '(.*)http(.*)'
|
regex: '(.*)http(.*)'
|
||||||
action: keep
|
action: keep
|
||||||
|
- source_labels: ['__meta_consul_dc']
|
||||||
|
target_label: 'dc'
|
||||||
|
- source_labels: [__meta_consul_node]
|
||||||
|
target_label: instance
|
||||||
|
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
metrics_path: /v1/metrics
|
metrics_path: /v1/metrics
|
||||||
params:
|
params:
|
||||||
format: ['prometheus']
|
format: ['prometheus']
|
||||||
- job_name: 'traefik-local'
|
- job_name: 'traefik'
|
||||||
consul_sd_configs:
|
consul_sd_configs:
|
||||||
- server: 'consul.service.consul:8500'
|
- server: 'consul.service.consul:8500'
|
||||||
services: ['traefik-local-admin','traefik-admin']
|
services: ['traefik-local-admin','traefik-admin']
|
||||||
|
relabel_configs:
|
||||||
|
- source_labels: ['__meta_consul_service']
|
||||||
|
target_label: instance
|
||||||
|
|
||||||
- job_name: 'alertmanager'
|
- job_name: 'alertmanager'
|
||||||
consul_sd_configs:
|
consul_sd_configs:
|
||||||
- server: 'consul.service.consul:8500'
|
- server: 'consul.service.consul:8500'
|
||||||
services: ['alertmanager']
|
services: ['alertmanager']
|
||||||
|
relabel_configs:
|
||||||
|
- source_labels: ['__meta_consul_dc']
|
||||||
|
target_label: instance
|
||||||
|
|
||||||
- job_name: 'crowdsec'
|
- job_name: 'crowdsec'
|
||||||
consul_sd_configs:
|
consul_sd_configs:
|
||||||
|
Loading…
Reference in New Issue
Block a user