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