Mentions légales du service

Skip to content
Snippets Groups Projects
Commit eb6b55a4 authored by Simon Delamare's avatar Simon Delamare
Browse files

[lib] gen wiki kwollect - fix when prom. metrics ids differ between cluster, WIP3

parent 755a6a6c
No related branches found
No related tags found
No related merge requests found
Pipeline #794211 passed
...@@ -32,7 +32,8 @@ class KwollectMetricsGenerator < WikiGenerator ...@@ -32,7 +32,8 @@ class KwollectMetricsGenerator < WikiGenerator
end end
if metric_name =~ /prom_.*default_metrics/ if metric_name =~ /prom_.*default_metrics/
prom_metric_ids = all_metrics.select{|m| m["name"] == metric_name}.map{|metric| metric["source"]["id"]}.flatten.uniq prom_metric_ids = all_metrics.select{|m| m["name"] == metric_name}.map{|metric| metric["source"]["id"]}.flatten.uniq
p (all_metrics.select{|m| m["name"] == metric_name}) tmp = all_metrics.select{|m| m["name"] == metric_name}
p tmp
p prom_metric_ids p prom_metric_ids
description += ":<br/>''#{prom_metric_ids.join(", ")}''" description += ":<br/>''#{prom_metric_ids.join(", ")}''"
optional = "**" optional = "**"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment