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