solve the problem with:
- source_labels: [__name__, l2]
regex: 'm2;str'
action: drop
On Friday, January 15, 2021 at 8:06:58 AM UTC-8 Sam Aram wrote:
> I use a prometheus federation to gather data from several prometheus
> server, I have some metrics like m1, m2 and m3, and time series on each
> of them have labels like l1,l2,l3,
> how can I drop all time series of m2 with l2="str" ?
> I now how to drop unnecessary metrics, or unnecessary time series with
> specific label,
> but problem is I want to drop time series of specific metrics with
> specific label, in above sample I just want to drop time series with label
> l2="str" on metrics m2 not in metric m1 and m3, I there any solutions?
>
>
--
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/563a4fdc-457c-4197-9607-a15ae198f7c5n%40googlegroups.com.