Filippo Giunchedi has uploaded a new change for review. ( 
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(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/34/391834/1

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: newchange
Gerrit-Change-Id: I667cb74ba41e8349377ae024beb1a47136653db6
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to