Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Problem
Healthcheck alerts were firing multiple times for the same failing endpoint, with different instance labels corresponding to different Alloy pod node hostnames (e.g., ip-10-85-131-143.us-east-2.compute.internal and ip-10-85-21-223.us-east-2.compute.internal).
Root Cause
When Alloy runs prometheus.exporter.blackbox in clustering mode, each pod's exporter sets the instance label to its node hostname. This creates duplicate metric series that trigger separate alerts for the same health check failure.
This is a known Alloy limitation: grafana/alloy#1009
Solution
Added a prometheus.relabel "blackbox" component that normalizes the instance label to the static value "blackbox" before forwarding to Mimir. This ensures all blackbox metrics from all Alloy pods have identical labels, allowing Mimir to deduplicate them and preventing duplicate alerts.
Category of change
Checklist