openshift / openshift/troubleshooting-panel-console-plugin

Alert navigation

Open
#279 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5
Forks
14
Avg merge
23h 40m
Merged PRs (30d)
17

Description

Console has two alert pages:

  • Rule (/monitoring/alertrules/{id}) — the alerting rule and all of its current firings. This is where Observe → Alerting → Alerts takes you when you click a row in the list.
  • Instance (/monitoring/alerts/{id}?labels…) — one firing. Console only goes here after you pick a specific firing, passing that firing’s full label set. The page shows content only if exactly one firing matches the query parameters; otherwise it is blank.

The panel always builds the instance URL, using the korrel8r query as the query parameters.So:

  • Start from (or navigate to) a query that matches one firing → the instance page works.
  • Query matches several firings, or only has alertname (aggregated node, rule with multiple instances) → empty page.

This could be improved returning instance URL when the query uniquely identifies a firing; rule URL when it does not. The panel already understands both paths when reading the current page.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the troubleshooting panel's navigation logic that builds the monitoring alert URL, and review how it handles the korrel8r query and the two alert paths. Verify behavior with a query matching one firing, then with multiple firings or only alertname. Done means unique firings use the instance URL, while non-unique queries use the rule URL.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.