Muehlenhoff has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/398867 )
Change subject: Add labmon Prometheus scraper config for PowerDNS
......................................................................
Add labmon Prometheus scraper config for PowerDNS
Change-Id: Ia50f38ad8c8f9e7456abb06b43380d5ea047a4a4
---
M modules/role/manifests/labs/prometheus.pp
1 file changed, 18 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/67/398867/1
diff --git a/modules/role/manifests/labs/prometheus.pp
b/modules/role/manifests/labs/prometheus.pp
index 225fb12..c54b34e 100644
--- a/modules/role/manifests/labs/prometheus.pp
+++ b/modules/role/manifests/labs/prometheus.pp
@@ -40,6 +40,16 @@
},
]
+ $pdns_jobs = [
+ {
+ 'job_name' => 'pdns',
+ '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
@@ -58,6 +68,13 @@
port => '9195',
}
+ prometheus::class_config{ "pdns_${::site}":
+ dest => "${targets_path}/pdns_${::site}.yaml",
+ site => $::site,
+ class_name => 'role::wmcs::openstack::main::services_primary',
+ port => '9192',
+ }
+
prometheus::server { 'labs':
storage_encoding => '2',
listen_address => ':9900',
@@ -65,7 +82,7 @@
max_chunks_to_persist => $max_chunks_to_persist,
memory_chunks => $memory_chunks,
scrape_configs_extra => array_concat(
- $blackbox_jobs, $rabbitmq_jobs
+ $blackbox_jobs, $rabbitmq_jobs, $pdns_jobs,
),
}
--
To view, visit https://gerrit.wikimedia.org/r/398867
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia50f38ad8c8f9e7456abb06b43380d5ea047a4a4
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