Commit graph

17019 commits

Author SHA1 Message Date
github-actions[bot]
e864c026f2
Merge pull request #16123 from prometheus/dependabot/go_modules/golang.org/x/text-0.22.0
chore(deps): bump golang.org/x/text from 0.21.0 to 0.22.0
2025-03-07 12:01:48 +00:00
dependabot[bot]
d8065f28c3 chore(deps): bump golang.org/x/sync from 0.10.0 to 0.11.0
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/sync/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2025-03-07 12:39:32 +01:00
dependabot[bot]
c37e2fba40 chore(deps): bump golang.org/x/text from 0.21.0 to 0.22.0
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.21.0 to 0.22.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.21.0...v0.22.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2025-03-07 12:38:07 +01:00
github-actions[bot]
5988bd2b27
Merge pull request #16132 from prometheus/dependabot/go_modules/google.golang.org/api-0.223.0
chore(deps): bump google.golang.org/api from 0.219.0 to 0.223.0
2025-03-07 11:30:33 +00:00
Arve Knudsen
709ccc7048 Synchronize go.mod files
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2025-03-07 12:13:02 +01:00
Arve Knudsen
f2d8af008d Fix testing of previous Go version
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2025-03-07 11:47:33 +01:00
dependabot[bot]
58f92fd83b
chore(deps): bump golangci/golangci-lint-action in /scripts
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6.2.0 to 6.5.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](ec5d18412c...2226d7cb06)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-07 10:33:25 +00:00
David Leadbeater
7a1add6883
build: Make /prometheus group writable (#16073)
As outlined in #3441 this is the minimal change needed to allow
changing UID/GID in Docker when combined with a supplementary group.

Signed-off-by: David Leadbeater <dgl@dgl.cx>
2025-03-07 21:33:04 +11:00
dependabot[bot]
5ad3a9600b chore(deps): bump google.golang.org/api from 0.219.0 to 0.223.0
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.219.0 to 0.223.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.219.0...v0.223.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2025-03-07 11:31:34 +01:00
Arve Knudsen
56929ffa42 Upgrade to Go v1.24 (#16180)
* Upgrade to Go v1.24
* Upgrade golangci-lint

---------

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2025-03-07 11:28:26 +01:00
github-actions[bot]
f03a9916fe
Merge pull request #16120 from prometheus/dependabot/go_modules/github.com/Azure/azure-sdk-for-go/sdk/azidentity-1.8.2
chore(deps): bump github.com/Azure/azure-sdk-for-go/sdk/azidentity from 1.8.1 to 1.8.2
2025-03-07 08:15:31 +00:00
github-actions[bot]
cf113214b4
Merge pull request #15994 from prometheus/dependabot/go_modules/github.com/scaleway/scaleway-sdk-go-1.0.0-beta.32
chore(deps): bump github.com/scaleway/scaleway-sdk-go from 1.0.0-beta.30 to 1.0.0-beta.32
2025-03-07 08:11:21 +00:00
github-actions[bot]
4fab79fd99
Merge pull request #16116 from prometheus/dependabot/go_modules/github.com/klauspost/compress-1.18.0
chore(deps): bump github.com/klauspost/compress from 1.17.11 to 1.18.0
2025-03-07 09:07:51 +01:00
github-actions[bot]
8026a298dd
Merge pull request #16179 from prometheus/dependabot/go_modules/github.com/gophercloud/gophercloud/v2-2.6.0
chore(deps): bump github.com/gophercloud/gophercloud/v2 from 2.4.0 to 2.6.0
2025-03-07 08:03:28 +00:00
dependabot[bot]
172ce3a115
chore(deps): bump github.com/Azure/azure-sdk-for-go/sdk/azidentity
Bumps [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go) from 1.8.1 to 1.8.2.
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md)
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/azidentity/v1.8.1...sdk/azidentity/v1.8.2)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-07 07:31:25 +00:00
dependabot[bot]
cdabe1ceb5
chore(deps): bump github.com/scaleway/scaleway-sdk-go
Bumps [github.com/scaleway/scaleway-sdk-go](https://github.com/scaleway/scaleway-sdk-go) from 1.0.0-beta.30 to 1.0.0-beta.32.
- [Release notes](https://github.com/scaleway/scaleway-sdk-go/releases)
- [Changelog](https://github.com/scaleway/scaleway-sdk-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/scaleway/scaleway-sdk-go/compare/v1.0.0-beta.30...v1.0.0-beta.32)

---
updated-dependencies:
- dependency-name: github.com/scaleway/scaleway-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-07 07:31:21 +00:00
dependabot[bot]
0fede10738
chore(deps): bump github.com/klauspost/compress from 1.17.11 to 1.18.0
Bumps [github.com/klauspost/compress](https://github.com/klauspost/compress) from 1.17.11 to 1.18.0.
- [Release notes](https://github.com/klauspost/compress/releases)
- [Changelog](https://github.com/klauspost/compress/blob/master/.goreleaser.yml)
- [Commits](https://github.com/klauspost/compress/compare/v1.17.11...v1.18.0)

---
updated-dependencies:
- dependency-name: github.com/klauspost/compress
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-07 07:24:39 +00:00
dependabot[bot]
c6f5c72f43
chore(deps): bump github.com/gophercloud/gophercloud/v2
Bumps [github.com/gophercloud/gophercloud/v2](https://github.com/gophercloud/gophercloud) from 2.4.0 to 2.6.0.
- [Release notes](https://github.com/gophercloud/gophercloud/releases)
- [Changelog](https://github.com/gophercloud/gophercloud/blob/v2.6.0/CHANGELOG.md)
- [Commits](https://github.com/gophercloud/gophercloud/compare/v2.4.0...v2.6.0)

---
updated-dependencies:
- dependency-name: github.com/gophercloud/gophercloud/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-07 07:22:40 +00:00
github-actions[bot]
8c158f8084
Merge pull request #16136 from prometheus/dependabot/go_modules/google.golang.org/protobuf-1.36.5
chore(deps): bump google.golang.org/protobuf from 1.36.4 to 1.36.5
2025-03-07 07:18:22 +00:00
github-actions[bot]
a98adf75a7
Merge pull request #16119 from prometheus/dependabot/go_modules/github.com/prometheus/exporter-toolkit-0.14.0
chore(deps): bump github.com/prometheus/exporter-toolkit from 0.13.2 to 0.14.0
2025-03-07 08:17:24 +01:00
github-actions[bot]
f88fca47b7
Merge pull request #16133 from prometheus/dependabot/go_modules/github.com/hetznercloud/hcloud-go/v2-2.19.1
chore(deps): bump github.com/hetznercloud/hcloud-go/v2 from 2.19.0 to 2.19.1
2025-03-07 08:16:22 +01:00
github-actions[bot]
8ad7655661
Merge pull request #16127 from prometheus/dependabot/go_modules/golang.org/x/tools-0.30.0
chore(deps): bump golang.org/x/tools from 0.29.0 to 0.30.0
2025-03-07 08:15:56 +01:00
github-actions[bot]
ab99028659
Merge pull request #16135 from prometheus/dependabot/go_modules/github.com/KimMachineGun/automemlimit-0.7.1
chore(deps): bump github.com/KimMachineGun/automemlimit from 0.7.0 to 0.7.1
2025-03-07 08:06:26 +01:00
github-actions[bot]
5277c91836
Merge pull request #16137 from prometheus/dependabot/go_modules/github.com/google/go-cmp-0.7.0
chore(deps): bump github.com/google/go-cmp from 0.6.0 to 0.7.0
2025-03-07 08:06:00 +01:00
github-actions[bot]
b461948da7
Merge pull request #16138 from prometheus/dependabot/go_modules/github.com/ovh/go-ovh-1.7.0
chore(deps): bump github.com/ovh/go-ovh from 1.6.0 to 1.7.0
2025-03-07 08:05:42 +01:00
github-actions[bot]
61f4d63110
Merge pull request #16139 from prometheus/dependabot/go_modules/documentation/examples/remote_storage/github.com/prometheus/client_golang-1.21.0
chore(deps): bump github.com/prometheus/client_golang from 1.20.5 to 1.21.0 in /documentation/examples/remote_storage
2025-03-07 08:05:26 +01:00
Patryk Prus
61aa82865d
TSDB: keep duplicate series records in checkpoints while their samples may still be present (#16060)
Renames the head's deleted map to walExpiries, and creates entries for any
duplicate series records encountered during WAL replay, with the expiry set
to the highest current WAL segment number. Any subsequent WAL
checkpoints will see the duplicate series entry in the walExpiries map, and
keep the series record until the last WAL segment that could contain its
samples is deleted.

Other considerations:

WBL: series records aren't written to the WBL, so there are no duplicates to deal with
agent mode: has its own WAL replay logic that handles duplicate series records differently, and is outside the scope of this PR
2025-03-05 13:45:08 -05:00
dependabot[bot]
8a76d74532
chore(deps): bump github.com/ovh/go-ovh from 1.6.0 to 1.7.0
Bumps [github.com/ovh/go-ovh](https://github.com/ovh/go-ovh) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/ovh/go-ovh/releases)
- [Commits](https://github.com/ovh/go-ovh/compare/v1.6.0...v1.7.0)

---
updated-dependencies:
- dependency-name: github.com/ovh/go-ovh
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-05 15:05:39 +00:00
Arve Knudsen
7cbf749096
Upgrade to github.com/oklog/ulid/v2 (#16168)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2025-03-05 16:03:25 +01:00
Danial Eskandari
e7ef1c0d9a
config: set gogc default value when config body is empty (#16052)
* fix: set gogc default value when config body is empty

Signed-off-by: Danial Eskandari <doneskandari@gmail.com>

* refactor: explicitly check value 75 in `TestGoGCDefaultValueOnEmptyConfigBody`

add GoGC assertion in `TestEmptyConfig`, also removed the no longer needed runtime config assignment in `TestEmptyGlobalBlock`

Signed-off-by: Danial Eskandari <doneskandari@gmail.com>

* refactor: remove `TestGoGCDefaultValueOnEmptyConfigBody` to reduce duplicate assertions

Signed-off-by: Danial Eskandari <doneskandari@gmail.com>

---------

Signed-off-by: Danial Eskandari <doneskandari@gmail.com>
Signed-off-by: machine424 <ayoubmrini424@gmail.com>
2025-03-05 15:44:54 +01:00
machine424
7d29854c71
chore: update actions/cache to v4.2.2
avoiding

Error: This request has been automatically failed because it uses a deprecated version of `actions/cache: 0c45773b623bea8c8e75f6c82b208c3cf94ea4f9`. Please update your workflow to use v3/v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down

like in https://github.com/prometheus/prometheus/actions/runs/13678387950/job/38244352964?pr=16090

Signed-off-by: machine424 <ayoubmrini424@gmail.com>
2025-03-05 15:44:54 +01:00
machine424
9987480e9d
chore: update prometheus/promci to v0.4.6
The used version had a no-longer-supported actions/upload-artifact version

Which led to:

Error: This request has been automatically failed because it uses a deprecated version of `actions/upload-artifact: v3`. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/

as in https://github.com/prometheus/prometheus/actions/runs/13591433692/job/38242934626

Signed-off-by: machine424 <ayoubmrini424@gmail.com>
2025-03-05 15:44:54 +01:00
Julius Volz
677efa4678
Merge pull request #16170 from prometheus/fix-test-logging-race
Fix test race by not calling t.Log() after test completion
2025-03-05 14:10:46 +01:00
Julius Volz
6054e843fe Fix test race by not calling t.Log() after test completion
Fixes https://github.com/prometheus/prometheus/issues/16169

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-03-05 12:20:12 +01:00
Julius Volz
6da8b1050e
Merge pull request #16167 from prometheus/invert-legend-selection-behavior
Invert graph legend series show/hide behavior
2025-03-05 12:16:42 +01:00
Julius Volz
7a2be11436 Change "Cmd" to "⌘"
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-03-05 11:24:35 +01:00
Julius Volz
8e79631f86 Invert graph legend series show/hide behavior
Also conditionally display instructions for "Cmd" vs. "Ctrl" depending on the user agent.

See https://github.com/prometheus/prometheus/issues/16162#issuecomment-2699315258

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-03-05 10:33:03 +01:00
Julius Volz
9e5d59b777
Merge pull request #16163 from prometheus/readd-vertical-grid
Bring back vertical grid lines
2025-03-05 10:22:54 +01:00
Julius Volz
70aea5dd8d
Only copy matchers on double click and add error handling (#16165)
The useClipboard hook also just uses navigator.clipboard.writeText() under
the hood, but the timeout and state handling that the hook provides were
just not a good fit for showing a one-shot notification with error
detectionm, so doing the copying manually.

Addresses part of https://github.com/prometheus/prometheus/issues/16162

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-03-05 10:18:09 +01:00
Julius Volz
631890b38e
Add graph legend series toggling instructions again (#16164)
Addresses part of https://github.com/prometheus/prometheus/issues/16162

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-03-05 10:17:15 +01:00
Julius Volz
4ae1effb62 Bring back vertical grid lines
Addressing part of https://github.com/prometheus/prometheus/issues/16162

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-03-04 23:38:25 +01:00
dependabot[bot]
8701888e62
chore(deps): bump @tanstack/react-query in /web/ui
Bumps [@tanstack/react-query](https://github.com/TanStack/query/tree/HEAD/packages/react-query) from 5.62.11 to 5.67.1.
- [Release notes](https://github.com/TanStack/query/releases)
- [Commits](https://github.com/TanStack/query/commits/v5.67.1/packages/react-query)

---
updated-dependencies:
- dependency-name: "@tanstack/react-query"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-03 19:54:24 +00:00
Jan Fajerski
350d591e3b
Merge pull request #16159 from jan--f/sync-release-3.2
Merge release-3.2 to main
2025-03-03 20:52:46 +01:00
Jan Fajerski
1ab9fa701e Merge branch 'release-3.2' into sync-release-3.2
Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
2025-03-03 20:16:09 +01:00
Giuliano Panzironi
2ef8706c27
fix: format float to avoid overflow (#16083)
Signed-off-by: giulianopz <panzironi.giuliano@gmail.com>
2025-03-03 09:03:45 +00:00
dependabot[bot]
033746305b
chore(deps): bump @codemirror/view in /web/ui/react-app
Bumps [@codemirror/view](https://github.com/codemirror/view) from 6.36.1 to 6.36.3.
- [Changelog](https://github.com/codemirror/view/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codemirror/view/compare/6.36.1...6.36.3)

---
updated-dependencies:
- dependency-name: "@codemirror/view"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-02 00:49:43 +00:00
dependabot[bot]
7d84675e5b
chore(deps): bump sass from 1.83.0 to 1.85.1 in /web/ui/react-app
Bumps [sass](https://github.com/sass/dart-sass) from 1.83.0 to 1.85.1.
- [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.83.0...1.85.1)

---
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-02 00:49:05 +00:00
dependabot[bot]
b7884b7270
chore(deps-dev): bump @types/sinon in /web/ui/react-app
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) from 17.0.3 to 17.0.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon)

---
updated-dependencies:
- dependency-name: "@types/sinon"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-02 00:48:44 +00:00
dependabot[bot]
3442a85c7b
chore(deps): bump @codemirror/search in /web/ui/react-app
Bumps [@codemirror/search](https://github.com/codemirror/search) from 6.5.8 to 6.5.10.
- [Changelog](https://github.com/codemirror/search/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codemirror/search/compare/6.5.8...6.5.10)

---
updated-dependencies:
- dependency-name: "@codemirror/search"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-02 00:48:33 +00:00
dependabot[bot]
b609a53a23
chore(deps-dev): bump prettier from 3.4.2 to 3.5.2 in /web/ui/react-app
Bumps [prettier](https://github.com/prettier/prettier) from 3.4.2 to 3.5.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.4.2...3.5.2)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-02 00:48:24 +00:00