Make --tags=setup-prometheus not break, relying on matrix-base facts

This commit is contained in:
Slavi Pantaleev
2021-01-31 18:17:57 +02:00
parent df3dd1c824
commit 85a260daaf
4 changed files with 20 additions and 3 deletions

View File

@ -36,5 +36,5 @@ scrape_configs:
{% if matrix_prometheus_node_exporter_enabled %}
- job_name: node
static_configs:
- targets: ['{{ matrix_docker_network_info.network.IPAM.Config[0].Gateway }}:9100']
- targets: {{ matrix_prometheus_endpoint_node_targets|to_json }}
{% endif %}