1
votes

Im using a Prometheus push gateway to send Metrics from a Cronjob to Prometheus and then displaying them in Grafana.

Some metric labels change over the course of multiple runs of the cronjob. Grafana shows these metrics with changed labels as seperate metrics. How do i combine the same metric with different label values into one metric? (One line shown in Grafana)

1

1 Answers

-1
votes

Some metric labels change over the course of multiple runs of the cronjob.

That's usually a bad idea for the reason you've discovered. I'd suggest fixing this on the cronjob side.