Filippo Giunchedi has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/391834 )

Change subject: prometheus: drop addr/alias redis_exporter labels
......................................................................


prometheus: drop addr/alias redis_exporter labels

Bug: T148637
Change-Id: I667cb74ba41e8349377ae024beb1a47136653db6
---
M modules/role/manifests/prometheus/ops.pp
1 file changed, 10 insertions(+), 0 deletions(-)

Approvals:
  jenkins-bot: Verified
  Filippo Giunchedi: Looks good to me, approved



diff --git a/modules/role/manifests/prometheus/ops.pp 
b/modules/role/manifests/prometheus/ops.pp
index c323f3f..f2c9ed5 100644
--- a/modules/role/manifests/prometheus/ops.pp
+++ b/modules/role/manifests/prometheus/ops.pp
@@ -524,6 +524,16 @@
         'file_sd_configs' => [
           { 'files' => [ "${targets_path}/redis_*.yaml" ]}
         ],
+        # redis_exporter runs alongside each redis instance, thus drop the 
(uninteresting in this
+        # case) 'addr' and 'alias' labels
+        'metric_relabel_configs' => [
+          { 'source_labels' => ['addr'],
+            'action'        => 'labeldrop',
+          },
+          { 'source_labels' => ['alias'],
+            'action'        => 'labeldrop',
+          },
+        ],
       },
     ]
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I667cb74ba41e8349377ae024beb1a47136653db6
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <[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

Reply via email to