On 08.07.22 18:14, 'Alan Tam CA' via Prometheus Users wrote:
> 
> I am wondering if there is a way to match all values of the instance label 
> using regex in the URL. So something like
> 
>    -   curl -X DELETE 
>    http://pushgateway.example.org:9091/metrics/job/some_job/instance/~".+";
>    
> Note: Prometheus has this feature to match all values of a label using ~".+". 
> For instance: 
> 
> curl -X POST -g 
> 'http://prometheus.example.org:9090/api/v1/admin/tsdb/delete_series?match[]={__name__=~".+"}'
>  

No, that's not possible.

The Pushgateway isn't really a database (like Prometheus itself), so
it doesn't have any fancy matching.

-- 
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 on the web visit 
https://groups.google.com/d/msgid/prometheus-users/Ytl%2BYRkwAe7dpbFD%40mail.rabenste.in.

Reply via email to