Commit graph

16503 commits

Author SHA1 Message Date
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
Ryan Wu
7d73c1d3f8
refactor[discovery, tsdb]: simplify error handling and remove redundant checks (#16328)
* refactor: simplify error handling and remove redundant checks

Signed-off-by: Ryan Wu <rongjun0821@gmail.com>

* Add the comment for return of reloading blocks failure

Co-authored-by: Ayoub Mrini <ayoubmrini424@gmail.com>
Signed-off-by: Ryan Wu <rongjun0821@gmail.com>

* Add the comment for return of reloading blocks failure

Signed-off-by: Ryan Wu <rongjun0821@gmail.com>

---------

Signed-off-by: Ryan Wu <rongjun0821@gmail.com>
Co-authored-by: Ayoub Mrini <ayoubmrini424@gmail.com>
2025-03-27 12:20:59 +01:00
wellweek
4e91f13db2 refactor: use slices.Equal to simplify code
Signed-off-by: wellweek <xiezitai@outlook.com>
2025-03-27 12:17:35 +01:00
Oleg Zaytsev
e4fe8d8684
Create memSeries with pendingCommit=true
This fixes TestHead_RaceBetweenSeriesCreationAndGC.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
2025-03-27 11:11:57 +01:00
Oleg Zaytsev
df33f1aace Add TestHead_RaceBetweenSeriesCreationAndGC
This test consistently fails missing ~10 series.
If it doesn't fail on your machine, just increase totalSeries, that's
how race conditions work.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
2025-03-27 10:56:24 +01:00
Owen Williams
6566c5a2b3
scrape: Add config option for escaping scheme request. (#16066)
The new metric_name_escaping_scheme config option works in parallel with metric_name_validation_scheme and controls which escaping scheme is requested when scraping. When not specified, the scheme will request underscores if the validation scheme is set to legacy, and will request allow-utf-8 when the validation scheme is set to utf8. This setting allows users to allow utf8 names if they like, but explicitly request an escaping scheme rather than UTF-8.

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

Built on https://github.com/prometheus/prometheus/pull/16080

Signed-off-by: Owen Williams <owen.williams@grafana.com>
2025-03-26 18:27:28 -04: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
Bartlomiej Plotka
fb880081d8
golangci: Disable nolintlint due to known issues. (#16204)
Fixes: https://github.com/prometheus/prometheus/issues/16203

Details: https://github.com/golangci/golangci-lint/issues/3228

Signed-off-by: bwplotka <bwplotka@gmail.com>
2025-03-26 14:49:32 +01:00
Bryan Boreham
a82bb77178
[PERF] Remote-write: re-use memory to read WAL data (#16197)
The `:=` causes new variables to be created, which means the outer
slice stays at nil, and new memory is allocated every time round the
loop.

Extracted from https://github.com/prometheus/prometheus/pull/16182
Credit to @bwplotka.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2025-03-26 14:49:10 +01:00
Charles Korn
a2aeb813af
promql: return NaN from irate() if second-last sample is NaN (#16199)
promql: return NaN from `irate()` if either of last two samples is NaN

Signed-off-by: Charles Korn <charles.korn@grafana.com>

---------

Signed-off-by: Charles Korn <charles.korn@grafana.com>
2025-03-26 14:47:58 +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
György Krajcsovits
f71ec8d5d5
fix(scrape): skip native histogram series if ingestion is disabled
No need to validate, track, add sample, add exemplar if series isn't
going to be ingested. Basically this is the same as if this series was
dropped by relabelling.

Fixes #16217

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2025-03-26 14:47:34 +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
dependabot[bot]
6bc3806ccc
chore(deps): bump github.com/daixiang0/gci in /internal/tools
Bumps [github.com/daixiang0/gci](https://github.com/daixiang0/gci) from 0.13.5 to 0.13.6.
- [Release notes](https://github.com/daixiang0/gci/releases)
- [Commits](https://github.com/daixiang0/gci/compare/v0.13.5...v0.13.6)

---
updated-dependencies:
- dependency-name: github.com/daixiang0/gci
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-26 11:30:43 +00:00
Bryan Boreham
de399eb09c
Merge pull request #16323 from bboreham/remove-toolchain-line
[BUILD] Remove Go toolchain line

It doesn't reflect the version we use for CI builds, which is controlled by .promu.yml.

As such, I cannot see any justification to keep this line: it isn't necessary and it could confuse people.
2025-03-26 11:29:35 +00:00
George Krajcsovits
34bed4608b
Merge pull request #16322 from zenador/customise-newreadclient
Allow NewReadClient to take in more config options
2025-03-26 11:19:47 +01:00
Bryan Boreham
fc7c2f77b3 [BUILD] Remove Go toolchain line
It doesn't reflect the version we use for CI builds, which is controlled
by `.promu.yml`.

As such, I cannot see any justification to keep this line: it isn't
necessary and it could confuse people.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2025-03-25 19:04:45 +00:00
Jeanette Tan
3c865c6649 Allow NewReadClient to take in more config options
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
2025-03-26 00:09:15 +08:00
George Krajcsovits
8e36fd65c9
Merge pull request #16320 from prometheus/revert-15093-dimitar/ruler/unsupported-logger
Revert "ruler: correct logging of alert name & template data"
2025-03-25 15:40:05 +01:00
George Krajcsovits
d085f7da9b
Revert "ruler: correct logging of alert name & template data" 2025-03-25 15:36:34 +01:00
Owen Williams
503f3cb6d7
docs: clarify docker build instruction (#16319)
Make it explicit that the make docker command is not intended for local builds.

Signed-off-by: Owen Williams <owen.williams@grafana.com>
2025-03-25 15:22:36 +01:00
George Krajcsovits
e19ff7a000
Merge pull request #15093 from dimitarvdimitrov/dimitar/ruler/unsupported-logger
ruler: correct logging of alert name & template data
2025-03-25 13:47:22 +01:00
Dimitar Dimitrov
bd5b2ea95c
ruler notifier: make batch size configurable (#16254)
* ruler notifier: make batch size configurable

In Mimir we experimented with setting a higher value for the batch size.
A 4x increase in batch size decreased the time to process a single notification by about 2x.
This reduces the processing time of the notifications queue and increases the throughput of the queue.

Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>

* Update cmd/prometheus/main.go

Co-authored-by: gotjosh <josue.abreu@gmail.com>
Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>

* Update docs

Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>

* Use a string constant

Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>

* Add godoc comment on exported constant

Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>

---------

Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
Co-authored-by: gotjosh <josue.abreu@gmail.com>
2025-03-24 14:22:19 +00:00
dependabot[bot]
61dce4c750
chore(deps): bump actions/setup-go from 5.3.0 to 5.4.0 in /scripts
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-24 09:56:11 +00:00
dependabot[bot]
8d980bf747
chore(deps): bump actions/setup-node from 4.2.0 to 4.3.0
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4.2.0 to 4.3.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](1d0ff469b7...cdca7365b2)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-24 09:56:09 +00:00
dependabot[bot]
c7f4e41e79
chore(deps): bump actions/upload-artifact from 4.6.1 to 4.6.2
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.6.1 to 4.6.2.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](4cec3d8aa0...ea165f8d65)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-24 09:56:06 +00:00
Julius Volz
475092ff79
Remove dependabot configs for npm-based dependencies (#16307)
This is just IMO, but getting my inbox flooded every month with hundreds of
dependabot PRs is annoying, even if I don't end up handling most of them myself
(thanks to others who do!). And then philosophically, I don't know if this is
even the right approach. I don't think that whoever merges these PRs actually
has the capacity or the knowledge to check that everything is still working as
expected. Often subtle things can break after package updates, like a class
name from an npm package not fitting to a style definition in our code anymore
(as happened once with e.g. codemirror in the past, and nobody noticed when
merging, and that bug is still present in Thanos' port of our UI). And you
can't look in detail at the UI for every little PR that dependabot sends.

Node module dependencies are inherently very noisy because there are so many of
them, but I think a better approach would be to update them maybe once or twice
a year (or whenever really needed), with all deps updated together, at a time
when a maintainer has the time to really look at things carefully, and then do
a comprehensive manual check of the UI to see that everything is still behaving
as before.

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-03-24 10:55:01 +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
github-actions[bot]
f158d27816
Merge pull request #16297 from prometheus/dependabot/npm_and_yarn/web/ui/mantine/code-highlight-7.17.2
chore(deps): bump @mantine/code-highlight from 7.15.2 to 7.17.2 in /web/ui
2025-03-23 12:07:35 +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