Register docker network info and use it for prometheus-node-exporter
Using the hardcoded IP did break while I was messing with IPv6 stuff on the other branch
This commit is contained in:
@ -36,5 +36,5 @@ scrape_configs:
|
||||
{% if matrix_prometheus_node_exporter_enabled %}
|
||||
- job_name: node
|
||||
static_configs:
|
||||
- targets: ['172.18.0.1:9100']
|
||||
- targets: ['{{ matrix_docker_network_info.network.IPAM.Config[0].Gateway }}:9100']
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user