17095 Commits

Author SHA1 Message Date
bwplotka
b52ca810d0 bench
Signed-off-by: bwplotka <bwplotka@gmail.com>
2026-03-06 14:28:45 +00:00
bwplotka
6578562e84 optimization(tsdb/wlog): reuse array for filtering
Signed-off-by: bwplotka <bwplotka@gmail.com>
2026-03-06 14:28:45 +00:00
bwplotka
23201b2f90 optimization(tsdb/wlog): avoid expensive error wraps
Signed-off-by: bwplotka <bwplotka@gmail.com>
2026-03-06 14:28:45 +00:00
bwplotka
87cc6d3bb9 optimization(tsdb/wlog): reuse Ref* buffers across WAL watchers' reads
Signed-off-by: bwplotka <bwplotka@gmail.com>
2026-03-06 14:28:45 +00:00
bwplotka
3f680836cf feat(tsdb/wlog): add prometheus prometheus_wal_watcher_reads_total and prometheus_wal_watcher_notifications_total metrics
Signed-off-by: bwplotka <bwplotka@gmail.com>

fix

Signed-off-by: bwplotka <bwplotka@gmail.com>
2026-03-06 14:28:45 +00:00
bwplotka
502c71b972 mainbench
Signed-off-by: bwplotka <bwplotka@gmail.com>

tmp

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

tmp

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

fix bench

Signed-off-by: bwplotka <bwplotka@gmail.com>
2026-03-06 14:28:45 +00:00
bwplotka
062910e0b8 yolo
Signed-off-by: bwplotka <bwplotka@gmail.com>
2026-03-05 22:49:29 +00:00
bwplotka
9594506888 tests(tsdb/wlog): add watcher tail benchmark
Signed-off-by: bwplotka <bwplotka@gmail.com>

tmp

Signed-off-by: bwplotka <bwplotka@gmail.com>
2026-03-05 10:32:16 +00:00
Bartlomiej Plotka
9dc782bf2c
Merge pull request #18220 from prometheus/extended-test
tests(tsdb/wlog): Tighten watcher tail tests
2026-03-05 11:31:04 +01:00
Bartlomiej Plotka
4e3efec434
Apply suggestions from code review
Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
2026-03-05 09:31:31 +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
bwplotka
3678ff9042 tests(tsdb/wlog): Tighten watcher tail tests
Signed-off-by: bwplotka <bwplotka@gmail.com>
2026-03-03 13:06:16 +00: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