Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions ansible/roles/prometheus/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,10 @@ prometheus_blackbox_exporter_endpoints_default:
enabled: "{{ enable_etcd | bool }}"
- endpoints:
- "grafana:http_2xx:{{ grafana_public_endpoint }}"
- "{{ ('grafana_internal:http_2xx:' + grafana_internal_endpoint) if not kolla_same_external_internal_vip | bool }}"
enabled: "{{ enable_grafana | bool }}"
enabled: "{{ enable_grafana | bool and enable_grafana_external | bool }}"
- endpoints:
- "grafana_internal:http_2xx:{{ grafana_internal_endpoint }}"
enabled: "{{ enable_grafana | bool and ((not enable_grafana_external | bool) or (not kolla_same_external_internal_vip | bool)) }}"
- endpoints:
- "opensearch:http_2xx:{{ opensearch_internal_endpoint }}"
enabled: "{{ enable_opensearch | bool }}"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
fixes:
- |
Fixes Prometheus blackbox exporter checks for Grafana when external
Grafana access is disabled. The public Grafana endpoint is now only
monitored when ``enable_grafana_external`` is enabled, while the internal
endpoint continues to be monitored when appropriate.