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