Merge branch 'add-federation-setting' of kazu634/itamae into master

This commit is contained in:
Kazuhiro MUSASHI 2020-07-18 20:24:05 +09:00 committed by Gitea
commit 568bcf0538
1 changed files with 15 additions and 0 deletions

View File

@ -20,6 +20,21 @@ rule_files:
# Here it's Prometheus itself.
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'federate'
scrape_interval: 15s
honor_labels: true
metrics_path: '/federate'
params:
'match[]':
- '{job="prometheus"}'
- '{__name__=~"job:.*"}'
static_configs:
- targets:
- '192.168.10.204:9090'
- job_name: 'prometheus'
# metrics_path defaults to '/metrics'