Alexandros Kosiaris has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/399380 )
Change subject: Instruct prometheus to gather postgresql metrics
......................................................................
Instruct prometheus to gather postgresql metrics
Bug: T179306
Change-Id: Idaab0d14a520e9113ac86c3d275cd2e534e605b3
---
M modules/role/manifests/prometheus/ops.pp
1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/80/399380/1
diff --git a/modules/role/manifests/prometheus/ops.pp
b/modules/role/manifests/prometheus/ops.pp
index 5807e26..07e2cbe 100644
--- a/modules/role/manifests/prometheus/ops.pp
+++ b/modules/role/manifests/prometheus/ops.pp
@@ -775,6 +775,15 @@
port => '9191',
}
+ # Gather postgresql metrics from hosts having the
+ # prometheus::postgres_exporter class defined
+ prometheus::class_config{ "postgresql_${::site}":
+ dest => "${targets_path}/postgresql${::site}.yaml",
+ site => $::site,
+ class_name => 'prometheus::postgres_exporter',
+ port => '9187',
+ }
+
prometheus::server { 'ops':
storage_encoding => '2',
listen_address => '127.0.0.1:9900',
--
To view, visit https://gerrit.wikimedia.org/r/399380
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idaab0d14a520e9113ac86c3d275cd2e534e605b3
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alexandros Kosiaris <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits