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
Julius Volz
5f1c6226e2
SD UI: Better total target count display when using keep_dropped_targets
option
...
Fixes https://github.com/prometheus/prometheus/issues/16586
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-05-16 11:07:55 +02:00
Julius Volz
dbf5d01a62
Fix full-page re-rendering when opening status nav menu ( #16590 )
...
When opening the status pages menu while already viewing one of the
status pages, the whole page would be re-rendered because the menu target's
default action of following the current page's URL was not prevented. Also,
we don't need to use a NavLink component for the menu target when we are
not viewing a status page, because then the component won't need to be
highlighted anyways.
Discovered + fixed with the help of react-scan.
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-05-12 12:17:18 +02:00
Julius Volz
5c06804df8
Optimize memoization and search debouncing on /targets page ( #16589 )
...
Moving the debouncing of the search field to the parent component and then
memoizing the ScrapePoolsList component prevents a lot of superfluous
re-renders of the entire scrape pools list that previously got triggered
immediately when you typed in the search box or even just collapsed a pool.
(While the computation of what data to show was already memoized in the
ScrapePoolList component, the component itself still had to re-render a lot
with the same data.)
Discovered this problem + verified fix using react-scan.
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-05-12 10:39:58 +02:00
Arve Knudsen
e7e3ab2824
Fix linting issues found by golangci-lint v2.0.2 ( #16368 )
...
* Fix linting issues found by golangci-lint v2.0.2
---------
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2025-05-03 19:05:13 +02:00
Jan-Otto Kröpke
7789ef27c8
Upgraded npm dependencies pre 3.4.0-rc.0 ( #16493 )
2025-04-29 17:19:23 +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
Aman
26bddcf068
promql: histogram_stddev and histogram_stdvar should use arithmetic mean for custom buckets
...
Signed-off-by: amanycodes <amanycodes@gmail.com>
2025-04-24 14:48:58 +02:00
Fiona Liao
7ec63b1fa1
Add primitive support for ingesting OTLP delta metrics as-is ( #16360 )
...
* Add simple delta support
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Rename delta2cumulative part
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Whoops bad refactor
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Add example yml
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Feature flag instead and histogram hint handling
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Delete otel_delta.yml - outdated
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Renaming to native delta support
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Add more explanatory comments
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Add more explanation to histograms
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Correct comment on d2c consumer
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Add tests for counters and fix bug
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Add histogram tests
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Add docs
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Sort series to make test deterministic
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* More formatting
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Change flag name to ingestion
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Explain where rate calculation can go wrong
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Add warning about duplicate timestamps
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Update docs/feature_flags.md
Co-authored-by: Arthur Silva Sens <arthursens2005@gmail.com>
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Fix tests
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Remove unnecessary if
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Add warning to d2c section
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Make unknown type error when getting temporality
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Correct type comment - not planning to add delta metric metadata type
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Remove unused param for empty type
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Rewrite temporality logic to be clearer
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
* Change spurious to unnecessary - better description
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
---------
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
Co-authored-by: Arthur Silva Sens <arthursens2005@gmail.com>
2025-04-23 09:58:02 -03:00
machine424
381720497e
Merge branch 'release-3.3' into 33sync
...
Signed-off-by: machine424 <ayoubmrini424@gmail.com>
2025-04-23 09:08:46 +02:00
machine424
46883e05ae
Prepare release 3.3.0
...
Signed-off-by: machine424 <ayoubmrini424@gmail.com>
2025-04-15 12:43:15 +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
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
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
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
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
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
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
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
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
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
machine424
0ffad22477
Prepare release 3.3.0-rc.1
...
Signed-off-by: machine424 <ayoubmrini424@gmail.com>
2025-03-26 15:21:01 +01:00
Mustafain Ali Khan
b7fc01df0e
Fix rules UI to display correct value for 'keepFiringFor'
...
Signed-off-by: Mustafain Ali Khan <mustalik@amazon.com>
2025-03-26 14:47:45 +01:00
machine424
12d37a86df
Prepare release 3.3.0-rc.0
...
Signed-off-by: machine424 <ayoubmrini424@gmail.com>
2025-03-26 13:44:25 +01:00
github-actions[bot]
5d2b760349
Merge pull request #16279 from prometheus/dependabot/npm_and_yarn/web/ui/eslint-9.23.0
...
chore(deps-dev): bump eslint from 9.18.0 to 9.23.0 in /web/ui
2025-03-23 12:12:04 +00:00
github-actions[bot]
b99c542a60
Merge pull request #16277 from prometheus/dependabot/npm_and_yarn/web/ui/mantine/notifications-7.17.2
...
chore(deps): bump @mantine/notifications from 7.15.3 to 7.17.2 in /web/ui
2025-03-23 12:07:40 +00:00
Arve Knudsen
6e6ea34d37
Fix linting
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2025-03-23 12:55:05 +01:00
dependabot[bot]
d816160881
chore(deps): bump @mantine/notifications in /web/ui
...
Bumps [@mantine/notifications](https://github.com/mantinedev/mantine/tree/HEAD/packages/@mantine/notifications ) from 7.15.3 to 7.17.2.
- [Release notes](https://github.com/mantinedev/mantine/releases )
- [Changelog](https://github.com/mantinedev/mantine/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mantinedev/mantine/commits/7.17.2/packages/@mantine/notifications )
---
updated-dependencies:
- dependency-name: "@mantine/notifications"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-03-23 11:51:09 +00:00
dependabot[bot]
611b4797c3
chore(deps): bump @mantine/code-highlight in /web/ui
...
Bumps [@mantine/code-highlight](https://github.com/mantinedev/mantine/tree/HEAD/packages/@mantine/code-highlight ) from 7.15.2 to 7.17.2.
- [Release notes](https://github.com/mantinedev/mantine/releases )
- [Changelog](https://github.com/mantinedev/mantine/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mantinedev/mantine/commits/7.17.2/packages/@mantine/code-highlight )
---
updated-dependencies:
- dependency-name: "@mantine/code-highlight"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-03-23 11:51:07 +00:00
github-actions[bot]
02354a101b
Merge pull request #16304 from prometheus/dependabot/npm_and_yarn/web/ui/mantine/dates-7.17.2
...
chore(deps): bump @mantine/dates from 7.15.3 to 7.17.2 in /web/ui
2025-03-23 11:49:51 +00:00
github-actions[bot]
fc74551d3a
Merge pull request #16271 from prometheus/dependabot/npm_and_yarn/web/ui/types/react-dom-19.0.4
...
chore(deps-dev): bump @types/react-dom from 19.0.3 to 19.0.4 in /web/ui
2025-03-23 11:49:06 +00:00
github-actions[bot]
c09bd2c7ba
Merge pull request #16270 from prometheus/dependabot/npm_and_yarn/web/ui/react-app/sass-1.86.0
...
chore(deps): bump sass from 1.85.1 to 1.86.0 in /web/ui/react-app
2025-03-23 11:36:48 +00:00
github-actions[bot]
090f0a40f9
Merge pull request #16284 from prometheus/dependabot/npm_and_yarn/web/ui/uplot-1.6.32
...
chore(deps): bump uplot from 1.6.31 to 1.6.32 in /web/ui
2025-03-23 11:30:40 +00:00
github-actions[bot]
226058eed4
Merge pull request #16269 from prometheus/dependabot/npm_and_yarn/web/ui/react-router-dom-7.4.0
...
chore(deps): bump react-router-dom from 7.1.1 to 7.4.0 in /web/ui
2025-03-23 11:30:21 +00:00
Arve Knudsen
e0ead7087e
Convert .eslintrc.json to eslint.config.mjs
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2025-03-23 12:29:30 +01:00
dependabot[bot]
0f7f85e3d6
chore(deps): bump @mantine/dates from 7.15.3 to 7.17.2 in /web/ui
...
Bumps [@mantine/dates](https://github.com/mantinedev/mantine/tree/HEAD/packages/@mantine/dates ) from 7.15.3 to 7.17.2.
- [Release notes](https://github.com/mantinedev/mantine/releases )
- [Changelog](https://github.com/mantinedev/mantine/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mantinedev/mantine/commits/7.17.2/packages/@mantine/dates )
---
updated-dependencies:
- dependency-name: "@mantine/dates"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-03-23 11:24:27 +00:00
github-actions[bot]
f47dffe867
Merge pull request #16103 from prometheus/dependabot/npm_and_yarn/web/ui/codemirror/state-6.5.2
...
chore(deps): bump @codemirror/state from 6.5.0 to 6.5.2 in /web/ui
2025-03-23 12:17:33 +01:00
dependabot[bot]
3dfea0c2e9
chore(deps-dev): bump eslint from 9.18.0 to 9.23.0 in /web/ui
...
Bumps [eslint](https://github.com/eslint/eslint ) from 9.18.0 to 9.23.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v9.18.0...v9.23.0 )
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-03-23 11:17:20 +00:00
dependabot[bot]
a5a4949f02
chore(deps): bump sass from 1.85.1 to 1.86.0 in /web/ui/react-app
...
Bumps [sass](https://github.com/sass/dart-sass ) from 1.85.1 to 1.86.0.
- [Release notes](https://github.com/sass/dart-sass/releases )
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sass/dart-sass/compare/1.85.1...1.86.0 )
---
updated-dependencies:
- dependency-name: sass
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-03-23 11:00:10 +00:00
github-actions[bot]
cde95c71a6
Merge pull request #16187 from prometheus/dependabot/npm_and_yarn/web/ui/tabler/icons-react-3.31.0
...
chore(deps): bump @tabler/icons-react from 3.28.1 to 3.31.0 in /web/ui
2025-03-23 11:58:58 +01:00
dependabot[bot]
242c3ab74d
chore(deps-dev): bump nock from 13.5.6 to 14.0.1 in /web/ui ( #16110 )
...
Bumps [nock](https://github.com/nock/nock ) from 13.5.6 to 14.0.1.
- [Release notes](https://github.com/nock/nock/releases )
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md )
- [Commits](https://github.com/nock/nock/compare/v13.5.6...v14.0.1 )
---
updated-dependencies:
- dependency-name: nock
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-23 11:58:44 +01:00