Thank you, Brian!

I checked your solution, it works, but I need to strip off all _before_ 
last slash. And if I change your regex to mine, I can't see the new label.


среда, 27 мая 2020 г., 10:58:44 UTC+3 пользователь Brian Candler написал:
>
> Example:
>
> - source_labels: [__address__]
>   regex: '(.*)/.*'
>   replacement: '$1'     # this is the default anyway
>   target_label: store
>
> This will strip off everything after the final slash and put it in the 
> 'store' label.
>

-- 
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/ffdcbc74-b817-47dc-952d-bd9b3d877258%40googlegroups.com.

Reply via email to