Skip to content

Conversation

@alexander-akhmetov
Copy link
Contributor

What is this feature?

Added support for keepFiringFor and missing_series_evals_to_resolve fields in alert rule file provisioning.

Why do we need this feature?

These fields were being ignored in file provisioning despite being supported in the API.

Who is this feature for?

Users of file provisioning in Grafana Alerting.

Which issue(s) does this PR fix?:

Fixes #109367

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.

ExecErrState *ExecutionErrorState `json:"execErrState,omitempty" yaml:"execErrState,omitempty" hcl:"exec_err_state"`
For model.Duration `json:"for,omitempty" yaml:"for,omitempty"`
KeepFiringFor model.Duration `json:"keepFiringFor,omitempty" yaml:"keepFiringFor,omitempty" hcl:"keep_firing_for"`
KeepFiringFor model.Duration `json:"keepFiringFor,omitempty" yaml:"keepFiringFor,omitempty"`
Copy link
Contributor Author

@alexander-akhmetov alexander-akhmetov Aug 14, 2025

Choose a reason for hiding this comment

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

Removed hcl since it shouldn't be here and instead is set below in the special KeepFiringForString field.

ExecErrState values.StringValue `json:"execErrState" yaml:"execErrState"`
For values.StringValue `json:"for" yaml:"for"`
KeepFiringFor values.StringValue `json:"keepFiringFor" yaml:"keepFiringFor"`
MissingSeriesEvalsToResolve values.Int64Value `json:"missing_series_evals_to_resolve" yaml:"missing_series_evals_to_resolve"`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added MissingSeriesEvalsToResolve and KeepFiringFor

@alexander-akhmetov alexander-akhmetov force-pushed the alexander-akhmetov/keep-firing-for-file-provisioning branch from 3dfba62 to e4d94c2 Compare August 14, 2025 18:07
@alexander-akhmetov alexander-akhmetov marked this pull request as ready for review August 14, 2025 18:57
@alexander-akhmetov alexander-akhmetov requested a review from a team as a code owner August 14, 2025 18:57
@alexander-akhmetov alexander-akhmetov force-pushed the alexander-akhmetov/keep-firing-for-file-provisioning branch from e4d94c2 to 0195b32 Compare August 14, 2025 19:04
@alexander-akhmetov alexander-akhmetov merged commit 17444fd into main Aug 14, 2025
111 of 113 checks passed
@alexander-akhmetov alexander-akhmetov deleted the alexander-akhmetov/keep-firing-for-file-provisioning branch August 14, 2025 20:19
@github-project-automation github-project-automation bot moved this from In review to Done in Alerting Aug 14, 2025
alexander-akhmetov added a commit that referenced this pull request Aug 18, 2025
…_to_resolve to file provisioning (#109710)

* Alerting: Add keepFiringFor and missing_series_evals_to_resolve to file provisioning (#109699)

* Fix MissingSeriesEvalsToResolve type
gillesdemey pushed a commit that referenced this pull request Aug 18, 2025
gelicia pushed a commit that referenced this pull request Aug 19, 2025
@alexander-akhmetov alexander-akhmetov added backport v12.0.x Mark PR for automatic backport to v12.0.x backport v12.1.x Mark PR for automatic backport to v12.1.x and removed backport v12.0.x Mark PR for automatic backport to v12.0.x backport v12.1.x Mark PR for automatic backport to v12.1.x labels Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Alerting: Alert rule provisioning via files does not seem to apply keepFiringFor

2 participants