Elukey has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/402021 )

Change subject: role::prometheus::analytics: add configuration for jmx hadoop 
agents
......................................................................


role::prometheus::analytics: add configuration for jmx hadoop agents

Bug: T177458
Change-Id: I5b701695eb20ca6c8bba74af89ece91e2c71e31e
---
M modules/role/manifests/prometheus/analytics.pp
1 file changed, 26 insertions(+), 0 deletions(-)

Approvals:
  Elukey: 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/analytics.pp 
b/modules/role/manifests/prometheus/analytics.pp
index 1cb5937..21d46c6 100644
--- a/modules/role/manifests/prometheus/analytics.pp
+++ b/modules/role/manifests/prometheus/analytics.pp
@@ -32,8 +32,34 @@
           { 'files' => [ "${targets_path}/jmx_druid_*.yaml" ]}
         ],
       },
+      {
+        'job_name'        => 'jmx_hadoop',
+        'scrape_timeout'  => '25s',
+        'scheme'          => 'http',
+        'file_sd_configs' => [
+          { 'files' => [ "${targets_path}/jmx_hadoop_*.yaml" ]}
+        ],
+      },
     ]
 
+    prometheus::jmx_exporter_config{ "hadoop_worker_${::site}":
+        dest       => "${targets_path}/jmx_hadoop_worker_${::site}.yaml",
+        class_name => 'role::analytics_cluster::hadoop::worker',
+        site       => $::site,
+    }
+
+    prometheus::jmx_exporter_config{ "hadoop_master_${::site}":
+        dest       => "${targets_path}/jmx_hadoop_master_${::site}.yaml",
+        class_name => 'role::analytics_cluster::hadoop::master',
+        site       => $::site,
+    }
+
+    prometheus::jmx_exporter_config{ "hadoop_standby_${::site}":
+        dest       => "${targets_path}/jmx_hadoop_standby_${::site}.yaml",
+        class_name => 'role::analytics_cluster::hadoop::standby',
+        site       => $::site,
+    }
+
     prometheus::jmx_exporter_config{ "druid_public_${::site}":
         dest       => "${targets_path}/jmx_druid_public_${::site}.yaml",
         class_name => 'role::druid::public::worker',

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I5b701695eb20ca6c8bba74af89ece91e2c71e31e
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Elukey <ltosc...@wikimedia.org>
Gerrit-Reviewer: Elukey <ltosc...@wikimedia.org>
Gerrit-Reviewer: Filippo Giunchedi <fgiunch...@wikimedia.org>
Gerrit-Reviewer: Giuseppe Lavagetto <glavage...@wikimedia.org>
Gerrit-Reviewer: Ottomata <ao...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to