Commit Graph

29 Commits

Author SHA1 Message Date
Aman
f8508ccafa
mantine-ui: fix /alerts accordian theme colors (#16043)
* fix-alerts-accordion-theme

Signed-off-by: amanycodes <amanycodes@gmail.com>

* fixes

Signed-off-by: amanycodes <amanycodes@gmail.com>

* added changes to /rules page

Signed-off-by: amanycodes <amanycodes@gmail.com>

* more fixes

Signed-off-by: amanycodes <amanycodes@gmail.com>

---------

Signed-off-by: amanycodes <amanycodes@gmail.com>
Signed-off-by: Aman <95525722+amanycodes@users.noreply.github.com>
2025-06-12 08:23:04 +00:00
Julius Volz
69ed0a5794 Add health & text filtering on the /rules page
Addresses part of https://github.com/prometheus/prometheus/issues/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>
2025-05-16 17:50:46 +02:00
amanycodes
ad8464249c removed comments
Signed-off-by: amanycodes <amanycodes@gmail.com>
2025-04-24 20:09:05 +05:30
amanycodes
25d2746e35 stable and unique key for /rules page and key fixes
Signed-off-by: amanycodes <amanycodes@gmail.com>
2025-04-24 20:09:03 +05:30
amanycodes
de5b5c56e2 fix-ci-errors
Signed-off-by: amanycodes <amanycodes@gmail.com>
2025-04-24 20:08:16 +05:30
amanycodes
3dc9cbc8c0 stable and definitely unique card UI key in /alerts
Signed-off-by: amanycodes <amanycodes@gmail.com>
2025-04-24 20:08:16 +05:30
Julius Volz
b1f03f83cf
Improve rule state filter placeholder wording (#16361)
Technically, we are not filtering by the state of a single rule, but by the
whole rule group state (if even a single alert is firing within a group,
filtering for "Pending" won't show the group, even if it has pending
alerts).

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-03-31 18:19:46 +01:00
Julius Volz
ad3e200e9a
Tighter spacing for /alerts and /rules pages (#16359)
As discussed in https://github.com/prometheus/prometheus/issues/15717, this
should help show more information on one screen, to be more similar to the
old UI in this regard.

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-03-31 18:19:03 +01:00
Julius Volz
a4728fd030
Hide empty target pools and alert groups by default (#16341)
Also change the SD page setting for this to be in localStorage, as on the
other pages.

Should help a tiny bit with https://github.com/prometheus/prometheus/issues/16308

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-03-28 17:55:37 +01:00
leonnicolas
fccd78d3cd
Update storage keys
Signed-off-by: leonnicolas <leonloechner@gmx.de>
2025-01-13 21:46:45 +01:00
leonnicolas
36520fd8b2
Remove settings from setting menu
Signed-off-by: leonnicolas <leonloechner@gmx.de>
2025-01-13 17:56:11 +01:00
leonnicolas
b3531a12f3
Make "show empty pools" setting persistent
Just like for showing empty groups on the Alerts page, also make the
setting for showing empty pools on the Targets page persistent.

Signed-off-by: leonnicolas <leonloechner@gmx.de>
2025-01-13 12:59:26 +01:00
leonnicolas
6ccd9add1e
Make "hide empty rules persistent"
It can be a bit annoying to always press "hide empty rules". This commit
uses the session storage of the browser to make it persistent.

Signed-off-by: leonnicolas <leonloechner@gmx.de>
2025-01-10 23:32:05 +01:00
Julius Volz
84e0f43a0c Paginate rule groups, add infinite scroll to rules within groups
This addresses extreme slowness when you have thousands of rules in
potentially hundreds of rule groups. It can still be a bit slow even with
pagination and infinite scroll for very large use cases, but it's much
better already than before.

Fixes https://github.com/prometheus/prometheus/issues/15551

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-12-14 22:38:18 +01:00
Julius Volz
0180cf31aa Factor out common icon and card styles
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-09-13 14:44:04 +02:00
Julius Volz
0757fbbecc Make sure that alert element table headers are not wrapped
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-09-13 14:41:24 +02:00
Julius Volz
7e0cba568e Make annotations display on /alerts page consistent with /rules
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-09-09 11:50:46 +02:00
Julius Volz
87a22500e1 Add PromQL logic code and labels explorer from PromLens, add testing deps
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-09-02 13:45:36 +02:00
Julius Volz
b29be5e6f8 Add query button to rule expressions, improve styling
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-09-01 20:28:42 +02:00
Julius Volz
4ce71af1b9 Rename debouncedSearch -> search in buildAlertsPageData
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-08-28 15:03:16 +02:00
Julius Volz
d6e5e39bf7 Add filtering to alerts page
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-08-28 14:54:08 +02:00
Julius Volz
6cfee68b72 Nicer panel health colors for both light and dark modes
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-08-02 19:47:01 +02:00
Julius Volz
8fae131733 Move Settings context data into Redux settings slice
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-07-15 22:19:47 +02:00
Julius Volz
1049c90cb5 Clean up file hierarchy a bit, add some more comments
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-04-09 12:36:53 +02:00
Julius Volz
cdc4bf0ebc Various tiny code cleanups
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-04-03 16:15:50 +02:00
Julius Volz
3c44f43815 Add state filtering to alerts page
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-04-03 14:46:17 +02:00
Julius Volz
627826783c Add state and label/alertname filter mockups to Alerts page
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-03-14 12:18:03 +01:00
Julius Volz
5fea050fed Refactor API fetching code, handle all possible errors correctly
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-03-07 21:05:12 +01:00
Julius Volz
2bb14c5787 Lots of more progress on the new Mantine UI
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-03-07 13:16:54 +01:00