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>
2 months ago
Julius Volz
fcbd18dabb
Remove Query page alert close buttons that don't do anything
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 months ago
Jesus Vazquez
cb4bc5e786
UI: Make mantime UI assets relative
...
Signed-off-by: Jesus Vazquez <jesusvzpg@gmail.com>
2 months ago
Arve Knudsen
3f9b869fb5
Fix react-app (old UI) package-lock.json
...
cd web/ui/react-app
npm install
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2 months ago
Julien
7ebda924b8
fix(web): properly format sub-millisecond durations in target status page
...
Previously, scrapes durations that are very short (e.g., connection refused)
could show as empty (durations under 1 millisecond).
This commit ensures that sub-millisecond durations are correctly
displayed as "0ms" or "1ms" when necessary.
- Adjusted `humanizeDuration` to round sub-millisecond durations to the
nearest millisecond.
- Updated unit tests to verify the correct handling of sub-millisecond
values.
Signed-off-by: Julien <roidelapluie@o11y.eu>
2 months ago
Julien
5096bb9f29
Mantine UI: removed unuse file
...
Signed-off-by: Julien <roidelapluie@o11y.eu>
2 months ago
Augustin Husson
6e899fbb16
fix autocompletion when using by/without
...
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2 months ago
Jan Fajerski
96e5a94d29
promql: rename holt_winters to double_exponential_smoothing
...
Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
2 months ago
Bryan Boreham
81b9407f15
Prepare release 2.55.0-rc.0
...
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2 months ago
Julien
546f780006
UI: Disallow sub-second zoom as this cause inconsistenices in the X axis in uPlot
...
Fixes #9135
Signed-off-by: Julien <roidelapluie@o11y.eu>
2 months ago
Augustin Husson
69619990f8
UI/PromQL: autocomplete topk like aggregation function parameters
...
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2 months ago
junya koyama
54fe9f3d04
build(deps): fix breaking chages.
...
Signed-off-by: junya koyama <arukiidou@yahoo.co.jp>
2 months ago
junya koyama
8dae42828d
build(deps): bump lru-cache from 7.18.3 to 11.0.1 in /web/ui
...
Signed-off-by: junya koyama <arukiidou@yahoo.co.jp>
2 months ago
Julien
ac5377873f
mantine UI: Distinguish between Not Ready and Stopping
...
Signed-off-by: Julien <roidelapluie@o11y.eu>
2 months ago
dependabot[bot]
2fa84df35d
Bump typescript from 5.5.4 to 5.6.2 in /web/ui
...
Bumps [typescript](https://github.com/microsoft/TypeScript ) from 5.5.4 to 5.6.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases )
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml )
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.5.4...v5.6.2 )
---
updated-dependencies:
- dependency-name: typescript
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2 months ago
Julius Volz
a1908df922
Don't wrap action buttons below metric name in metrics explorer
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 months ago
Julius Volz
091fc403cf
Fiddle with targets table styles to try and improve things a bit
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 months ago
Julius Volz
57898c7929
Refactor and fix time formatting functions, add tests
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 months ago
Julius Volz
9b0dc68d0d
PromQL explain view: Support set operators
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 months ago
Julien
ac01dc9035
Explain, vector-to-vector: Do not compute results for set operators
...
Set operators are not displayed:
31ce9dacf4/web/ui/mantine-ui/src/pages/query/ExplainViews/BinaryExpr/VectorVector.tsx (L364)
Therefore, do not compute results for them.
Fixes #14889
Signed-off-by: Julien <roidelapluie@o11y.eu>
2 months ago
Julius Volz
50af7d589b
Fix tree line drawing by using a callback ref
...
In a non-dev build (no initial double-renders), the tree lines would not be
rendered correctly from the parent of a binop to its first child, because the
first child would be rendered before the parent, and the parent's ref hadn't
been set yet at that time. Switched from a normal ref to a callback-based ref
with explicit React state update to make sure that the child gets to know about
the parent's (later) rendered div element.
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 months ago
Julius Volz
0180cf31aa
Factor out common icon and card styles
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 months ago
Julius Volz
0757fbbecc
Make sure that alert element table headers are not wrapped
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 months ago
Julius Volz
a7c1a951df
Add general Mantine overrides CSS file
...
...initially fixing the ellipsis overflow text cut-off in badges.
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 months ago
Sandro
65743bf9bd
ui: drop template readme
...
Signed-off-by: Sandro <sandro.jaeckel@gmail.com>
2 months ago
Julius Volz
dfec29d8e5
Fix border color for target pools with one target that is failing
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 months ago
Nathan Baulch
50cd453c8f
chore: Fix typos ( #14868 )
...
* Fix typos
---------
Signed-off-by: Nathan Baulch <nathan.baulch@gmail.com>
2 months ago
Julius Volz
ee808cda8b
Fix HTML rendering for aggregator Explain view
...
Follow-up to https://github.com/prometheus/prometheus/pull/14893
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 months ago
Julien
3782da7bbc
Explain: Use param scalars in aggregations description
...
Signed-off-by: Julien <roidelapluie@o11y.eu>
2 months ago
Fiona Liao
1d2b08bf17
Rollback old react app version
...
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
2 months ago
Julien
be6d443947
Mantine UI: Use actual lookback delta in explain
...
Signed-off-by: Julien <roidelapluie@o11y.eu>
2 months ago
Julien
8aab6458b8
Mantine UI: Move /discovered-alertmanagers to /alertmanager-discovery
...
Signed-off-by: Julien <roidelapluie@o11y.eu>
2 months ago
Fiona Liao
d33cdb9fbe
Revert "Try manually updating react-app deps"
...
This reverts commit e1c2c51412
.
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
2 months ago
Fiona Liao
e1c2c51412
Try manually updating react-app deps
...
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
2 months ago
Fiona Liao
63a842ef43
Fix npm deps
...
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
2 months ago
Fiona Liao
a2bf2bf4ef
Change npm deps to 0.3xx
...
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
2 months ago
Fiona Liao
500fcac03a
Update CHANGELOG for beta
...
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
2 months ago
dependabot[bot]
1b281f074e
Bump @types/node from 22.5.2 to 22.5.4 in /web/ui ( #14873 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 22.5.2 to 22.5.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 months ago
Julius Volz
c1080990ac
Bring back documentation link in the form of an action button
...
IMO this looks nicer than adding it as a normal page nav link as in
https://github.com/prometheus/prometheus/pull/14878
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 months ago
Julius Volz
785d595855
ui build: create requires web/ui/static dir ad hoc
...
Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
2 months ago
Julius Volz
11f344e4d3
Move AM discovery page from "Monitoring status" -> "Server status"
...
Seems to at least make more sense to me like that.
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 months ago
Julius Volz
e2be869a7a
Slightly improve navbar wrapping for long status title + narrow window
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 months ago
Julius Volz
306d357635
Revert back to normal font for recording rule titles
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 months ago
Julius Volz
7e0cba568e
Make annotations display on /alerts page consistent with /rules
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 months ago
Julius Volz
adf6c105a7
Show alert annotations on /rules page
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 months ago
Julius Volz
5956d482e8
Remove a few unneeded comments and component props
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 months ago
Julius Volz
d7bacf96c7
Remove commented-out and unused allowLineBreaks settings for binop explain
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 months ago
Julius Volz
ff41d45bae
Make status page timestamps consistent and use local time
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 months ago
Julius Volz
a0463f5501
Update UI docs to mention both old + new UIs
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 months ago
Julius Volz
0c9a2c95bf
Make "npm run start" from web/ui start the new UI
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 months ago