[prometheus-users] Re: metric relabeling of a label to __name__ does not work

2024-10-14 Thread 'Brian Candler' via Prometheus Users
Ah yes, I hadn't thought of that. The default for regex is "(.*)" not "(.+)" so it will match empty string. Glad it's working for you now! On Monday 14 October 2024 at 12:21:02 UTC+1 M shr wrote: > yes

[prometheus-users] Re: metric relabeling of a label to __name__ does not work

2024-10-14 Thread M shr
yes you were right the problem was because not all metrics has the "col" label so those label didn't have any name and the whole scrape got lost with error missing metric name (__name__ label) it got fix now thanks On Monday, October 14, 2024 at 1:39:53 PM UTC+3:30 Brian Candler wrote: > Have

[prometheus-users] Re: metric relabeling of a label to __name__ does not work

2024-10-14 Thread 'Brian Candler' via Prometheus Users
Have a look at the "Status > Targets" menu of the prometheus web interface. It may tell you of scraping errors. For example, I think it's very likely with that renaming rule that you could end up with duplicate metrics after the renaming, and that will cause scrapes to fail (and therefore drop t