Ayoub Mrini
f5fe1573ba
Merge pull request #18219 from machine424/ttyyy
...
buf.build / lint and publish (push) Waiting to run
CI / Go tests (push) Waiting to run
CI / More Go tests (push) Waiting to run
CI / Go tests with previous Go version (push) Waiting to run
CI / UI tests (push) Waiting to run
CI / Go tests on Windows (push) Waiting to run
CI / Mixins tests (push) Waiting to run
CI / Compliance testing (push) Waiting to run
CI / Build Prometheus for common architectures (push) Waiting to run
CI / Build Prometheus for all architectures (push) Waiting to run
CI / Report status of build Prometheus for all architectures (push) Blocked by required conditions
CI / Check generated parser (push) Waiting to run
CI / golangci-lint (push) Waiting to run
CI / fuzzing (push) Waiting to run
CI / codeql (push) Waiting to run
CI / Publish main branch artifacts (push) Blocked by required conditions
CI / Publish release artefacts (push) Blocked by required conditions
CI / Publish UI on npm Registry (push) Blocked by required conditions
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
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
Bartlomiej Plotka
2311dc3ba2
Merge pull request #18216 from prometheus/owilliams/start-time-sync
...
Merge remote-tracking branch 'origin/main' into feature/start-time
2026-03-03 09:56:59 +01:00
Owen Williams
c4deef472e
Merge remote-tracking branch 'origin/main' into feature/start-time
...
Signed-off-by: Owen Williams <owen.williams@grafana.com>
2026-03-02 14:47:44 -05: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
...
buf.build / lint and publish (push) Waiting to run
CI / Go tests (push) Waiting to run
CI / More Go tests (push) Waiting to run
CI / Go tests with previous Go version (push) Waiting to run
CI / UI tests (push) Waiting to run
CI / Go tests on Windows (push) Waiting to run
CI / Mixins tests (push) Waiting to run
CI / Compliance testing (push) Waiting to run
CI / Build Prometheus for common architectures (push) Waiting to run
CI / Build Prometheus for all architectures (push) Waiting to run
CI / Report status of build Prometheus for all architectures (push) Blocked by required conditions
CI / Check generated parser (push) Waiting to run
CI / golangci-lint (push) Waiting to run
CI / fuzzing (push) Waiting to run
CI / codeql (push) Waiting to run
CI / Publish main branch artifacts (push) Blocked by required conditions
CI / Publish release artefacts (push) Blocked by required conditions
CI / Publish UI on npm Registry (push) Blocked by required conditions
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
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
...
buf.build / lint and publish (push) Waiting to run
CI / Go tests (push) Waiting to run
CI / More Go tests (push) Waiting to run
CI / Go tests with previous Go version (push) Waiting to run
CI / UI tests (push) Waiting to run
CI / Go tests on Windows (push) Waiting to run
CI / Mixins tests (push) Waiting to run
CI / Compliance testing (push) Waiting to run
CI / Build Prometheus for common architectures (push) Waiting to run
CI / Build Prometheus for all architectures (push) Waiting to run
CI / Report status of build Prometheus for all architectures (push) Blocked by required conditions
CI / Check generated parser (push) Waiting to run
CI / golangci-lint (push) Waiting to run
CI / fuzzing (push) Waiting to run
CI / codeql (push) Waiting to run
CI / Publish main branch artifacts (push) Blocked by required conditions
CI / Publish release artefacts (push) Blocked by required conditions
CI / Publish UI on npm Registry (push) Blocked by required conditions
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
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
Arve Knudsen
1d3e77cd6d
Move aknuds1 to general maintainer
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2026-03-02 09:34:14 +01:00
Bartlomiej Plotka
3b1d65816f
Merge pull request #18202 from prometheus/bwplotka-maintainer
...
buf.build / lint and publish (push) Has been cancelled
CI / Go tests (push) Has been cancelled
CI / More Go tests (push) Has been cancelled
CI / Go tests with previous Go version (push) Has been cancelled
CI / UI tests (push) Has been cancelled
CI / Go tests on Windows (push) Has been cancelled
CI / Mixins tests (push) Has been cancelled
CI / Compliance testing (push) Has been cancelled
CI / Build Prometheus for common architectures (push) Has been cancelled
CI / Build Prometheus for all architectures (push) Has been cancelled
CI / Check generated parser (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled
CI / fuzzing (push) Has been cancelled
CI / codeql (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CI / Report status of build Prometheus for all architectures (push) Has been cancelled
CI / Publish main branch artifacts (push) Has been cancelled
CI / Publish release artefacts (push) Has been cancelled
CI / Publish UI on npm Registry (push) Has been cancelled
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
...
buf.build / lint and publish (push) Waiting to run
CI / Go tests (push) Waiting to run
CI / More Go tests (push) Waiting to run
CI / Go tests with previous Go version (push) Waiting to run
CI / UI tests (push) Waiting to run
CI / Go tests on Windows (push) Waiting to run
CI / Mixins tests (push) Waiting to run
CI / Compliance testing (push) Waiting to run
CI / Build Prometheus for common architectures (push) Waiting to run
CI / Build Prometheus for all architectures (push) Waiting to run
CI / Report status of build Prometheus for all architectures (push) Blocked by required conditions
CI / Check generated parser (push) Waiting to run
CI / golangci-lint (push) Waiting to run
CI / fuzzing (push) Waiting to run
CI / codeql (push) Waiting to run
CI / Publish main branch artifacts (push) Blocked by required conditions
CI / Publish release artefacts (push) Blocked by required conditions
CI / Publish UI on npm Registry (push) Blocked by required conditions
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
Add traceID to query logs
2026-02-26 17:06:48 +01:00
Julien Pivotto
8edc676cbe
config: inject TSDBConfig defaults in Load for empty config bodies
...
When the config body is empty, UnmarshalYAML is never called, so the
TSDBConfig nil injection added there never ran. Replicate the same guard
in Load, which is the entry point that already handles this case for
other defaults via DefaultConfig.
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-02-26 16:59:21 +01:00
Julien Pivotto
3675a5e56c
tsdb: fix unit mismatch in retention duration on config reload
...
conf.StorageConfig.TSDBConfig.Retention.Time is model.Duration which is
type-aliased to time.Duration (nanoseconds), but RetentionDuration is int64
in milliseconds. The missing division by time.Millisecond caused the metric
prometheus_tsdb_retention_limit_seconds to be reported 1e6 times too large
after a config reload.
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-02-26 16:44:49 +01:00
Julien Pivotto
bf3c217bbd
config: apply retention CLI flags as defaults and update UI on reload
...
Introduce DefaultTSDBRetentionConfig, populated from CLI flags before any
config file is loaded, so that retention falls back to CLI flags when the
config file has no storage.tsdb section. Config.UnmarshalYAML always injects
a non-nil TSDBConfig with those defaults, removing the need for nil checks in
main.go. ApplyConfig in web.go now propagates retention settings on each
config reload so the runtime info endpoint stays up to date.
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-02-26 16:36:05 +01:00
Julien Pivotto
dcfa1b96c6
config: validate TSDB retention settings during config parsing
...
Move retention validation from tsdb/db.go into a TSDBRetentionConfig
UnmarshalYAML method so that invalid values are rejected at config
load/reload time rather than at apply time.
- Reject negative retention size values.
- Reject retention percentage values above 100.
- Simplify ApplyConfig to assign retention values unconditionally,
enabling setting a value back to 0 to disable it.
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-02-26 15:16:09 +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
Bartlomiej Plotka
e52025a189
Merge pull request #18122 from prometheus/bwplotka/rw2st
...
feat: RW2 sending ST support
2026-02-26 09:49:27 +00: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
Kyle Eckhart
dca993ed3c
Missing period and left over refactor
...
Signed-off-by: Kyle Eckhart <kgeckhart@users.noreply.github.com>
2026-02-25 16:52:37 -05:00
Kyle Eckhart
9c6b468ae3
Use Set in GetOrSet to enforce proper lock ordering
...
Signed-off-by: Kyle Eckhart <kgeckhart@users.noreply.github.com>
2026-02-25 16:52:07 -05:00
bwplotka
0ad8516ce0
fixed tests after rebase
...
Signed-off-by: bwplotka <bwplotka@gmail.com>
2026-02-25 19:15:22 +00:00
bwplotka
f27ca31bed
tests: add bench CLI recommended invokations
...
Signed-off-by: bwplotka <bwplotka@gmail.com>
2026-02-25 19:05:49 +00:00
bwplotka
c2eac549d5
tests: test ST in a cheapest way possible
...
Signed-off-by: bwplotka <bwplotka@gmail.com>
2026-02-25 19:05:49 +00:00
bwplotka
ba1b87f51f
feat: RW2 sending ST support
...
Signed-off-by: bwplotka <bwplotka@gmail.com>
tmp
Signed-off-by: bwplotka <bwplotka@gmail.com>
2026-02-25 19:01:45 +00:00
Bartlomiej Plotka
dfd6647002
Merge pull request #18195 from prometheus/st-main-sync2
...
Merge main to `feature/start-time`
2026-02-25 18:56:20 +00:00
Ganesh Vernekar
54e010926b
Cut v3.10.0 final release ( #18184 )
...
CI / Go tests (push) Has been cancelled
CI / More Go tests (push) Has been cancelled
CI / Go tests with previous Go version (push) Has been cancelled
CI / UI tests (push) Has been cancelled
CI / Go tests on Windows (push) Has been cancelled
CI / Mixins tests (push) Has been cancelled
CI / Build Prometheus for common architectures (push) Has been cancelled
CI / Build Prometheus for all architectures (push) Has been cancelled
CI / Check generated parser (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled
CI / fuzzing (push) Has been cancelled
CI / codeql (push) Has been cancelled
CI / Report status of build Prometheus for all architectures (push) Has been cancelled
CI / Publish main branch artifacts (push) Has been cancelled
CI / Publish release artefacts (push) Has been cancelled
CI / Publish UI on npm Registry (push) Has been cancelled
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
2026-02-25 10:54:13 -08:00
bwplotka
8f3a6020d8
Merge branch 'main' into st-main-sync2
2026-02-25 13:54:25 +00:00
Bartlomiej Plotka
b53d7386d0
Merge pull request #17159 from linasm/optimize-join-performance-5
...
buf.build / lint and publish (push) Waiting to run
CI / Go tests (push) Waiting to run
CI / More Go tests (push) Waiting to run
CI / Go tests with previous Go version (push) Waiting to run
CI / UI tests (push) Waiting to run
CI / Go tests on Windows (push) Waiting to run
CI / Mixins tests (push) Waiting to run
CI / Compliance testing (push) Waiting to run
CI / Build Prometheus for common architectures (push) Waiting to run
CI / Build Prometheus for all architectures (push) Waiting to run
CI / Report status of build Prometheus for all architectures (push) Blocked by required conditions
CI / Check generated parser (push) Waiting to run
CI / golangci-lint (push) Waiting to run
CI / fuzzing (push) Waiting to run
CI / codeql (push) Waiting to run
CI / Publish main branch artifacts (push) Blocked by required conditions
CI / Publish release artefacts (push) Blocked by required conditions
CI / Publish UI on npm Registry (push) Blocked by required conditions
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
[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
Kyle Eckhart
33afbb799a
Fix incorrect type from rebase
...
Signed-off-by: Kyle Eckhart <kgeckhart@users.noreply.github.com>
2026-02-25 06:03:53 -05:00
Kyle Eckhart
f4a15255e4
Manually manage db/rw to prevent windows test error
...
Signed-off-by: Kyle Eckhart <kgeckhart@users.noreply.github.com>
2026-02-25 06:03:53 -05:00
Kyle Eckhart
1e60d7fd3b
More comments and only reset deleted if the new segment is larger
...
Signed-off-by: Kyle Eckhart <kgeckhart@users.noreply.github.com>
2026-02-25 06:03:53 -05:00
Kyle Eckhart
8f68b4d409
Drop default initialized value
...
Signed-off-by: Kyle Eckhart <kgeckhart@users.noreply.github.com>
2026-02-25 06:03:53 -05:00
Kyle Eckhart
920ee7f99d
Prevent duplicate SeriesRefs from being lost in db stripeSeries
...
Signed-off-by: Kyle Eckhart <kgeckhart@users.noreply.github.com>
2026-02-25 06:03:53 -05:00
Kyle Eckhart
53f89055c3
Show the agent db can hold duplicate series by hash
...
Signed-off-by: Kyle Eckhart <kgeckhart@users.noreply.github.com>
2026-02-25 06:03:53 -05:00