Muehlenhoff has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/398428 )

Change subject: Add rabbitmq-exporter to Prometheus scraper config for 
labmon1001
......................................................................

Add rabbitmq-exporter to Prometheus scraper config for labmon1001

Change-Id: I0624d9e4e6d3c6dd03005b69bd308f4a5cf072d0
---
M modules/role/manifests/labs/prometheus.pp
1 file changed, 17 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/28/398428/1

diff --git a/modules/role/manifests/labs/prometheus.pp 
b/modules/role/manifests/labs/prometheus.pp
index 49bab93..21e0f47 100644
--- a/modules/role/manifests/labs/prometheus.pp
+++ b/modules/role/manifests/labs/prometheus.pp
@@ -30,6 +30,16 @@
         },
     ]
 
+    $rabbitmq_jobs = [
+        {
+            'job_name'        => 'rabbiqmq',
+            'scheme'          => 'http',
+            'file_sd_configs' => [
+                { 'files' => [ "${targets_path}/rabbitmq_*.yaml" ] }
+            ],
+        },
+    ]
+
     file { "${targets_path}/blackbox_http_keystone.yaml":
       content => ordered_yaml([{
         'targets' => ['labcontrol1001.wikimedia.org:5000/v3', # keystone
@@ -39,6 +49,13 @@
                       'proxy-eqiad.wmflabs.org:5668', # proxy
             ]
         }]),
+    }
+
+    prometheus::class_config{ "rabbitmq_${::site}":
+        dest       => "${targets_path}/rabbitmq_${::site}.yaml",
+        site       => $::site,
+        class_name => 'role::wmcs::openstack::main::control',
+        port       => '9195',
     }
 
     prometheus::server { 'labs':
@@ -63,4 +80,3 @@
         srange => '$DOMAIN_NETWORKS',
     }
 }
-

-- 
To view, visit https://gerrit.wikimedia.org/r/398428
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0624d9e4e6d3c6dd03005b69bd308f4a5cf072d0
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Muehlenhoff <mmuhlenh...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to