Skip to content

Commit 1f975ca

Browse files
committed
putting everythin to the final order
1 parent d15bfcf commit 1f975ca

File tree

1 file changed

+1
-5
lines changed
  • modules/enableit/common/manifests/monitor/exporter

1 file changed

+1
-5
lines changed

modules/enableit/common/manifests/monitor/exporter/dns.pp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@
4242
"-test-hosts ${_domains.join(',')}",
4343
"-test-interval-seconds ${interval_seconds}",
4444
]
45-
$_scrape_config = {
46-
'certname' => $::trusted['certname'],
47-
# 'relabel_configs' => '[{"action":"drop","source_labels":["result"]}]',
48-
}
4945
prometheus::daemon { 'dns_exporter':
5046
package_name => 'obmondo-dns-exporter',
5147
version => '1.0.13',
@@ -64,7 +60,7 @@
6460
scrape_port => Integer($listen_address.split(':')[1]),
6561
scrape_host => $trusted['certname'],
6662
scrape_job_name => 'dns',
67-
scrape_job_labels => $_scrape_config,
63+
scrape_job_labels => { 'certname' => $::trusted['certname'] },
6864
}
6965
# NOTE: This is a daemon-reload, which will do a daemon-reload in noop mode.
7066
# upstream module cant handle noop. (which is correct)

0 commit comments

Comments
 (0)