Skip to content

prometheus: Fix Grafana blackbox endpoint checks#887

Open
claudia-lola wants to merge 1 commit into
feature/vast-on-epoxyfrom
fix-blackbox
Open

prometheus: Fix Grafana blackbox endpoint checks#887
claudia-lola wants to merge 1 commit into
feature/vast-on-epoxyfrom
fix-blackbox

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 18, 2026 10:12
@claudia-lola claudia-lola requested a review from a team as a code owner June 18, 2026 10:12

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 exporter monitoring for Grafana by separating checks for the public (external) and internal Grafana endpoints, ensuring monitoring aligns with whether external Grafana access is actually enabled.

Changes:

  • Gate the public Grafana blackbox check on both enable_grafana and enable_grafana_external.
  • Add a separate internal Grafana blackbox check that remains enabled when external Grafana is disabled or when internal/external VIPs differ.
  • Add a release note documenting the corrected behavior.

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 monitoring behavior change for Grafana blackbox checks.
ansible/roles/prometheus/defaults/main.yml Splits Grafana blackbox endpoints into separate public/internal checks with corrected enablement conditions.

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

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.

3 participants