summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/server/templates/targets/generic.yml.j2
blob: 341cb45acf78f07750cbb0583956b6e55fde039d (plain) (blame)
1
2
3
- targets: [ '{{ (target.instance == prometheus_server) | ternary('127.0.0.1:9999', hostvars[target.instance].prometheus_scrape_endpoint) }}' ]
  labels:
    instance: '{{ target.instance }}'