Skip to content

Conversation

juliusv
Copy link
Member

@juliusv juliusv commented May 16, 2025

Addresses part of #16515

For now, I'm adding very similar filtering to the /rules page as we have on the /alerts page, with the difference being:

  • The state filter filters by rule health (ok/warn/unknown) instead of alert state (firing/pending/inactive)
  • We don't collect & show detailed stats on the different state counts as we do on the /alerts page

There is a lot of copied / very similar code between those two pages (and also some others) around filtering and pagination, so maybe there is an opportunity for more code sharing in the future here.

Addresses part of #16515

For now, I'm adding very similar filtering to the /rules page as we have on
the /alerts page, with the difference being:

* The state filter filters by rule health (ok/warn/unknown) instead of
  alert state (firing/pending/inactive)
* We don't collect & show detailed stats on the different state counts as
  we do on the /alerts page

There is a lot of copied / very similar code between those two pages (and
also some others) around filtering and pagination, so maybe there is an
opportunity for more code sharing in the future here.

Signed-off-by: Julius Volz <julius.volz@gmail.com>
@juliusv juliusv requested a review from Nexucis May 16, 2025 15:51
@juliusv juliusv merged commit 6c930e8 into main May 19, 2025
45 checks passed
@juliusv juliusv deleted the rules-page-filters branch May 19, 2025 21:22
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