Julien Pivotto
2cf2bf5b8f
Address feedback
...
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2025-04-03 13:19:55 +02:00
Julius Volz
683e6983db
Merge pull request #16391 from prometheus/revamp-ui-readme
...
Completely revamp web/ui/README.md
2025-04-03 11:52:14 +02:00
Julien Pivotto
2f6ad79edf
Move calculation to the engine
...
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2025-04-03 10:56:02 +02:00
Julien Pivotto
2e0a4ef096
Update duration expr documentation
...
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2025-04-03 10:56:02 +02:00
Julien Pivotto
9cfd6f7df8
PromQL duration expr: Add a check for durations our of range
...
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2025-04-03 10:56:02 +02:00
Julien Pivotto
7370d62acf
PromQL: allow arithmetic in durations in PromQL parser
...
Updated the parser to allow calculations in PromQL durations.
This enables durations in the form of:
rate(http_requests_total[10m+2s])
The computation of the calculations is done directly at the parse level and does not hit the PromQL Engine.
The lexer has also been updated and improved, in particular for subqueries.
Buxfix: rate(http_requests_total[0]) is no longer allowed.
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2025-04-03 10:56:02 +02:00
Julius Volz
36e50db698
Update npm + nodejs versions in prerequisites section
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-04-03 10:02:53 +02:00
Siavash Safi
ef48e4cb9f
chore: refactor notifier package
...
Split the notifier package into smaller source files.
Signed-off-by: Siavash Safi <siavash@cloudflare.com>
2025-04-03 17:48:04 +11:00
Julius Volz
8ad21d0659
Merge pull request #16390 from ryanwuer/copy-notification-in-explore-metrics-modal
...
Make copy operation responsive after clicking copy icon in metrics explore modal
2025-04-02 17:48:34 +02:00
Ryan Wu
831f79261c
Change IconCopy to IconCheck after clicking copy icon in metrics explore modal
...
Signed-off-by: Ryan Wu <rongjun0821@gmail.com>
2025-04-02 23:03:00 +08:00
Julius Volz
f92e37bb99
Completely revamp web/ui/README.md
...
Updated/fixed/changed a lot of content, changed wordings and style, etc.
Things should now be in an order that most users / developers expect, with the
most relevant sections (how to build + run) at the top.
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-04-02 16:39:42 +02:00
Benjamin Godding
c024fc2f28
fix: fails to auto-reload on changes to rule and scrape config files
...
Signed-off-by: Benjamin Godding <ben.godding@bright.ai>
2025-04-02 08:41:15 -05:00
Matthieu MOREL
08aa5e3f97
ci: update golangci-lint to v2.0.2 and adjust configuration ( #16356 )
...
* ci: update golangci-lint to v2.0.2 and adjust configuration
---------
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2025-04-02 13:05:30 +02:00
Julius Volz
6bfaaa0fee
Fix persisting alert groups per page setting to localStorage ( #16388 )
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-04-02 09:44:47 +01:00
dependabot[bot]
b76e49d1c1
chore(deps): bump github/codeql-action from 3.28.12 to 3.28.13
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.28.12 to 3.28.13.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](5f8171a638...1b549b9259 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-02 00:05:16 +00:00
dependabot[bot]
9a122b32f0
chore(deps): bump github.com/bufbuild/buf in /internal/tools
...
Bumps [github.com/bufbuild/buf](https://github.com/bufbuild/buf ) from 1.50.1 to 1.51.0.
- [Release notes](https://github.com/bufbuild/buf/releases )
- [Changelog](https://github.com/bufbuild/buf/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bufbuild/buf/compare/v1.50.1...v1.51.0 )
---
updated-dependencies:
- dependency-name: github.com/bufbuild/buf
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-01 23:31:19 +00:00
dependabot[bot]
ae688b4b6d
chore(deps): bump github.com/hetznercloud/hcloud-go/v2
...
Bumps [github.com/hetznercloud/hcloud-go/v2](https://github.com/hetznercloud/hcloud-go ) from 2.20.1 to 2.21.0.
- [Release notes](https://github.com/hetznercloud/hcloud-go/releases )
- [Changelog](https://github.com/hetznercloud/hcloud-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/hetznercloud/hcloud-go/compare/v2.20.1...v2.21.0 )
---
updated-dependencies:
- dependency-name: github.com/hetznercloud/hcloud-go/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-01 23:31:07 +00:00
github-actions[bot]
41744d6331
Merge pull request #16370 from prometheus/dependabot/npm_and_yarn/web/ui/react-app/babel/runtime-7.27.0
...
chore(deps): bump @babel/runtime from 7.24.8 to 7.27.0 in /web/ui/react-app
2025-04-01 14:38:21 +00:00
github-actions[bot]
1a325fc9c8
Merge pull request #16369 from prometheus/dependabot/npm_and_yarn/web/ui/vite-6.2.4
...
chore(deps-dev): bump vite from 6.2.3 to 6.2.4 in /web/ui
2025-04-01 14:36:54 +00:00
dependabot[bot]
bd874a50f2
chore(deps): bump @babel/runtime in /web/ui/react-app
...
Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime ) from 7.24.8 to 7.27.0.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.27.0/packages/babel-runtime )
---
updated-dependencies:
- dependency-name: "@babel/runtime"
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-01 14:16:24 +00:00
dependabot[bot]
cede09c298
chore(deps-dev): bump vite from 6.2.3 to 6.2.4 in /web/ui
...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 6.2.3 to 6.2.4.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/v6.2.4/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v6.2.4/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-01 14:16:17 +00:00
Ricard Bejarano
45ee441dde
chore(deps): bump golang.org/x/net from 0.37.0 to 0.38.0 (fixes CVE-2025-22872) ( #16350 )
...
* chore(deps): bump golang.org/x/net from 0.37.0 to 0.38.0 (fixes CVE-2025-22872)
---------
Signed-off-by: Ricard Bejarano <ricard@bejarano.io>
2025-04-01 16:14:07 +02:00
Neeraj Gartia
6e51c2dbd6
[FEATURE] Promltest: support to test expectation annotations ( #15995 )
...
promqltest: add new expect lines for promql testing framework
---------
Signed-off-by: Neeraj Gartia <neerajgartia211002@gmail.com>
2025-04-01 12:12:23 +02:00
George Krajcsovits
b85e343de3
Merge pull request #16226 from chardch/global-convert-classic-histo-to-nhcb
...
nhcb: Add global config option for convert_classic_histograms_to_nhcb
2025-04-01 10:35:03 +02:00
Julius Volz
26857cf500
Fix width for custom label badges in stacked layouts ( #16362 )
...
In stacked / flex layouts like on the service discovery page, elements get a
100% width unless you tell them to only be as wide as their contents.
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-03-31 18:20:28 +01:00
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
Oleg Zaytsev
f5f91a9ca4
defer a.unmarkCreatedSeriesAsPendingCommit()
...
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
2025-03-31 10:06:28 +02:00
Ben Kochie
a721daf981
Log WAL segment loading time ( #16336 )
...
Improve readability of "WAL segment loaded" by logging the duration
of each load. This helps make it easier to spot slow WAL file load
times.
Signed-off-by: SuperQ <superq@gmail.com>
2025-03-31 06:05:14 +02:00
Neeraj Gartia
9084c5247f
fix subquery bug
...
Signed-off-by: Neeraj Gartia <neerajgartia211002@gmail.com>
2025-03-31 00:41:08 +05:30
chardch
357b5ed640
Fix small issues and clarify documentation
...
Signed-off-by: chardch <otwordsne@gmail.com>
2025-03-29 08:35:11 -07:00
Julius Volz
74a1d96c72
Merge pull request #16348 from aknuds1/arve/upgrade-babel
...
web/ui: Update @babel dependencies to fix vulnerabilities
2025-03-29 15:16:58 +01:00
Arve Knudsen
c27ff80272
web/ui: Update @babel dependencies to fix vulnerabilities
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2025-03-29 12:49:54 +01:00
github-actions[bot]
2116bff347
Merge pull request #16347 from prometheus/dependabot/go_modules/documentation/examples/remote_storage/github.com/golang-jwt/jwt/v5-5.2.2
...
chore(deps): bump github.com/golang-jwt/jwt/v5 from 5.2.1 to 5.2.2 in /documentation/examples/remote_storage
2025-03-29 11:46:47 +00:00
github-actions[bot]
3752ffdb4d
Merge pull request #16346 from prometheus/dependabot/npm_and_yarn/web/ui/vite-6.2.3
...
chore(deps-dev): bump vite from 6.2.1 to 6.2.3 in /web/ui
2025-03-29 11:43:03 +00:00
dependabot[bot]
dddca10abf
chore(deps): bump github.com/golang-jwt/jwt/v5
...
Bumps [github.com/golang-jwt/jwt/v5](https://github.com/golang-jwt/jwt ) from 5.2.1 to 5.2.2.
- [Release notes](https://github.com/golang-jwt/jwt/releases )
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md )
- [Commits](https://github.com/golang-jwt/jwt/compare/v5.2.1...v5.2.2 )
---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v5
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2025-03-29 12:23:45 +01:00
dependabot[bot]
0c8cec2ac5
chore(deps-dev): bump vite from 6.2.1 to 6.2.3 in /web/ui
...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 6.2.1 to 6.2.3.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/v6.2.3/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v6.2.3/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-03-29 11:20:13 +00:00
Andres Marquez
2b078e255d
updating golang-jwt version ( #16345 )
...
Signed-off-by: xDead-Manx <181294429+xDead-Manx@users.noreply.github.com>
2025-03-29 12:18:46 +01:00
Aman
2be67be042
docs: remote-write-receiver explicit flag enablement ( #16214 )
...
* docs: remote-write-receiver explicit flag enablement
Signed-off-by: amanycodes <amanycodes@gmail.com>
* Rebuild
Signed-off-by: amanycodes <amanycodes@gmail.com>
* updated docs/migration.md
Signed-off-by: amanycodes <amanycodes@gmail.com>
---------
Signed-off-by: amanycodes <amanycodes@gmail.com>
2025-03-28 19:15:59 +01:00
Julius Volz
4f58629a10
Implement simpler custom badges for label displays ( #16343 )
...
* Implement simpler custom badges for label displays
Should help a little bit with https://github.com/prometheus/prometheus/issues/16308
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Don't wrap text inside custom labels
Signed-off-by: Julius Volz <julius.volz@gmail.com>
---------
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-03-28 18:51:05 +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
Julius Volz
e7b1584b6a
Remove raw target labels from DOM when collapsed ( #16342 )
...
Should help a bit with https://github.com/prometheus/prometheus/issues/16308
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-03-28 17:49:05 +01:00
github-actions[bot]
8cea05dfe4
Merge pull request #16309 from prometheus/dependabot/github_actions/actions/setup-go-5.4.0
...
chore(deps): bump actions/setup-go from 5.3.0 to 5.4.0
2025-03-27 21:27:20 +00:00
dependabot[bot]
6e508f8553
chore(deps): bump actions/setup-go from 5.3.0 to 5.4.0
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 5.3.0 to 5.4.0.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](f111f3307d...0aaccfd150 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-03-27 21:07:19 +00:00
github-actions[bot]
bcb0c232b9
Merge pull request #16312 from prometheus/dependabot/github_actions/scripts/actions/setup-go-5.4.0
...
chore(deps): bump actions/setup-go from 5.3.0 to 5.4.0 in /scripts
2025-03-27 21:06:19 +00:00
github-actions[bot]
38fe7f463a
Merge pull request #16310 from prometheus/dependabot/github_actions/actions/upload-artifact-4.6.2
...
chore(deps): bump actions/upload-artifact from 4.6.1 to 4.6.2
2025-03-27 21:49:28 +01:00
github-actions[bot]
aead2923a1
Merge pull request #16311 from prometheus/dependabot/github_actions/actions/setup-node-4.3.0
...
chore(deps): bump actions/setup-node from 4.2.0 to 4.3.0
2025-03-27 21:49:22 +01:00
github-actions[bot]
4e8d09444b
Merge pull request #16313 from prometheus/dependabot/go_modules/internal/tools/github.com/daixiang0/gci-0.13.6
...
chore(deps): bump github.com/daixiang0/gci from 0.13.5 to 0.13.6 in /internal/tools
2025-03-27 21:49:10 +01:00
Oleg Zaytsev
c5b92f71d4
fix: storage/remote.pool interned refs count and flaky test ( #16335 )
...
* Fix storage/remote.pool interned refs count and flaky test
I saw TestIntern_MultiRef_Concurrent failing on a different PR saying 'expected refs to be 1 but it was 2'.
I took a look, and it definitely can be racy, especially with a time.Sleep() of just 1ms.
I'm fixing that by explicitly waiting until it has been released, and by repeating that 1000 times, otherwise it's just a recipe for a future flaky test.
OTOH, I also took a look at the implementation and saw that we were not holding the RLock() when increasing the references count, so when releasing there was a race condition for the cleanup, I fixed that by holding RLock() while increasing the references count.
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
* s/Equalf/Equal/
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
---------
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
2025-03-27 21:04:30 +01:00
chardch
2f59d38054
Add global config option for convert_classic_histograms_to_nhcb
...
Addresses the global part of https://github.com/prometheus/prometheus/issues/13532
Signed-off-by: chardch <otwordsne@gmail.com>
2025-03-27 10:55:27 -07:00