Skip to content

feat: add grafana alert control#3897

Open
WashingtonKK wants to merge 4 commits intosuperplanehq:mainfrom
WashingtonKK:feat/grafana-alert-control
Open

feat: add grafana alert control#3897
WashingtonKK wants to merge 4 commits intosuperplanehq:mainfrom
WashingtonKK:feat/grafana-alert-control

Conversation

@WashingtonKK
Copy link
Copy Markdown
Collaborator

@WashingtonKK WashingtonKK commented Apr 1, 2026

Implements: #3885

This expands the Grafana integration by adding the following alert control components:

  • grafana.listSilences (Action)
  • grafana.getSilence (Action)
  • grafana.createSilence (Action)
  • grafana.deleteSilence (Action)

Demo Video


Note

Medium Risk
Adds new Grafana Alertmanager silence management API calls and workflow components, which can directly suppress alerts and relies on correct HTTP paths/payloads and time handling. Risk is moderate due to new external API surface and potential operational impact if misconfigured.

Overview
Adds Grafana Alertmanager silence control to workflows via four new actions: grafana.listSilences, grafana.getSilence, grafana.createSilence, and grafana.deleteSilence.

Backend changes extend the Grafana client with silence models plus ListSilences/GetSilence/CreateSilence/DeleteSilence methods (including create-response ID parsing and permissive delete semantics), and introduce new component implementations with input validation and time parsing/ordering checks.

Updates docs and embedded example outputs for the new actions, expands the integration’s token description, and wires up new workflow UI mappers/types and event-state registries so executions render relevant silence metadata.

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

Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
@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)

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.

eventId: execution.rootEvent?.id || "",
},
];
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Identical mapper boilerplate duplicated across four new files

Low Severity

The props, baseEventSections, metadataList, and subtitle implementations are copy-pasted identically across all four new mapper files. Other integrations in this codebase (e.g., cloudflare/base.ts, claude/base.ts) extract shared mapper logic into a common base module. A shared Grafana base file would eliminate the duplication and reduce the risk of inconsistent fixes later.

Additional Locations (2)
Fix in Cursor Fix in Web

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.

1 participant