16500 Commits

Author SHA1 Message Date
Minh Nguyen
7ebff91cfd
OTLP Receiver: Only update metadata to WAL when metadata-wal-records feature is enabled (#17472)
OTLP Receiver: Only update metadata to WAL when metadata-wal-records feature is enabled.

---------

Signed-off-by: pipiland2612 <nguyen.t.dang.minh@gmail.com>
2025-11-13 09:53:12 +01:00
Bryan Boreham
f5d1cb48ca
Merge pull request #17519 from bboreham/defer-opname
[PERF] PromQL: Only look up operation name if we need it
2025-11-12 14:20:54 +01:00
Bryan Boreham
37d153e5b5 [PERF] PromQL: Only look up operation name if we need it
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2025-11-12 12:05:25 +00:00
Bryan Boreham
a57aea2915
Improve assertion failure message (#17252)
Signed-off-by: Charles Korn <charles.korn@grafana.com>
Co-authored-by: Charles Korn <charles.korn@grafana.com>
2025-11-12 11:53:32 +01:00
Linas Medžiūnas
f330ccaf2f
[PERF] PromQL: eliminate string-keyed maps in binary vector matching (#17131)
In this PR, we are eliminating expensive string-keyed (by signature) maps that are accessed for every sample processed. During preprocessing in rangeEval, we assign a unique number from 0 to n-1 to each of the n string signature values, and later only use this number as a label set signature.

Signed-off-by: Linas Medžiūnas <linasm@users.noreply.github.com>
Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
2025-11-12 10:43:05 +00:00
Kevin Hellemun
33082be0e2
feat: add histogram metric for notification_latency_seconds (#16637)
This metric can be used to create alerting based on how many
notifications finish or do not finish within a certain amount of time.

Change-Id: afbf3d8ceb3994c7d6220389353cff92
Signed-Off-By: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>
Co-authored-by: Björn Rabenstein <github@rabenste.in>

---------

Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>
Co-authored-by: Björn Rabenstein <github@rabenste.in>
2025-11-11 13:47:37 +01:00
Clark McCauley
9d508a4888
util: add +Inf bucket in MetricFamiliesToWriteRequest when not present (#15864)
* Add +Inf bucket in MetricFamiliesToWriteRequest if not present

Signed-off-by: Clark McCauley <clarkmccauley@gmail.com>
2025-11-11 12:43:04 +01:00
Björn Rabenstein
269a166c18
Merge pull request #17515 from tcp13equals2/update_test_error_comparison
PromQL: Allow for promql tests to consider expected fail message during query preparation
2025-11-11 11:42:59 +01:00
Ben Ye
2e609511bb
Register missing metric prometheus_tsdb_sample_ooo_delta (#17477)
* register missing metric prometheus_tsdb_sample_ooo_delta

Signed-off-by: yeya24 <benye@amazon.com>

* changelog

Signed-off-by: yeya24 <benye@amazon.com>

---------

Signed-off-by: yeya24 <benye@amazon.com>
2025-11-11 11:07:08 +01:00
Andrew Hall
cc23e3760d Allow for promql tests to compare expected fail message during query preparation
Signed-off-by: Andrew Hall <andrew.hall@grafana.com>
2025-11-11 17:03:35 +08:00
Bryan Boreham
c1e0ab11c6 [PERF] TSDB: Speed up intersectPostings.Next
Check if the next position is already a match, in which case we don't
have to call `Seek`.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2025-11-10 17:00:19 +00:00
Bryan Boreham
0e1e7441e4 [PERF] TSDB: ListPostings: check next item before binary search
It is fairly common that the next item is the one we want, and cheap
to check.

We could also start the binary search one position on, but strangely
that slows it down.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2025-11-10 17:00:19 +00:00
Bryan Boreham
be8307db58 [TEST] Refactor BenchmarkIntersect to reduce memory allocations
Extract functions which pre-create all the memory for the benchmark itself.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2025-11-10 17:00:15 +00:00
Bryan Boreham
393ab9e12e [TEST] TSDB: More realistic BenchmarkIntersect
100,000 matchers is not something that could happen while using Prometheus.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2025-11-10 16:58:14 +00:00
Julien
2605fc9984
Merge pull request #17479 from roidelapluie/roidelapluie/fixResetChanges
promql: fix resets/changes to return empty for anchored selectors when samples outside range
2025-11-10 11:43:06 +01:00
Julien
533c2a0784
Merge pull request #17509 from charleskorn/patch-1
docs: fix heading for `limitk` docs
2025-11-10 10:22:20 +01:00
Charles Korn
0fbe5af961
Fix heading for limitk docs
Signed-off-by: Charles Korn <charleskorn@users.noreply.github.com>
2025-11-10 11:55:30 +11:00
Jan Fajerski
49254f45e9
Merge pull request #17351 from bboreham/simplify-precreate
TSDB: Allocate series ID after seriesLifecycleCallback; simplify code.
2025-11-07 14:39:51 +01:00
Jan Fajerski
198d665eac
Merge pull request #17304 from Devansh-ops/docs/sigv4-fips-sts-endpoint
docs: add `use_fips_sts_endpoint` to sigv4 config
2025-11-07 14:38:53 +01:00
Jan Fajerski
fae9323c13
Merge pull request #17113 from machine424/deadl
chore(prombench): re-roder checks on nodes to avoid deadlocks between start and clean and in restart
2025-11-07 14:36:14 +01:00
Jan Fajerski
ef05508ae0
Merge pull request #14519 from mercenarysre/prometheus-agent-documentation
Docs: Prometheus Agent Documentation
2025-11-07 14:33:54 +01:00
Jan Fajerski
d546501462
Merge pull request #17498 from prometheus/dependabot/go_modules/github.com/prometheus/sigv4-0.3.0
chore(deps): bump github.com/prometheus/sigv4 from 0.2.1 to 0.3.0
2025-11-07 14:20:01 +01:00
dependabot[bot]
b60e33ae4a
chore(deps): bump github.com/prometheus/sigv4 from 0.2.1 to 0.3.0
Bumps [github.com/prometheus/sigv4](https://github.com/prometheus/sigv4) from 0.2.1 to 0.3.0.
- [Release notes](https://github.com/prometheus/sigv4/releases)
- [Changelog](https://github.com/prometheus/sigv4/blob/main/RELEASE.md)
- [Commits](https://github.com/prometheus/sigv4/compare/v0.2.1...v0.3.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/sigv4
  dependency-version: 0.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-07 11:12:50 +00:00
Jan Fajerski
3d41840042
Merge pull request #17406 from matt-gp/aws-ecs-service-discovery
feat: Unified AWS Service Discovery
2025-11-07 10:23:05 +01:00
matt-gp
1b52ab9e3b
feat: AWS ECS Service Discovery
Signed-off-by: matt-gp <small_minority@hotmail.com>
2025-11-06 22:48:07 +00:00
Jan Fajerski
a8bdb3bc92
Merge pull request #17491 from jan--f/update-npm-deps-3.8
ui: make update-npm-deps
2025-11-06 21:24:07 +01:00
Jan Fajerski
a2ba619612 ui: make update-npm-deps
Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
2025-11-06 20:06:56 +01:00
Julius Volz
766279791b
Merge pull request #17485 from prometheus/ui/unmount-collapsed-panel-content
UI: Speed up alerts/rules/... pages by not rendering collapsed content
2025-11-06 18:28:35 +01:00
Jan Fajerski
baba9a1013
Merge pull request #17462 from prometheus/dependabot/go_modules/github.com/open-telemetry/opentelemetry-collector-contrib/processor/deltatocumulativeprocessor-0.138.0
chore(deps): bump github.com/open-telemetry/opentelemetry-collector-contrib/processor/deltatocumulativeprocessor from 0.136.0 to 0.138.0
2025-11-06 17:25:14 +01:00
Jan Fajerski
7aff71d142
Merge pull request #17454 from prometheus/dependabot/go_modules/github.com/klauspost/compress-1.18.1
chore(deps): bump github.com/klauspost/compress from 1.18.0 to 1.18.1
2025-11-06 16:48:37 +01:00
Jan Fajerski
68b86c80af
Merge pull request #17459 from prometheus/dependabot/go_modules/github.com/digitalocean/godo-1.167.0
chore(deps): bump github.com/digitalocean/godo from 1.165.1 to 1.167.0
2025-11-06 16:47:53 +01:00
dependabot[bot]
00192be1dd
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.136.0 to 0.138.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.136.0...v0.138.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-06 15:10:41 +00:00
dependabot[bot]
8f2ec96d5d
chore(deps): bump the go-opentelemetry-io group across 1 directory with 4 updates (#17445)
Bumps the go-opentelemetry-io group with 3 updates in the / directory: [go.opentelemetry.io/collector/component](https://github.com/open-telemetry/opentelemetry-collector), [go.opentelemetry.io/collector/consumer](https://github.com/open-telemetry/opentelemetry-collector) and [go.opentelemetry.io/collector/processor](https://github.com/open-telemetry/opentelemetry-collector).


Updates `go.opentelemetry.io/collector/component` from 1.42.0 to 1.44.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-collector/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-collector/blob/main/CHANGELOG-API.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-collector/compare/pdata/v1.42.0...pdata/v1.44.0)

Updates `go.opentelemetry.io/collector/consumer` from 1.42.0 to 1.44.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-collector/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-collector/blob/main/CHANGELOG-API.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-collector/compare/pdata/v1.42.0...pdata/v1.44.0)

Updates `go.opentelemetry.io/collector/pdata` from 1.42.0 to 1.44.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-collector/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-collector/blob/main/CHANGELOG-API.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-collector/compare/pdata/v1.42.0...pdata/v1.44.0)

Updates `go.opentelemetry.io/collector/processor` from 1.42.0 to 1.44.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-collector/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-collector/blob/main/CHANGELOG-API.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-collector/compare/pdata/v1.42.0...pdata/v1.44.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/collector/component
  dependency-version: 1.44.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-opentelemetry-io
- dependency-name: go.opentelemetry.io/collector/consumer
  dependency-version: 1.44.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-opentelemetry-io
- dependency-name: go.opentelemetry.io/collector/pdata
  dependency-version: 1.44.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-opentelemetry-io
- dependency-name: go.opentelemetry.io/collector/processor
  dependency-version: 1.44.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-opentelemetry-io
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-06 12:09:00 -03:00
Julius Volz
12c9b0b9d4
UI: Speed up /alerts for many firing alerts via virtual scrolling (#17486)
We already have infinite scrolling for all the rules within a group, but this
adds a second (nested) level of infinite scrolling for the firing alerts within
a rule.

This should further improve the rendering speed for the /alerts page for
Prometheus setups with many firing alerts and when you expand the individual
rule panels that contain those firing alerts.

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

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-11-06 15:39:42 +01:00
Julius Volz
18fa5a6c07 Move README-PROMETHEUS.md to correct subdir
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-11-06 15:29:46 +01:00
Jan Fajerski
2607d9259d
Merge pull request #17450 from prometheus/dependabot/go_modules/github.com/aws/aws-sdk-go-v2/service/ec2-1.260.0
chore(deps): bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.254.1 to 1.260.0
2025-11-06 13:41:15 +01:00
dependabot[bot]
c0181fb8cc
chore(deps): bump github.com/aws/aws-sdk-go-v2/service/ec2
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.254.1 to 1.260.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.254.1...service/ec2/v1.260.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-version: 1.260.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-06 12:13:46 +00:00
dependabot[bot]
f1ab323c42
chore(deps): bump github.com/klauspost/compress from 1.18.0 to 1.18.1
Bumps [github.com/klauspost/compress](https://github.com/klauspost/compress) from 1.18.0 to 1.18.1.
- [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.18.0...v1.18.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-06 12:09:53 +00:00
dependabot[bot]
62b0a7a015
chore(deps): bump github.com/digitalocean/godo from 1.165.1 to 1.167.0
Bumps [github.com/digitalocean/godo](https://github.com/digitalocean/godo) from 1.165.1 to 1.167.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.165.1...v1.167.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-06 12:02:51 +00:00
Jan Fajerski
9bf13011ca
Merge pull request #17452 from prometheus/dependabot/go_modules/github.com/hetznercloud/hcloud-go/v2-2.29.0
chore(deps): bump github.com/hetznercloud/hcloud-go/v2 from 2.25.1 to 2.29.0
2025-11-06 13:02:29 +01:00
Jan Fajerski
c5184fac40
Merge pull request #17458 from prometheus/dependabot/go_modules/github.com/docker/docker-28.5.1incompatible
chore(deps): bump github.com/docker/docker from 28.4.0+incompatible to 28.5.1+incompatible
2025-11-06 13:01:40 +01:00
Jan Fajerski
e9bfc0baae
Merge pull request #17461 from prometheus/dependabot/go_modules/github.com/aws/aws-sdk-go-v2/service/lightsail-1.50.3
chore(deps): bump github.com/aws/aws-sdk-go-v2/service/lightsail from 1.49.1 to 1.50.3
2025-11-06 13:01:00 +01:00
dependabot[bot]
ee72d7d970
chore(deps): bump github.com/aws/aws-sdk-go-v2/service/lightsail
Bumps [github.com/aws/aws-sdk-go-v2/service/lightsail](https://github.com/aws/aws-sdk-go-v2) from 1.49.1 to 1.50.3.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ssm/v1.49.1...service/s3/v1.50.3)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/lightsail
  dependency-version: 1.50.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-06 10:39:37 +00:00
dependabot[bot]
2ca70984ab
chore(deps): bump github.com/hetznercloud/hcloud-go/v2
Bumps [github.com/hetznercloud/hcloud-go/v2](https://github.com/hetznercloud/hcloud-go) from 2.25.1 to 2.29.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.25.1...v2.29.0)

---
updated-dependencies:
- dependency-name: github.com/hetznercloud/hcloud-go/v2
  dependency-version: 2.29.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-06 10:37:31 +00:00
Julius Volz
2b25bbf997 UI: Speed up alerts/rules/... pages by not rendering collapsed content
In contrast to Bootstrap, Mantine's Accordion component didn't remove its
panel contents from the DOM when collapsed, so rendering pages with lots of
collapsed Accordion items was way slower and more resource-intensive in the
new Mantine UI. While I talked to Vitaly from Mantine and he managed to add
unmounting of collapsed panel contents in Mantine 9, this will only be
available next year. So for now, I'm forking over the Accordion component
from Mantine and adding a hacky modification to it that removes contents
for collapsed panels. This fork can be removed after upgrading to Mantine 9
sometime in 2026. I removed all the unnecessary test files and so on and
just kept the core Accordion code files.

This should really help with the following issues:

https://github.com/prometheus/prometheus/issues/17254
https://github.com/prometheus/prometheus/issues/16830

The /alerts and /rules pages should be the most affected since the panels
on those are collapsed by default. The /targets and /service-discovery
pages have expanded panels by default, but I still swapped out the
Accordion implementation for consistency and in case someone collapses a
bunch of panels.

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-11-06 11:32:59 +01:00
Jan Fajerski
b58d868bc4
Merge pull request #17442 from prometheus/dependabot/github_actions/github/codeql-action-4.31.2
chore(deps): bump github/codeql-action from 3.30.5 to 4.31.2
2025-11-06 11:32:26 +01:00
Jan Fajerski
d12f2fcdf0
Merge pull request #17443 from prometheus/dependabot/github_actions/actions/upload-artifact-5.0.0
chore(deps): bump actions/upload-artifact from 4.6.2 to 5.0.0
2025-11-06 11:31:59 +01:00
dependabot[bot]
06483141e9
chore(deps): bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 28.4.0+incompatible to 28.5.1+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v28.4.0...v28.5.1)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-version: 28.5.1+incompatible
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-06 10:31:42 +00:00
Jan Fajerski
1dca6f0ebf
Merge pull request #17444 from prometheus/dependabot/github_actions/actions/stale-10.1.0
chore(deps): bump actions/stale from 9.1.0 to 10.1.0
2025-11-06 11:31:30 +01:00
Jan Fajerski
e81a02b521
Merge pull request #17447 from prometheus/dependabot/go_modules/github.com/prometheus/exporter-toolkit-0.15.0
chore(deps): bump github.com/prometheus/exporter-toolkit from 0.14.1 to 0.15.0
2025-11-06 11:30:11 +01:00