I'm using Prometheus to track metrics of several machines on different 
networks launched through a Consul/Nomad architecture;  Prometheus tries to 
use the internal IP address (172.xx.xx.xxx) instead of the public IP 
(3.xxx.xx.xxx). I am attempting to relabel the __address__ label but I'm 
having trouble understanding how relabeling works... Any help would be 
greatly appreciated.

    relabel_configs:
      - source_labels: ['__address__']
        regex: '172.xx.xx.xxx'
        action: replace
        target_label: '__address__'
        replacement: '3.xxx.xx.xxx'


-- 
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/cf4ee4c7-6618-4abc-874b-d5d04d16e8d3o%40googlegroups.com.

Reply via email to