Use prometheus_container_additional_networks_auto, instead of prometheus_container_additional_networks

This commit is contained in:
Slavi Pantaleev 2024-01-30 20:31:47 +02:00
parent 4bf4fc4f62
commit 2ba4b94b99

View File

@ -4279,7 +4279,7 @@ prometheus_gid: "{{ matrix_user_gid }}"
prometheus_container_network: "{{ matrix_monitoring_container_network }}" prometheus_container_network: "{{ matrix_monitoring_container_network }}"
prometheus_container_additional_networks: | prometheus_container_additional_networks_auto: |
{{ {{
( (
([prometheus_node_exporter_container_network] if prometheus_self_node_scraper_enabled and prometheus_node_exporter_container_network != prometheus_container_network else []) ([prometheus_node_exporter_container_network] if prometheus_self_node_scraper_enabled and prometheus_node_exporter_container_network != prometheus_container_network else [])