prometheus/web/ui/mantine-ui/src
Julien 6cde0096e2 Add notifications to the web UI when configuration reload fails.
This commit introduces a new `/api/v1/notifications/live` endpoint that
utilizes Server-Sent Events (SSE) to stream notifications to the web UI.
This is used to display alerts such as when a configuration reload
has failed.

I opted for SSE over WebSockets because SSE is simpler to implement and
more robust for our use case. Since we only need one-way communication
from the server to the client, SSE fits perfectly without the overhead
of establishing and maintaining a two-way WebSocket connection.

When the SSE connection fails, we go back to a classic
/api/v1/notifications API endpoint.

This commit also contains the required UI changes for the new Mantine UI.

Signed-off-by: Julien <roidelapluie@o11y.eu>
2024-09-27 15:28:38 +02:00
..
api Add notifications to the web UI when configuration reload fails. 2024-09-27 15:28:38 +02:00
codemirror Some improvements to completion info tooltip for new CM version 2024-04-03 14:50:29 +02:00
components Add notifications to the web UI when configuration reload fails. 2024-09-27 15:28:38 +02:00
fonts Add codeicon font for autocompletion icons 2024-03-14 12:00:40 +01:00
images Implement several status pages and other general aspects 2024-02-21 11:13:48 +01:00
lib fix(web): properly format sub-millisecond durations in target status page 2024-09-20 12:02:17 +02:00
pages Mantine UI: removed unuse file 2024-09-20 11:33:55 +02:00
promql promql: rename holt_winters to double_exponential_smoothing 2024-09-19 15:29:01 +02:00
state Add notifications to the web UI when configuration reload fails. 2024-09-27 15:28:38 +02:00
types feat (ui): Add Native Histogram rendering to new UI (#14431) 2024-07-09 22:51:37 +02:00
App.module.css Don't wrap Prometheus logo + brand line 2024-09-02 13:42:14 +02:00
App.tsx Add notifications to the web UI when configuration reload fails. 2024-09-27 15:28:38 +02:00
Badge.module.css Add filtering to SD page and improve state processing 2024-08-28 15:35:32 +02:00
main.tsx Add PromQL logic code and labels explorer from PromLens, add testing deps 2024-09-02 13:45:36 +02:00
mantine-overrides.css Add general Mantine overrides CSS file 2024-09-13 14:40:29 +02:00
Panel.module.css Nicer panel health colors for both light and dark modes 2024-08-02 19:47:01 +02:00
promql.css Minor cleanups 2024-09-04 17:44:54 +02:00
setupTests.ts Add PromQL logic code and labels explorer from PromLens, add testing deps 2024-09-02 13:45:36 +02:00
styles.ts Factor out common icon and card styles 2024-09-13 14:44:04 +02:00
vite-env.d.ts Add scaffold for new Mantine-based UI 2024-02-17 12:29:47 +01:00