blob: 90b70003ec65429dcd7074e6d8c9a22a716c3bc9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
- targets: [ '{{ (target.exporter_hostname == prometheus_server) | ternary('127.0.0.1:9999', hostvars[target.exporter_hostname].prometheus_scrape_endpoint) }}' ]
labels:
instance: '{{ target.instance }}'
snmp_instance: '{{ target.config.snmp_instance }}'
__param_target: '{{ target.config.target }}'
__param_module: '{{ target.config.module }}'
{% if 'auth' in target.config %}
__param_auth: '{{ target.config.auth }}'
{% endif %}
{% for name, value in prometheus_target_labels.items() %}
{{ name }}: '{{ value }}'
{% endfor %}
|