Skip to content

[FEATURE] add alert manager plugin#647

Open
jgbernalp wants to merge 1 commit intomainfrom
feat/alert-manager-plugin
Open

[FEATURE] add alert manager plugin#647
jgbernalp wants to merge 1 commit intomainfrom
feat/alert-manager-plugin

Conversation

@jgbernalp
Copy link
Copy Markdown
Contributor

@jgbernalp jgbernalp commented May 4, 2026

Description

This PR adds the alert manager plugin:

  • Alerts table with hierarchical grouping
  • Silence table with action to expire silences
  • Alerts explore with action to silence alerts (create silence)
  • Silence explore with option to create silences

Part 3 of perses/perses#3645

needs the following PRs: ( CI will fail until these are merged and dependencies are updated )

Screenshots

Screen.Recording.2026-05-04.at.11.26.59.mov
Screenshot 2026-05-04 at 11 31 02 Screenshot 2026-05-04 at 11 30 33 Screenshot 2026-05-04 at 11 34 49

Checklist

  • Pull request has a descriptive title and context useful to a reviewer.
  • Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the
    following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, DOC,IGNORE.
  • All commits have DCO signoffs.

UI Changes

  • Changes that impact the UI include screenshots and/or screencasts of the relevant changes.
  • Code follows the UI guidelines.

Testing locally

  • Pull all the repo PRs locally
# link spec with shared plugin-system
cd <path to perses spec in #21>/ts
npm install
npm run build
cd <path to perses shared in #127>/plugin-system
npm install <relative path to perses spec in #21 e.g. "../../spec/ts">

# link shared with perses
cd <path to perses shared in #127>
npm install
npm run build
./scripts/link-with-perses/link-with-perses.sh --perses

# start perses backend
cd <path to perses in #4047>
make build-cli
./scripts/api_backend_dev.sh --e2e

# in a 2nd terminal, start the app in shared mode
cd <path to perses in #4047>/ui/app
npm run start:shared

# in a 3rd terminal, start the plugin
cd <path to perses plugins in #647>
<path to perses in #4047>/bin/percli plugin start alertmanager

# in a 4th terminal, start the test alert manager and prometheus
cd <path to perses in #4047>
podman compose --file dev/docker-compose.yaml --profile prometheus --profile avalanche --profile alertmanager up

And that is all 😅 , we need to script this away... I'll extend the link script

@jgbernalp jgbernalp force-pushed the feat/alert-manager-plugin branch 2 times, most recently from c81fb7a to 61b2b65 Compare May 4, 2026 09:46
@jgbernalp jgbernalp requested review from Nexucis and shahrokni May 4, 2026 09:46
@jgbernalp jgbernalp force-pushed the feat/alert-manager-plugin branch from 61b2b65 to bcbbbdc Compare May 4, 2026 09:49
@jgbernalp jgbernalp marked this pull request as ready for review May 4, 2026 09:51
@jgbernalp jgbernalp requested review from a team and AntoineThebaud as code owners May 4, 2026 09:51
@jgbernalp jgbernalp marked this pull request as draft May 4, 2026 09:54
@jgbernalp jgbernalp force-pushed the feat/alert-manager-plugin branch from bcbbbdc to 6858481 Compare May 4, 2026 10:26
@jgbernalp jgbernalp marked this pull request as ready for review May 4, 2026 10:39
@jgbernalp jgbernalp force-pushed the feat/alert-manager-plugin branch 3 times, most recently from 31c0f28 to 3258751 Compare May 4, 2026 11:04
@ibakshay
Copy link
Copy Markdown
Contributor

ibakshay commented May 8, 2026

I am testing locally. When I try write something in the label key and in Header, the focus keeps going out after every letter. So, I have to type a letter and then bring the focus back by clicking with the mouse.

image

@ibakshay
Copy link
Copy Markdown
Contributor

ibakshay commented May 8, 2026

How does View run book work?

@jgbernalp
Copy link
Copy Markdown
Contributor Author

How does View run book work?

If the alert has runbook_url as part of its annotations, clicking the "view runbook" will load the runbook link in a new tab

Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
@jgbernalp jgbernalp force-pushed the feat/alert-manager-plugin branch from 3258751 to 5cf3491 Compare May 8, 2026 21:17
@jgbernalp
Copy link
Copy Markdown
Contributor Author

jgbernalp commented May 8, 2026

I am testing locally. When I try write something in the label key and in Header, the focus keeps going out after every letter. So, I have to type a letter and then bring the focus back by clicking with the mouse.

@ibakshay fixed in the latest push

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