Skip to content

feat: add grafana create, update and delete alert rules #3873

Open
WashingtonKK wants to merge 19 commits intosuperplanehq:mainfrom
WashingtonKK:feat/grafana-alert-rules
Open

feat: add grafana create, update and delete alert rules #3873
WashingtonKK wants to merge 19 commits intosuperplanehq:mainfrom
WashingtonKK:feat/grafana-alert-rules

Conversation

@WashingtonKK
Copy link
Copy Markdown
Collaborator

@WashingtonKK WashingtonKK commented Mar 31, 2026

Implements: #3850

This expands the Grafana Integration by adding three components:

  • grafana.CreateAlertRule
  • grafana.UpdateAlertRule
  • grafana.DeleteAlertRule
  • grafana.ListAlertRules
  • grafana.GetAlertRule

Demo Video

Screencast.from.2026-04-01.12-37-35.webm

Note

Medium Risk
Adds new Grafana provisioning API capabilities (create/update/delete/get/list alert rules) and changes webhook provisioning behavior/concurrency, which could affect alerting setup and rule management flows if payload merging or permissions differ across Grafana versions.

Overview
Expands the Grafana integration to manage Grafana-managed alert rules via the Alerting Provisioning API, adding new workflow components for create, get, list, update (partial merge), and delete alert rules, plus embedded example outputs and docs updates.

Updates the Grafana client to support alert rule/folder listing and alert rule CRUD calls, extends integration resource selectors to include folder, alert-rule, contact-point, and derived rule-group, and introduces a shared alert-rule payload builder/merger with validation (including provenance checks and notification receiver clearing).

Tightens webhook provisioning by serializing notification policy tree updates/removals and by failing fast when the Grafana client is unavailable or contact-point provisioning is non-retryable (instead of silently falling back), and adjusts Query Data Source time range inputs to accept relative/RFC3339/local datetime strings.

Written by Cursor Bugbot for commit c596e73. This will update automatically on new commits. Configure here.

@superplanehq-integration
Copy link
Copy Markdown

👋 Commands for maintainers:

  • /sp start - Start an ephemeral machine (takes ~30s)
  • /sp stop - Stop a running machine (auto-executed on pr close)

@WashingtonKK WashingtonKK changed the title feat: add grafana create, update anddelete alert rules feat: add grafana create, update and delete alert rules Mar 31, 2026
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Copy link
Copy Markdown
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@WashingtonKK
Copy link
Copy Markdown
Collaborator Author

Screencast.from.2026-04-03.10-48-59.webm
Screencast.from.2026-04-03.10-54-32.webm

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.

2 participants