Role service-prometheus: query kea-exporter

This commit is contained in:
Julian Labus 2019-05-31 13:45:36 +02:00
parent 6a4498c436
commit 3e8bc8d37c
No known key found for this signature in database
GPG key ID: 8AF209F2C6B3572A

View file

@ -56,6 +56,19 @@ scrape_configs:
replacement: '$1' replacement: '$1'
target_label: hostname target_label: hostname
- job_name: "dhcpd"
scheme: "https"
static_configs:
- targets:
{% for host in groups['gateways'] %}
- '{{ host }}:9547'
{% endfor %}
relabel_configs:
- source_labels: [__address__]
regex: '([a-z]+)\..*'
replacement: '$1'
target_label: hostname
{% for job in ['icmp4','icmp6'] %} {% for job in ['icmp4','icmp6'] %}
- job_name: "{{ job }}" - job_name: "{{ job }}"
metrics_path: /probe metrics_path: /probe