consul_exporter
consul_exporter copied to clipboard
Add IP address label
Adds the IP address label to the metrics.
Our use case is that since many of our nodes are not yet hooked up to consul, our alerting/visualization tools are tied to the node's IP address rather than consul node name, so having consul-exporter provide only the consul host name at this time is not of value.
In Prometheus, the following overwrites the instance
label value with the node's address
value, where applicable:
metric_relabel_configs:
- source_labels: [address]
target_label: instance
action: replace