One other thing: to do this readily, you need to use "meaningful instance labels": https://www.robustperception.io/controlling-the-instance-label
That is, rather than node_info{instance="foo:9100"} process_info{instance="foo:9256"} you need to record node_info{instance="foo"} process_info{instance="foo"} This is easy to arrange using relabelling at scrape time. Set the instance label to what you want, and then set __address__ to the address:port. Example: - job_name: node scrape_interval: 1m scrape_timeout: 50s file_sd_configs: - files: - /etc/prometheus/targets.d/node_targets.yml # don't include the port number in here metrics_path: /metrics relabel_configs: - source_labels: [__address__] target_label: instance - source_labels: [__address__] target_label: __address__ replacement: '${1}:9100' -- 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 prometheus-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/74c30936-b7c8-4d4e-825b-c320db295707o%40googlegroups.com.