summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/exporter/register/templates/generic.yml.j2
blob: f269cf3a65a20269c5b27785db2b479113a4b139 (plain) (blame)
1
2
3
4
5
6
- targets: [ '{{ (target.instance == prometheus_server) | ternary('127.0.0.1:9999', hostvars[target.instance].prometheus_scrape_endpoint) }}' ]
  labels:
    instance: '{{ target.instance }}'
{% for name, value in prometheus_target_labels.items() %}
    {{ name }}: '{{ value }}'
{% endfor %}