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 at 12:11:00 PM UTC-4 Nikolay Buhryk wrote:

> Hi,
>
> Can someone help with replacing labels on targets.
>
> I have file_sd configs with targets. Prometheus scrapes them and shows 
> their ip addresses and labels that were defined.
>
> I need to have possibility scrape their hostnames instead of ip and add 
> new label "hostname" for future use in Alertmanager notifications.
>

-- 
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/44f7cade-9bcf-4d00-bcad-78ff8d46691en%40googlegroups.com.

Reply via email to