Muehlenhoff has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/399422 )
Change subject: Add PowerDNS Recursor scraper config on labmon1001
......................................................................
Add PowerDNS Recursor scraper config on labmon1001
Change-Id: I098d0290b5f55d5ffd1acc9333cf618d1a93b4a3
---
M modules/role/manifests/labs/prometheus.pp
1 file changed, 18 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/22/399422/1
diff --git a/modules/role/manifests/labs/prometheus.pp
b/modules/role/manifests/labs/prometheus.pp
index c54b34e..2891056 100644
--- a/modules/role/manifests/labs/prometheus.pp
+++ b/modules/role/manifests/labs/prometheus.pp
@@ -50,6 +50,16 @@
},
]
+ $pdns_rec_jobs = [
+ {
+ 'job_name' => 'pdns_rec',
+ 'scheme' => 'http',
+ 'file_sd_configs' => [
+ { 'files' => [ "${targets_path}/pdns_*.yaml" ] }
+ ],
+ },
+ ]
+
file { "${targets_path}/blackbox_http_keystone.yaml":
content => ordered_yaml([{
'targets' => ['labcontrol1001.wikimedia.org:5000/v3', # keystone
@@ -75,6 +85,13 @@
port => '9192',
}
+ prometheus::class_config{ "pdns_rec_${::site}":
+ dest => "${targets_path}/pdns_rec_${::site}.yaml",
+ site => $::site,
+ class_name => 'role::wmcs::openstack::main::services_primary',
+ port => '9199',
+ }
+
prometheus::server { 'labs':
storage_encoding => '2',
listen_address => ':9900',
@@ -83,6 +100,7 @@
memory_chunks => $memory_chunks,
scrape_configs_extra => array_concat(
$blackbox_jobs, $rabbitmq_jobs, $pdns_jobs,
+ $pdns_rec_jobs,
),
}
--
To view, visit https://gerrit.wikimedia.org/r/399422
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I098d0290b5f55d5ffd1acc9333cf618d1a93b4a3
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Muehlenhoff <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits