Skip to content

prometheus: Fix Grafana blackbox endpoint checks#886

Merged
dougszumski merged 1 commit into
stackhpc/2025.1from
fix-blackbox-grafana
Jun 17, 2026
Merged

prometheus: Fix Grafana blackbox endpoint checks#886
dougszumski merged 1 commit into
stackhpc/2025.1from
fix-blackbox-grafana

Conversation

@claudia-lola

Copy link
Copy Markdown

Split the Grafana blackbox endpoint into separate public and internal checks. The public endpoint is now only monitored when both Grafana and enable_grafana_external are enabled (which is the default when enabling Grafana), matching the HAProxy external listener check.

The internal endpoint remains monitored when Grafana is enabled and either external Grafana is disabled or the internal and external VIPs are separate. This avoids losing Grafana monitoring when enable_grafana_external is disabled.

Closes-Bug: #2157003
Change-Id: Iea3b21dcfa4284f2a74c1bee95577ce8a219cf5f

Split the Grafana blackbox endpoint into separate public and internal
checks. The public endpoint is now only monitored when both Grafana and
``enable_grafana_external`` are enabled (which is the default when
enabling Grafana), matching the HAProxy external listener check.

The internal endpoint remains monitored when Grafana is enabled and
either external Grafana is disabled or the internal and external VIPs
are separate. This avoids losing Grafana monitoring when
``enable_grafana_external`` is disabled.

Closes-Bug: #2157003
Change-Id: Iea3b21dcfa4284f2a74c1bee95577ce8a219cf5f
Signed-off-by: Dawud <dawud@stackhpc.com>
Copilot AI review requested due to automatic review settings June 17, 2026 15:32
@claudia-lola claudia-lola requested a review from a team as a code owner June 17, 2026 15:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes Prometheus blackbox monitoring for Grafana by separating checks for Grafana’s public vs. internal endpoints and aligning the enablement logic with enable_grafana_external and VIP topology, preventing false failures when external Grafana access is disabled.

Changes:

  • Split Grafana blackbox targets into distinct public and internal endpoint checks.
  • Gate the public Grafana check behind enable_grafana_external, while ensuring the internal check remains enabled when external access is disabled or when internal/external VIPs differ.
  • Add a release note documenting the monitoring behavior change.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
releasenotes/notes/fix-grafana-external-blackbox-check-c1b97a2406ad3b15.yaml Documents the corrected Grafana blackbox monitoring behavior.
ansible/roles/prometheus/defaults/main.yml Updates default blackbox endpoints to split and correctly gate Grafana public vs internal checks.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dougszumski dougszumski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on https://review.opendev.org/c/openstack/kolla-ansible/+/988713
Ideally we would wait but we need it asap

@dougszumski dougszumski merged commit 47183b9 into stackhpc/2025.1 Jun 17, 2026
5 checks passed
@dougszumski dougszumski deleted the fix-blackbox-grafana branch June 17, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants