Skip to content
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

[v11.0.x] Alerting: use logger with same context within rule scheduling loop #87936

Merged
merged 1 commit into from
May 15, 2024

Conversation

grafana-delivery-bot[bot]
Copy link
Contributor

Backport f410c7f from #87934


This fixes log message
https://github.com/grafana/grafana/blame/4b24019bae4f4a8bca9eb620e1afda49c5923ce4/pkg/services/ngalert/schedule/schedule.go#L293
that put rule UID into the message context with label "uid". However, everywhere else we use "rule_uid" label.

This PR makes all messages within the loop that schedules rule evaluations use the same logger with pre-loaded context.

@grafana-delivery-bot grafana-delivery-bot bot requested a review from a team as a code owner May 15, 2024 19:39
@grafana-delivery-bot grafana-delivery-bot bot requested review from jtheory and rwwiv and removed request for a team May 15, 2024 19:39
@grafana-delivery-bot grafana-delivery-bot bot added this to the 11.0.x milestone May 15, 2024
@grafana-delivery-bot grafana-delivery-bot bot added area/backend backport A backport PR no-changelog Skip including change in changelog/release notes type/bug labels May 15, 2024
@yuri-tceretian yuri-tceretian merged commit 74b0f22 into v11.0.x May 15, 2024
21 checks passed
@yuri-tceretian yuri-tceretian deleted the backport-87934-to-v11.0.x branch May 15, 2024 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/backend backport A backport PR no-changelog Skip including change in changelog/release notes type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant