hey ,
i have a small question. i have a custom exporter which collects data and exposes is as prometheus gauges.
i have this exporter running in each namespace (==environment) of my cluster.
i am trying to create a graph which will show a line for each namespace with the value of the gauge in each sample.
for some reason i cannot find the correct way to do so… the only functions that work for me re either sum and avg, all other options either give me an error about the “by (namespace)” part or no data or a flat line with the value of 0.
but i just want the actual value.
this is something that works: avg(metric_name) by (namespace)
example metric: my_metric_name{count="4",duration="0.179696",name="dashboard_overview",result="200",size="74157"} 0.179696
any advise ?