On 25/02/2021 21:43, Hammad Akhtar wrote:
1. Does Prometheus supports such mutation of metrics?
2. If no why is it not supported? If yes are there any implications on
metric data stored for previous combinations of labels?
Every time series (different combination of labels) is unique and
treated separately, so replacing a metric that used to have 1 label with
one than now has 2 just results in the old time series no longer getting
updates while some totally new time series start having values.
In terms of the implications it is mostly around the effect on any
queries you produce. If your query relies on the new label then it might
not return values before the switch over, while queries that worked on
the old version may now return unexpected values after the change. So
you may need to update your dashboards or alerting rules accordingly.
Very large changes to how the metric is presented could be confusing, so
in those situations it might make sense to change the name to explicitly
split things into a "before" and "after".
--
Stuart Clark
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/c14d92f2-9188-bae9-6f6f-7ec5326f2bf9%40Jahingo.com.