Alexandros Kosiaris has submitted this change and it was merged. (
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(-)
Approvals:
Alexandros Kosiaris: Looks good to me, approved
jenkins-bot: Verified
Filippo Giunchedi: Looks good to me, but someone else must approve
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: merged
Gerrit-Change-Id: Idaab0d14a520e9113ac86c3d275cd2e534e605b3
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alexandros Kosiaris <[email protected]>
Gerrit-Reviewer: Alexandros Kosiaris <[email protected]>
Gerrit-Reviewer: Filippo Giunchedi <[email protected]>
Gerrit-Reviewer: Giuseppe Lavagetto <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits