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

[v9.5.x] Alerting: Migrate unknown NoData\Error settings to the default #70905

Merged
merged 1 commit into from Jun 29, 2023

Conversation

grafana-delivery-bot[bot]
Copy link
Contributor

Backport 3af95be from #68403


What is this feature?
It fixes migration to not fail if legacy alert rule settings noDataState or executionErrorState contain unknown values. Instead, it migrates such settings to the default settings which are NoData for no data and Error for Error handling and emits a warning message such as "Unable to translate execution of NoData state. Using default execution" for No Data setting or "Unable to translate execution of Error state. Using default execution" for Error setting.

Why do we need this feature?
This will make migration more smooth.

Who is this feature for?
If rule is created via UI, the user is not allowed to specify an arbitrary string for those settings.

Which issue(s) does this PR fix?:

Fixes #67851

Special notes for your reviewer:

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

* use default execution if legacy is not known

* update docs

* Update docs/sources/alerting/migrating-alerts/migrating-legacy-alerts.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/migrating-alerts/migrating-legacy-alerts.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
(cherry picked from commit 3af95be)
@grafana-delivery-bot grafana-delivery-bot bot requested a review from a team as a code owner June 29, 2023 14:17
@grafana-delivery-bot grafana-delivery-bot bot added this to the 9.5.x milestone Jun 29, 2023
@grafanabot grafanabot added the pr/external This PR is from external contributor label Jun 29, 2023
@JacobsonMT JacobsonMT removed the pr/external This PR is from external contributor label Jun 29, 2023
@grafanabot grafanabot added the pr/external This PR is from external contributor label Jun 29, 2023
@JacobsonMT JacobsonMT removed the pr/external This PR is from external contributor label Jun 29, 2023
@JacobsonMT
Copy link
Member

Looks like the docs portion of this was already backported in #69055

@JacobsonMT JacobsonMT merged commit b585067 into v9.5.x Jun 29, 2023
21 checks passed
@JacobsonMT JacobsonMT deleted the backport-68403-to-v9.5.x branch June 29, 2023 14:55
@zerok zerok modified the milestones: 9.5.x, 9.5.6 Jun 30, 2023
@zerok zerok modified the milestones: 9.5.6, 9.5.x, 9.5.7 Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants