Muehlenhoff has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/398865 )
Change subject: Add Prometheus scraper configs for WDQS updater and Blazegraph
......................................................................
Add Prometheus scraper configs for WDQS updater and Blazegraph
Change-Id: Iecdcb639a2b52099a0da595c627e1cb59fa5d9dd
---
M modules/role/manifests/prometheus/ops.pp
1 file changed, 36 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/65/398865/1
diff --git a/modules/role/manifests/prometheus/ops.pp
b/modules/role/manifests/prometheus/ops.pp
index bc2b7b3..7af9500 100644
--- a/modules/role/manifests/prometheus/ops.pp
+++ b/modules/role/manifests/prometheus/ops.pp
@@ -578,6 +578,40 @@
port => '9198',
}
+ $wdqs_updater_jobs = [
+ {
+ 'job_name' => 'wdqs_updater',
+ 'scheme' => 'http',
+ 'file_sd_configs' => [
+ { 'files' => [ "${targets_path}/wdqs_updater_*.yaml" ]}
+ ],
+ },
+ ]
+
+ prometheus::class_config{ "wdqs_updater_${::site}":
+ dest => "${targets_path}/wdqs_updater_${::site}.yaml",
+ site => $::site,
+ class_name => 'role::wdqs',
+ port => '9194',
+ }
+
+ $blazegraph_jobs = [
+ {
+ 'job_name' => 'blazegraph',
+ 'scheme' => 'http',
+ 'file_sd_configs' => [
+ { 'files' => [ "${targets_path}/blazegraph_*.yaml" ]}
+ ],
+ },
+ ]
+
+ prometheus::class_config{ "blazegraph_${::site}":
+ dest => "${targets_path}/blazegraph_${::site}.yaml",
+ site => $::site,
+ class_name => 'role::wdqs',
+ port => '9193',
+ }
+
# redis_exporter runs alongside each redis instance, thus drop the
(uninteresting in this
# case) 'addr' and 'alias' labels
$redis_exporter_relabel = {
@@ -736,7 +770,8 @@
$apache_jobs, $etcd_jobs, $etcdmirror_jobs, $pdu_jobs,
$nginx_jobs, $pybal_jobs, $blackbox_jobs, $jmx_exporter_jobs,
$redis_jobs, $mtail_jobs, $ldap_jobs, $ircd_jobs, $pdns_rec_jobs,
- $etherpad_jobs, $elasticsearch_jobs,
+ $etherpad_jobs, $elasticsearch_jobs, $wdqs_updater_jobs,
+ $blazegraph_jobs,
),
global_config_extra => $config_extra,
}
--
To view, visit https://gerrit.wikimedia.org/r/398865
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iecdcb639a2b52099a0da595c627e1cb59fa5d9dd
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