[Talking about prometheus only here]

You can change labels within PromQL expressions in queries:
https://prometheus.io/docs/prometheus/latest/querying/functions/#label_replace

And you can use recording rules to generate new timeseries with the result 
of those queries.

But changing the labels *inside* the database on *already scraped* data? I 
haven't seen anything like that.

If you can export and re-ingest the corrected data, e.g. using backfilling 
<https://prometheus.io/docs/prometheus/latest/storage/#backfilling-from-openmetrics-format>,
 
then you can delete the old timeseries 
<https://prometheus.io/docs/prometheus/latest/querying/api/#delete-series>.

On Friday, 17 March 2023 at 15:24:22 UTC Lukáš Míča wrote:

> Hello,
> I would like to ask you, if is it possible additionaly change label values 
> of metrics which were already scraped inside prometheus and Victoria 
> Metrics database.
> Thank you for the response
> Lukáš
>

-- 
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/6ad2c170-ba3a-4032-95e6-a693ef138111n%40googlegroups.com.

Reply via email to