Skip to content

Add new metric to help debug HA problems #10988

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

zenador
Copy link
Contributor

@zenador zenador commented Mar 25, 2025

What this PR does

Adds a new metric to track problems with HA. According to this note, if the first series in the request happens to be incorrectly configured, HA will not work properly for all the other series in the request. If I'm understanding how this works correctly, this means that for users with a lot of series, if only a minority of them are configured incorrectly, it can be very hard to track down the problem. This PR tries to fix that by using a new metric to show the metric names of the series that are misconfigured, and the reason why the HA fails e.g. is it the cluster or replica label that's missing? It also adds a log line with more details.

This could potentially create a lot of new series and log lines, so it's behind a per-tenant config flag track_ha_failures (off by default) so we can turn it on only temporarily for users as needed.

Will update changelog after getting feedback on this approach.

Which issue(s) this PR fixes or relates to

N/A

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

@zenador zenador requested a review from a team as a code owner March 25, 2025 17:50
@zenador zenador requested a review from tacole02 as a code owner March 26, 2025 16:16
Copy link
Contributor

github-actions bot commented Mar 26, 2025

Copy link
Contributor

@tacole02 tacole02 left a comment

Choose a reason for hiding this comment

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

Thank you!

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