Re: [prometheus-users] Cant delete metricd from pushgateway

31 views
Skip to first unread message

Bjoern Rabenstein

unread,
Dec 10, 2024, 5:56:59 AM12/10/24
to Esau Garcia, Prometheus Users
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] bjo...@rabenste.in
Reply all
Reply to author
Forward
0 new messages