Merge "prometheus: Fix running blackbox-exporter on podman"

This commit is contained in:
Zuul
2025-06-23 14:20:22 +00:00
committed by Gerrit Code Review
2 changed files with 3 additions and 0 deletions

View File

@ -121,6 +121,8 @@ prometheus_services:
volumes: "{{ prometheus_elasticsearch_exporter_default_volumes + prometheus_elasticsearch_exporter_extra_volumes }}"
dimensions: "{{ prometheus_elasticsearch_exporter_dimensions }}"
prometheus-blackbox-exporter:
cap_add:
- CAP_NET_RAW
container_name: "prometheus_blackbox_exporter"
group: "prometheus-blackbox-exporter"
enabled: "{{ enable_prometheus_blackbox_exporter | bool }}"

View File

@ -112,6 +112,7 @@
become: true
kolla_container:
action: "recreate_or_restart_container"
cap_add: "{{ service.cap_add }}"
common_options: "{{ docker_common_options }}"
name: "{{ service.container_name }}"
image: "{{ service.image }}"