17085 Commits

Author SHA1 Message Date
bwplotka
9391ba0768 refactor: rename testwal to testwlog
For consistency with tsdb/wlog

Signed-off-by: bwplotka <bwplotka@gmail.com>
2026-03-05 09:10:00 +00:00
Bartlomiej Plotka
d448f3f970
Merge pull request #18218 from prometheus/utilrecord
tests(util/testwal): Move WAL record generation to separate package for reuse
2026-03-05 10:07:57 +01:00
Julius Volz
53f8072553
Merge pull request #18230 from prometheus/fix/uplot-stacked-series-hover-perf
UI: Skip recomputing stacked chart data on hover
2026-03-05 08:38:43 +00:00
Julius Volz
2df86b24ad UI: Skip restacking on hover in stacked series charts
See https://github.com/leeoniya/uPlot/issues/988

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2026-03-04 21:53:11 +01:00
Julius Volz
ac12e30f99
Merge pull request #18227 from prometheus/fix-name-md-formatting
Docs: Fix Markdown formatting for `__name__` label mention
2026-03-04 18:59:16 +00:00
Julius Volz
c023dec14b Docs: Fix Markdown formatting for __name__ label mention
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2026-03-04 14:22:14 +01:00
Matt
5a02b92c0e
AWS SD: RDS Role (#18206) 2026-03-04 12:17:38 +01:00
Frederic Branczyk
b9ce7f3be0
Merge pull request #18192 from rexagod/17193
discovery/k8s: Dedup EPS for `*DualStack` policies
2026-03-04 11:46:44 +01:00
Frederic Branczyk
44699107d2
Merge pull request #17774 from rexagod/16747
discovery/kubernetes: Support linked pod controllers
2026-03-04 11:07:14 +01:00
Julius Volz
6a9866e689
Merge pull request #18223 from jan--f/ui-build-switch
build: add option to choose which UI to build
2026-03-04 09:33:58 +00:00
Jan Fajerski
b7435e675c build: add option to build with only the mantine UI
This adds the `--mantine-ui` switch to `web/ui/build_ui.sh` which
allows to build without the old react UI. If built with only the mantine
ui and started with `--enable-features=old-ui` the user will get a 404
response on th web port.

Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
2026-03-04 08:55:37 +01:00
Matthieu MOREL
45b9329e68
chore: fix emptyStringTest issues from gocritic (#18226)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2026-03-04 08:24:50 +01:00
Ayoub Mrini
5c1af24733
Merge pull request #17356 from machine424/gg
chore(test): make failures in TestRemoteWrite_PerQueueMetricsAfterRelabeling more explicit/rich to help with debugging the test when it flakes for GOARCH=386
2026-03-03 20:25:13 +01:00
Kyle Eckhart
897ba10d11
remote write: fix sent_batch_duration_seconds measuring before the request is sent (#18214)
* remote write: fix sent_batch_duration_seconds measuring before the request was sent

Signed-off-by: Kyle Eckhart <kgeckhart@users.noreply.github.com>
2026-03-03 10:57:55 -08:00
Pranshu Srivastava
9d2ed113c8
fixup! fixup! fixup! discovery/kubernetes: Support linked pod controllers
Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
2026-03-03 18:34:03 +05:30
Pranshu Srivastava
ebacf4a084
fixup! fixup! discovery/kubernetes: Support linked pod controllers
Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
2026-03-03 18:30:52 +05:30
Pranshu Srivastava
f21785f5a9
fixup! discovery/kubernetes: Support linked pod controllers
Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
2026-03-03 18:30:52 +05:30
Pranshu Srivastava
228b94f6eb
discovery/kubernetes: Support linked pod controllers
Extended Kubernetes SD to support the following pod-based labels:
* `__meta_kubernetes_pod_deployment_name`
* `__meta_kubernetes_pod_cronjob_name`
* `__meta_kubernetes_pod_job_name`

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
2026-03-03 18:30:48 +05:30
Ayoub Mrini
f5fe1573ba
Merge pull request #18219 from machine424/ttyyy
fix: fail early when --enable-feature=use-uncached-io is unsupported
2026-03-03 13:33:56 +01:00
Pranshu Srivastava
2684af0ca8
fixup! discovery/k8s: Dedup EPS for *DualStack policies
Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
2026-03-03 18:03:37 +05:30
George Krajcsovits
318980a5c2
Merge pull request #17207 from thomas-gouveia/feat/16634/add-support-for-workload-identity-azure-discovery
feat: add support for Azure Workload Identity authentication method for Azure discovery [#16634]
2026-03-03 12:59:58 +01:00
George Krajcsovits
feb741e470
Merge pull request #18215 from mmorel-35/gocritic
chore: fix httpNoBody issues from gocritic
2026-03-03 12:50:19 +01:00
Hank (Yong-Han) Chen
264be9aa74
fix(discovery/file): Fix flaky test on Windows by replacing os.rename with os.WriteFile (#17269)
Signed-off-by: Yong-Han Chen <hank96015@gmail.com>
2026-03-03 12:43:50 +01:00
Julien
e53dc342d0
Merge pull request #18204 from roidelapluie/roidelapluie/bugfssize
util/runtime: cast Blocks to uint64 to fix type mismatch on different architectures
2026-03-03 12:18:05 +01:00
machine424
dfea5ef01a
chore(test): make failures in TestRemoteWrite_PerQueueMetricsAfterRelabeling
more explicit to help with debugging the test when it flakes for GOARCH=386

tried to make it fail in the CI running the following, in vain:

GOARCH=386 go test --timeout 4444444s --count=1000 --run=TestRemoteWrite_PerQueueMetricsAfterRelabeling ./cmd/prometheus/

Signed-off-by: machine424 <ayoubmrini424@gmail.com>
2026-03-03 11:54:40 +01:00
machine424
6b4d8fa91e
fix: fail early when --enable-feature=use-uncached-io is unsupported
Signed-off-by: machine424 <ayoubmrini424@gmail.com>
2026-03-03 11:44:56 +01:00
bwplotka
596830ee72 tests(util/testwal): Move WAL record generation to separate package for reuse
Signed-off-by: bwplotka <bwplotka@gmail.com>

tmp

Signed-off-by: bwplotka <bwplotka@gmail.com>
2026-03-03 10:06:21 +00:00
Matthieu MOREL
026d284c43 chore: fix httpNoBody issues from gocritic
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2026-03-02 20:06:30 +01:00
Frederic Branczyk
1751685dd4
Merge pull request #18194 from rexagod/11726
discovery: Introduce `prometheus_sd_last_update_timestamp_seconds`
2026-03-02 17:00:42 +01:00
Andrew Hall
3bda9a3396
promql: allow timestamp() to be wrapped as a step invariant depending on arguments (#17313)
Some timestamp functions can be safely wrapped as a step invariant.
Then once we do that we never need to check or unwrap at evaluation time.

For instance; `timestamp(metric @ 1)` is step invariant, whereas
`timestamp(abs(metric @ 1))` is not.

Currently all `timestamp` `*parser.Call` are excluded from being
considered step invariant since it is listed in the
`AtModifierUnsafeFunctions` map.

This PR adds an extra check for timestamp functions which consider
the arguments, and if the argument is a simple VectorSelector then
the entire `*parser.Call` can be safely wrapped as a step invariant.

Signed-off-by: Andrew Hall <andrew.hall@grafana.com>
Co-authored-by: Bryan Boreham <bjboreham@gmail.com>
2026-03-02 12:01:14 +00:00
Julien
4ea532b53c
Merge pull request #18203 from roidelapluie/roidelapluie/ftypo
chore(main): Fix typo SuqueryInterval to SubqueryInterval
2026-03-02 10:21:27 +01:00
Frederic Branczyk
bf139a370c
Merge pull request #18006 from rexagod/13525
discovery/kubernetes: Support node role selectors for pod roles
2026-03-02 10:03:26 +01:00
Bartlomiej Plotka
3b1d65816f
Merge pull request #18202 from prometheus/bwplotka-maintainer
Move bwplotka to general maintainer
2026-02-27 15:17:45 +00:00
Julien Pivotto
8b4318ad34 util/runtime: cast Blocks to uint64 to fix type mismatch on different architectures
On some GOOS (e.g. dragonfly), statfs.Blocks is int64, which can
cause a type mismatch when multiplied with Bsize. Cast both operands to
uint64 explicitly.

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-02-27 15:49:17 +01:00
Julien Pivotto
3e5a7c09d0 chore(main): Fix typo SuqueryInterval to SubqueryInterval
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-02-27 12:57:20 +01:00
renovate[bot]
2724d67761
fix(deps): update module github.com/pb33f/libopenapi-validator to v0.13.0 (#18141)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-27 12:17:17 +01:00
bwplotka
8e118dd2b7 Move bwplotka to general maintainer
Signed-off-by: bwplotka <bwplotka@gmail.com>
2026-02-27 08:33:04 +00:00
Julien
02b1abab5e
Merge pull request #18189 from ringerc/log-trace-id
Add traceID to query logs
2026-02-26 17:06:48 +01:00
Julien
905719f7f4
Merge pull request #18196 from prometheus/codesome/merge-3.10
Merge release-3.10 branch to main
2026-02-26 15:00:25 +01:00
Mohammad Varmazyar
5600de6107
Add Consul SD maintainer (#18193)
Following the discussion in #17349, adding myself as maintainer for
Consul service discovery.

Signed-off-by: Mohammad Varmazyar <mrvarmazyar@gmail.com>
2026-02-26 11:42:39 +01:00
Ganesh Vernekar
ccc3062521 Merge branch 'main' into codesome/merge-3.10
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
2026-02-25 17:33:06 -08:00
Craig Ringer
158647fb45 Document traceID / spanID injection in query log
Signed-off-by: Craig Ringer <craig.ringer@enterprisedb.com>
2026-02-26 11:48:15 +13:00
Ganesh Vernekar
54e010926b
Cut v3.10.0 final release (#18184)
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
v0.310.0 v3.10.0
2026-02-25 10:54:13 -08:00
Bartlomiej Plotka
b53d7386d0
Merge pull request #17159 from linasm/optimize-join-performance-5
[PERF] PromQL: replace maps with slices and reuse matching data structures in VectorBinop/And/Or/Unless
2026-02-25 13:50:31 +00:00
Bartlomiej Plotka
333e0dc188
tests: reinforce and optimize queue_manager_test createTimeSeries (#18179)
* tests: fix createTimeSeries so it does not create unnecessary load

16M samples 4k series

Signed-off-by: bwplotka <bwplotka@gmail.com>

* addressed comments

Signed-off-by: bwplotka <bwplotka@gmail.com>

* Apply suggestions from code review

Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>

---------

Signed-off-by: bwplotka <bwplotka@gmail.com>
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
2026-02-25 13:22:13 +00:00
Pranshu Srivastava
c023066ca9
discovery: Introduce prometheus_sd_last_update_timestamp_seconds
The metric tracks the last update sent to SD consumers, and includes the
manager name. This allows for monitoring SD state based on far ago its
last heartbeat was.

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
2026-02-25 18:45:24 +05:30
Pranshu Srivastava
a87b603464
discovery/k8s: Dedup EPS for *DualStack policies
In case of {Prefer,Require}DualStack policies in Services, K8s will
create two `EndpointSlices` resources for each IP family address type
specified. This created duplicate targets.

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
2026-02-25 16:00:19 +05:30
Linas Medžiūnas
c317f9254e
chore(histogram): Move histogram trimming code out of engine.go (#18185)
Signed-off-by: Linas Medziunas <linas.medziunas@gmail.com>
2026-02-25 09:10:42 +01:00
Craig Ringer
d4b00499e8 Add traceID to query logs
The query log embeds a spanID, but omits the traceID, making
log/trace correlation significantly more difficult.

Add the trace ID as well.

This might be better done with the otelslog wrapper in
https://github.com/go-slog/otelslog but this change is more
minimal.

This does not add trace and span IDs to other logging
emitted to Prometheus's standard logger during the processing
of activities in which traces may be active.

Fixes #18188

Signed-off-by: Craig Ringer <craig.ringer@enterprisedb.com>
2026-02-25 12:24:11 +13:00
George Krajcsovits
5d3f9ee39b
Merge pull request #17904 from linasm/trim_histogram
promql: Implement </ and >/ operators for trimming native histograms
2026-02-24 17:16:24 +01:00