Commit Graph

15560 Commits

Author SHA1 Message Date
SungJin1212
b594733a07
Fix PRW2 data diff error message typo (#16481)
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
2025-04-25 09:27:22 +02:00
Julius Volz
9ab60c59e4
Merge pull request #16044 from amanycodes/fix/stable-cardUI-key
mantine-ui: stable AND definitely unique key for /alerts cards
2025-04-24 17:44:36 +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
Arthur Silva Sens
9659e30dec
Add documentation for 'NoTranslation' mode (#16470)
* Add documentation for 'NoTranslation' mode

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>

* Update docs/configuration/configuration.md

Co-authored-by: Bartlomiej Plotka <bwplotka@gmail.com>
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>

---------

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
Co-authored-by: Bartlomiej Plotka <bwplotka@gmail.com>
2025-04-23 14:15:18 +00: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
Ayoub Mrini
23d73e8138
Merge pull request #16472 from machine424/33sync
Merge release-3.3 to main
2025-04-23 11:18:33 +02: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
Michael Hoffmann
d6d9f97bac
promql: histogram_fraction for bucket histograms (#16095)
* promql: histogram_fraction for bucket histograms

This PR extends the histogram_fraction function to also work with classic bucket histograms. This is beneficial because it allows expressions like sum(increase(my_bucket{le="0.5"}[10m]))/sum(increase(my_total[10m])) to be written without knowing the actual values of the "le" label, easing the transition to native histograms later on.
It also feels natural since histogram_quantile also can deal with classic histograms.

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* promql: histogram_fraction for bucket histograms

* Add documentation and reduce code duplication
* Fix a bug in linear interpolation between bucket boundaries
* Add more PromQL tests

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* Update docs/querying/functions.md

Co-authored-by: Björn Rabenstein <github@rabenste.in>
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>

---------

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
Co-authored-by: Björn Rabenstein <github@rabenste.in>
2025-04-23 00:28:31 +02:00
Arthur Silva Sens
d9c0ad1e61
feat: Support 'NoTranslation' mode in OTLP endpoint (#16441)
* feat: Support 'NoTranslation' mode in OTLP endpoint

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>

---------

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
2025-04-22 13:13:30 -03:00
Bryan Boreham
8487ed8145
Merge pull request #16440 from bboreham/faster-benchmark-loadwls
[TESTS] TSDB: Faster WAL benchmarks
2025-04-22 15:59:03 +01:00
Björn Rabenstein
da7afdc81c
Merge pull request #16460 from jkroepke/azure-maintainer
MAINTAINERS: add Jan-Otto Kröpke as an discovery/azure maintainer
2025-04-22 15:57:15 +02:00
George Krajcsovits
f379e2eac7
Merge pull request #16437 from zenador/unwrap-read-client-error
remote: Allow unwrapping of errors when reading from remote client
2025-04-22 14:59:54 +02:00
Julien
f4ca1368ff
Merge pull request #16249 from roidelapluie/arythmetics
PromQL: allow arithmetic operations in durations in PromQL parser
2025-04-22 10:17:41 +02:00
Neeraj Gartia
a511164615
[REFACTOR] PromQL: DRY stddev and stdvar functions (#16451)
* DRY stddev and stdvar

---------

Signed-off-by: Neeraj Gartia <neerajgartia211002@gmail.com>
2025-04-20 11:17:03 +02:00
Jan-Otto Kröpke
ece91ecc7f
MAINTAINERS: add Jan-Otto Kröpke as an discovery/azure maintainer
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
2025-04-19 12:19:32 +02:00
github-actions[bot]
5afa652a83
Merge pull request #16373 from prometheus/dependabot/go_modules/google.golang.org/api-0.228.0
chore(deps): bump google.golang.org/api from 0.227.0 to 0.228.0
2025-04-18 01:35:40 +02:00
github-actions[bot]
01206f8845
Merge pull request #16449 from prometheus/dependabot/go_modules/internal/tools/golang.org/x/net-0.38.0
chore(deps): bump golang.org/x/net from 0.37.0 to 0.38.0 in /internal/tools
2025-04-18 01:12:17 +02:00
dependabot[bot]
58eeb3f6ac
chore(deps): bump golang.org/x/net in /internal/tools
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.37.0 to 0.38.0.
- [Commits](https://github.com/golang/net/compare/v0.37.0...v0.38.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.38.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-17 18:08:37 +00:00
dependabot[bot]
f82e843336
chore(deps): bump google.golang.org/api from 0.227.0 to 0.228.0
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.227.0 to 0.228.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.227.0...v0.228.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>
2025-04-17 18:07:31 +00:00
github-actions[bot]
f141e8ad73
Merge pull request #16376 from prometheus/dependabot/go_modules/github.com/hashicorp/consul/api-1.32.0
chore(deps): bump github.com/hashicorp/consul/api from 1.31.2 to 1.32.0
2025-04-17 20:06:28 +02:00
github-actions[bot]
6bd3fb05b3
Merge pull request #16380 from prometheus/dependabot/go_modules/github.com/open-telemetry/opentelemetry-collector-contrib/processor/deltatocumulativeprocessor-0.123.0
chore(deps): bump github.com/open-telemetry/opentelemetry-collector-contrib/processor/deltatocumulativeprocessor from 0.122.0 to 0.123.0
2025-04-17 20:06:06 +02:00
dependabot[bot]
bc9d7b0a9d
chore(deps): bump github.com/hashicorp/consul/api from 1.31.2 to 1.32.0
Bumps [github.com/hashicorp/consul/api](https://github.com/hashicorp/consul) from 1.31.2 to 1.32.0.
- [Release notes](https://github.com/hashicorp/consul/releases)
- [Changelog](https://github.com/hashicorp/consul/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/consul/compare/api/v1.31.2...api/v1.32.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/consul/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-17 17:22:20 +00:00
dependabot[bot]
f193a0a8ad
chore(deps): bump github.com/open-telemetry/opentelemetry-collector-contrib/processor/deltatocumulativeprocessor
Bumps [github.com/open-telemetry/opentelemetry-collector-contrib/processor/deltatocumulativeprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib) from 0.122.0 to 0.123.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-collector-contrib/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CHANGELOG-API.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-collector-contrib/compare/v0.122.0...v0.123.0)

---
updated-dependencies:
- dependency-name: github.com/open-telemetry/opentelemetry-collector-contrib/processor/deltatocumulativeprocessor
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-17 17:15:47 +00:00
github-actions[bot]
c49d76eabb
Merge pull request #16378 from prometheus/dependabot/go_modules/github.com/digitalocean/godo-1.142.0
chore(deps): bump github.com/digitalocean/godo from 1.141.0 to 1.142.0
2025-04-17 19:14:52 +02:00
dependabot[bot]
1642d84cc1
chore(deps): bump the go-opentelemetry-io group across 2 directories with 5 updates (#16372)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-17 19:14:09 +02:00
dependabot[bot]
8124328675
chore(deps): bump github.com/digitalocean/godo from 1.141.0 to 1.142.0
Bumps [github.com/digitalocean/godo](https://github.com/digitalocean/godo) from 1.141.0 to 1.142.0.
- [Release notes](https://github.com/digitalocean/godo/releases)
- [Changelog](https://github.com/digitalocean/godo/blob/main/CHANGELOG.md)
- [Commits](https://github.com/digitalocean/godo/compare/v1.141.0...v1.142.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-17 15:17:06 +00:00
github-actions[bot]
2f3df0ec4c
Merge pull request #16374 from prometheus/dependabot/go_modules/github.com/docker/docker-28.0.4incompatible
chore(deps): bump github.com/docker/docker from 28.0.2+incompatible to 28.0.4+incompatible
2025-04-17 17:13:19 +02:00
github-actions[bot]
4268dbb932
Merge pull request #16381 from prometheus/dependabot/go_modules/github.com/scaleway/scaleway-sdk-go-1.0.0-beta.33
chore(deps): bump github.com/scaleway/scaleway-sdk-go from 1.0.0-beta.32 to 1.0.0-beta.33
2025-04-17 17:12:19 +02:00
github-actions[bot]
22cc5dbf5f
Merge pull request #16377 from prometheus/dependabot/go_modules/github.com/ionos-cloud/sdk-go/v6-6.3.3
chore(deps): bump github.com/ionos-cloud/sdk-go/v6 from 6.3.2 to 6.3.3
2025-04-17 17:12:02 +02:00
github-actions[bot]
fd65f8bddc
Merge pull request #16375 from prometheus/dependabot/go_modules/google.golang.org/protobuf-1.36.6
chore(deps): bump google.golang.org/protobuf from 1.36.5 to 1.36.6
2025-04-17 17:11:40 +02:00
machine424
37000f6f3d chore: sync golang versions
use 1.24 as intended in https://github.com/prometheus/prometheus/pull/16180

Signed-off-by: machine424 <ayoubmrini424@gmail.com>
2025-04-17 15:40:13 +02:00
dependabot[bot]
84fb53f58b
chore(deps): bump google.golang.org/protobuf from 1.36.5 to 1.36.6
Bumps google.golang.org/protobuf from 1.36.5 to 1.36.6.

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-17 12:59:22 +00:00
dependabot[bot]
b3f2fe9d3c
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.32 to 1.0.0-beta.33.
- [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.32...v1.0.0-beta.33)

---
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-04-17 12:55:55 +00:00
dependabot[bot]
4d370e14db
chore(deps): bump github.com/ionos-cloud/sdk-go/v6 from 6.3.2 to 6.3.3
Bumps [github.com/ionos-cloud/sdk-go/v6](https://github.com/ionos-cloud/sdk-go) from 6.3.2 to 6.3.3.
- [Release notes](https://github.com/ionos-cloud/sdk-go/releases)
- [Changelog](https://github.com/ionos-cloud/sdk-go/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/ionos-cloud/sdk-go/compare/v6.3.2...v6.3.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-17 12:51:18 +00:00
github-actions[bot]
1c144471e7
Merge pull request #16382 from prometheus/dependabot/go_modules/github.com/hetznercloud/hcloud-go/v2-2.21.0
chore(deps): bump github.com/hetznercloud/hcloud-go/v2 from 2.20.1 to 2.21.0
2025-04-17 14:49:48 +02:00
Bryan Boreham
a11772234d
Merge pull request #16333 from colega/fix-series-create-gc-race
fix: race condition between series creation and garbage collection
2025-04-17 12:15:11 +01:00
Jan-Otto Kröpke
b4f869e519
Update go.mod
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
2025-04-17 13:08:06 +02:00
dependabot[bot]
561c745834
chore(deps): bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 28.0.2+incompatible to 28.0.4+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v28.0.2...v28.0.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-17 11:07:29 +00:00
machine424
a825d448da feat(tsdb/(head|agent)): dereference the pools at the end of the WL replay to
not wait for an extra GC cycle until the built-in cleanup mechanism
kicks in

See https://github.com/prometheus/prometheus/pull/15778

Signed-off-by: machine424 <ayoubmrini424@gmail.com>
2025-04-17 13:06:08 +02:00
github-actions[bot]
c113475121
Merge pull request #16383 from prometheus/dependabot/go_modules/internal/tools/github.com/bufbuild/buf-1.51.0
chore(deps): bump github.com/bufbuild/buf from 1.50.1 to 1.51.0 in /internal/tools
2025-04-17 13:05:52 +02:00
github-actions[bot]
917a26ce97
Merge pull request #16384 from prometheus/dependabot/github_actions/github/codeql-action-3.28.13
chore(deps): bump github/codeql-action from 3.28.12 to 3.28.13
2025-04-17 13:05:30 +02:00
David Leadbeater
e647f7954f
promtool: Add feature flags for promql features (#16443)
These are supported in the main prometheus binary but the feature flags
weren't supported in promtool.

Fixes #16412.

Signed-off-by: David Leadbeater <dgl@dgl.cx>
2025-04-17 10:29:44 +01:00
machine424
dcb790c9b6 chore(RELEASE.md): add v3.4 release shephard
Signed-off-by: machine424 <ayoubmrini424@gmail.com>
2025-04-17 11:07:10 +02:00
Bryan Boreham
1d4b1d76a5 [TESTS] More efficient label creation in BenchmarkLoadWLs
Use the Builder abstraction instead of going via a map.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2025-04-16 18:02:47 +01:00
Bryan Boreham
848df13d3a [TESTS] Faster WAL Benchmarks by reusing buffer
Less garbage collection.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2025-04-16 17:58:09 +01:00
Ryan Wu
b4d3c06acb
discovery: make endpointSlice discovery more efficient (#16433)
* discovery: a change to a service with the same name but from another namespace won't enqueue the endpointSlice

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

* Update discovery/kubernetes/endpointslice.go

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

* Update endpointslice.go

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-04-16 16:43:30 +02:00