Re: [prometheus-users] Re: Labels replacing

2021-10-20 Thread Brian Candler
I think it's a copy-paste error. Can you paste back the entire relabel_configs section from your config. On Wednesday, 20 October 2021 at 15:32:59 UTC+1 Nikolay Buhryk wrote: > Hi Brian, > > I modified my target to the new view e.g. 'hostname ip' = 'foo > 10.11.12.13' and i received only this

Re: [prometheus-users] Re: Labels replacing

2021-10-20 Thread Nikolay Buhryk
Hi Brian, I modified my target to the new view e.g. 'hostname ip' = 'foo 10.11.12.13' and i received only this instance="1" I can’t understand where issue still exists On Fri, Oct 15, 2021 at 2:24 PM Brian Candler wrote: > You can use target relabelling, where each target entry can contain

[prometheus-users] Re: Labels replacing

2021-10-15 Thread Brian Candler
You can use target relabelling, where each target entry can contain both a name and an IP address and you separate them out in relabelling rules. This also lets you generate meaningful instance labels that don't have the

[prometheus-users] Re: Labels replacing

2021-10-14 Thread Kevin Cameron
Is the issue that your target list is made up of IPs and you would like to be able to add a label "hostname" via a DNS lookup dynamically when the job runs rather than manually adding the label to your target list? I'd love a way to do that if you find a way. KC On Monday, October 11, 2021