On 05.12.24 07:41, Esau Garcia wrote:
> But when I try deleting this metric through: (port forwarding from 8080 ->
> 9091)
> *curl -X DELETE http://localhost:8080/metrics/job/some_job/instance/=*
> The metric does not get deleted.
This deletes a metric with the grouping key
`{job="some_job", instance="=*"}`.
You need to specify the grouping key in the DELETE URL. So first find
out what the grouping key is. Is `instance` really part of it? (It
strikes me as weird that you use an empty label value for `instance`.)
In any case, the `=` sign is not part of the label's value.
--
Björn Rabenstein
[PGP-ID] 0x851C3DA17D748D03
[email] [email protected]
--
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 visit
https://groups.google.com/d/msgid/prometheus-users/Z1geaus1IYPVtRKO%40mail.rabenste.in.