Commit graph

18082 commits

Author SHA1 Message Date
renovate[bot]
5d81541f73
chore(deps): update react app 2026-07-12 18:11:44 +00:00
George Krajcsovits
942dbf9adc
Merge pull request #19158 from magic-peach/docs-fix-heading-trailing-period
Some checks failed
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 for 32-bit x86 (push) Has been cancelled
CI / List active LTS releases (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 / 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
govulncheck / Run govulncheck (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CI / Go tests for Prometheus upgrades and downgrades (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 / 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
docs: fix trailing period in getting_started heading
2026-07-11 10:34:13 +02:00
George Krajcsovits
74fc553ed3
Merge pull request #19159 from magic-peach/chore-fix-makefile-comment-grammar
chore: fix grammar in Makefile comment
2026-07-11 10:32:53 +02:00
George Krajcsovits
f2848dcc20
Merge pull request #19163 from ptodev/azure
docs: Mention WorkloadIdentity in Azure SD docs
2026-07-11 10:05:32 +02:00
Paulin Todev
8cf0409a13
Mention WorkloadIdentity in Azure SD docs
Signed-off-by: Paulin Todev <paulin.todev@gmail.com>
2026-07-10 15:41:28 +01:00
George Krajcsovits
f282b5c83b
Merge pull request #19140 from pr00se/patryk/wal-replay-full-range-tombstone-fixes
Some checks are pending
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 for 32-bit x86 (push) Waiting to run
CI / List active LTS releases (push) Waiting to run
CI / Go tests for Prometheus upgrades and downgrades (push) Blocked by required conditions
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) Blocked by required conditions
CI / Build Prometheus for all architectures (push) Blocked by required conditions
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
govulncheck / Run govulncheck (push) Waiting to run
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
tsdb: improve handling of full-range tombstones during WAL replay and checkpointing
2026-07-10 15:59:59 +02:00
Julien
1d2e8aa02d
Merge pull request #18852 from roidelapluie/roidelapluie/fix-pos-histogram_quantiles
Some checks are pending
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 for 32-bit x86 (push) Waiting to run
CI / List active LTS releases (push) Waiting to run
CI / Go tests for Prometheus upgrades and downgrades (push) Blocked by required conditions
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) Blocked by required conditions
CI / Build Prometheus for all architectures (push) Blocked by required conditions
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
govulncheck / Run govulncheck (push) Waiting to run
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
promql: fix wrong position range in histogram_quantiles annotation
2026-07-10 14:43:44 +02:00
Julien
61e9df5cb6
Merge pull request #19146 from magic-peach/docs-oauth2-remove-http-headers
docs: remove unsupported http_headers from oauth2 configuration reference
2026-07-10 13:30:54 +02:00
Akanksha Trehun
2fb1024768 chore: fix grammar in Makefile comment
Signed-off-by: Akanksha Trehun <akankshatrehun@gmail.com>
2026-07-10 16:21:30 +05:30
Akanksha Trehun
882edb4d66 docs: fix trailing period in getting_started heading
Signed-off-by: Akanksha Trehun <akankshatrehun@gmail.com>
2026-07-10 16:21:06 +05:30
Patryk Prus
ed715db113
Document keep() stability contract on Checkpoint; assert WAL expiry cleanup in test
Address review comments: the keep-gating of tombstones relies on keep's
answers staying stable for the duration of the Checkpoint call, which the
Head guarantees via chunkSnapshotMtx; and the checkpoint test now verifies
walExpiries entries are retained/cleared around the truncation mint.

Signed-off-by: Patryk Prus <p@trykpr.us>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-09 20:38:46 -04:00
Patryk Prus
60e18ef373
Update tsdb/head.go
Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
Signed-off-by: Patryk Prus <p@trykpr.us>
2026-07-09 19:56:51 -04:00
Akanksha Trehun
e0438ebe24 docs: remove unsupported http_headers from oauth2 configuration reference
The <oauth2> configuration reference lists an http_headers block, but the
OAuth2 type in prometheus/common has no corresponding field (it embeds
ProxyConfig, but not HTTPHeaders, unlike HTTPClientConfig). Because config
is unmarshaled strictly, setting http_headers under an oauth2 block fails
with "field http_headers not found in type config.plain", so the
documentation advertises an option that cannot be used.

Remove the http_headers block from the oauth2 reference. The proxy_*
options above it remain, as OAuth2 does embed ProxyConfig.

Fixes #19103

Signed-off-by: Akanksha Trehun <akankshatrehun@gmail.com>
2026-07-09 21:50:26 +05:30
Bryan Boreham
af77de9a5f
Merge pull request #19143 from prometheus/parse-no-recurse
Some checks are pending
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 for 32-bit x86 (push) Waiting to run
CI / List active LTS releases (push) Waiting to run
CI / Go tests for Prometheus upgrades and downgrades (push) Blocked by required conditions
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) Blocked by required conditions
CI / Build Prometheus for all architectures (push) Blocked by required conditions
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
govulncheck / Run govulncheck (push) Waiting to run
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
perf(parsing): Parse metrics without recursion
2026-07-09 16:47:44 +01:00
Julien
99d9ddf65b
Merge pull request #19145 from roidelapluie/roidelapluie/vertical-merge-float-encoding-2
tsdb: respect configured float chunk encoding in vertical compaction and chunk queries
2026-07-09 17:21:49 +02:00
Julien
159afabcd8
Merge pull request #19135 from roidelapluie/roidelapluie/vertical-merge-float-encoding
Some checks are pending
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 for 32-bit x86 (push) Waiting to run
CI / List active LTS releases (push) Waiting to run
CI / Go tests for Prometheus upgrades and downgrades (push) Blocked by required conditions
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) Blocked by required conditions
CI / Build Prometheus for all architectures (push) Blocked by required conditions
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
govulncheck / Run govulncheck (push) Waiting to run
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
storage: allow selecting the float chunk encoding in seriesToChunkEncoder
2026-07-09 13:54:48 +02:00
Arve Knudsen
b64384ce1f
tsdb: centralize head-chunk list and counter mutation (#19139)
Route every mutation of the headChunks/headChunkCount pair through two
unexported helpers, pushHeadChunk and setHeadChunks, so the invariant
that the counter equals the list length is maintained in one place
instead of at scattered call sites. No behavior change.

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2026-07-09 12:21:53 +02:00
Bryan Boreham
604d4856da
fix(parsing): Parse metrics without recursion
Each line skipped would use more stack space. In normal usage this is
only one or two lines, but bugs or malicious targets could turn this
into a crash.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2026-07-09 11:12:03 +01:00
Arve Knudsen
f92530057d
tsdb: harden head-chunk cache lifecycle (#19136)
Collapse the cache fingerprint into a comparable headChunkCacheKey so
the hit check, populate, and reset are single expressions and future
fingerprint fields cannot be forgotten in the comparison.

Bound the cache buffer: apply the headChunksBufMaxCap policy when
moving to a different series, pre-size replacement collections from
headChunkCount, and release the cache on Close. Route the OOO wrapper's
cache enablement and Close through the headChunkReader methods and
release its fallback collection buffer on Close, and propagate chunk
reader Close errors in the head-and-OOO queriers.

Zero the collection tail inside collectHeadChunks itself instead of at
every call site, and document the contract there.

Test the cache-hit path with a sentinel (a re-collection for the same
series rewrites the same backing array, so pointer identity of the
slice cannot distinguish a hit from a miss), extract a shared test-head
helper, and assert outside the series lock so a failing assertion
cannot deadlock the cleanup's Close.

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2026-07-09 11:33:28 +02:00
Patryk Prus
e4a2bf9418
Format test WAL sample entries one per line
Signed-off-by: Patryk Prus <p@trykpr.us>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Patryk Prus <p@trykpr.us>
2026-07-09 01:46:10 -04:00
Patryk Prus
2151ba1914
tsdb: fix series loss and tombstone retention when WAL replay processes full-range tombstones
A full-range tombstone (a single interval covering (MinInt64, MaxInt64),
written when a series is fully deleted from the head) is mishandled by
WAL replay and checkpointing in three ways, each able to cause unknown
series references and dropped samples on later replays:

1. Replay applies the tombstone by queueing the series deletion onto a
   concurrent worker, but the series stays in the hash index until the
   deletion applies. A later series record with the same labels (the
   series recreated after deletion) is deduplicated onto the condemned
   ref via multiRef, and the queued deletion then tears down the
   recreated series together with its samples. Now the series is
   synchronously removed from the hash index before the deletion is
   queued, so recreations always create a fresh series.

2. Deletions applied during replay set no WAL expiry for the deleted
   ref, so the next checkpoint dropped the series record while later
   segments still held samples for it, and the following replay
   discarded those samples. deleteSeriesByID now records a WAL expiry
   at the series' max sample time.

3. lastSeriesID was only advanced from series records, so the ref of a
   tombstoned series whose record had left the WAL could be reissued to
   a new series, which a stranded tombstone would then delete on the
   next replay. Replay now advances lastSeriesID past every tombstone
   ref. Checkpoints also retained any tombstone with an interval
   reaching past mint - always true for full-range tombstones - even
   after dropping the series record; tombstones are now dropped when
   their ref fails keep(), the same rule used for series records.

Signed-off-by: Patryk Prus <p@trykpr.us>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Patryk Prus <p@trykpr.us>
2026-07-09 00:36:10 -04:00
Arve Knudsen
39359eb784
tsdb: fix stale head-chunk cache after head-chunk truncation (#19134)
Some checks are pending
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 for 32-bit x86 (push) Waiting to run
CI / List active LTS releases (push) Waiting to run
CI / Go tests for Prometheus upgrades and downgrades (push) Blocked by required conditions
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) Blocked by required conditions
CI / Build Prometheus for all architectures (push) Blocked by required conditions
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
govulncheck / Run govulncheck (push) Waiting to run
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
The head-chunk cache fingerprint (series ref, head pointer, mmapped
count) could not detect truncateChunksBefore removing older head
chunks: the head pointer survives and, for a series with no mmapped
chunks, the mmapped count stays 0, while firstChunkID advances. A
cache-enabled reader (range queries through the head-and-OOO reader)
then resolved chunk IDs against the stale slice and returned the wrong
chunk, or failed with ErrNotFound.

Include firstChunkID in the fingerprint; it advances on every
truncation and never regresses.

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2026-07-08 16:11:33 +00:00
Julien Pivotto
86fcf8f2dc
tsdb: respect configured float chunk encoding in vertical compaction and chunk queries
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-07-08 17:39:36 +02:00
Julien Pivotto
383f0d4204
storage: allow selecting the float chunk encoding in seriesToChunkEncoder
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-07-08 17:24:07 +02:00
Anas Khan
fa365c3a62
docs(textparse): fix OpenMetricsParser.StartTimestamp comment sentinel (#19129)
Some checks are pending
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 for 32-bit x86 (push) Waiting to run
CI / List active LTS releases (push) Waiting to run
CI / Go tests for Prometheus upgrades and downgrades (push) Blocked by required conditions
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) Blocked by required conditions
CI / Build Prometheus for all architectures (push) Blocked by required conditions
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
govulncheck / Run govulncheck (push) Waiting to run
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
The doc comment stated the method returns the start timestamp "if exists
or nil", but StartTimestamp returns int64, which can never be nil. When the
start timestamp is unknown the method returns the sentinel 0, matching the
Parser.StartTimestamp interface contract and the sibling Protobuf and Prom
parser doc comments. Correct the wording to say 0 instead of nil.

Signed-off-by: Anas Khan <83116240+anxkhn@users.noreply.github.com>
2026-07-08 14:24:11 +02:00
renovate[bot]
1d56153b8e
Upgrade consul/api to v1.33.7 (#19122)
Upgrade consul/api to v1.33.7, as well as serf to v0.10.4, to get rid of
vulnerable mapstructure dependency.

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2026-07-08 11:49:00 +02:00
Ayoub Mrini
ead71bac5d
chore(tsdb): simplify cutSegmentFile by removing temp file indirection (#19020)
This will allow the simplification of the directIOWriter.

PR #7573 introduced a .tmp file + rename pattern in cutSegmentFile to
prevent mmap from seeing empty files after a crash. However, without an
fsync on the file itself, a crash could still leave the renamed file
with zero content or sth else. PR #8061 added repairLastChunkFile as the real fix,
extended in PR #11338 to detect zero magic numbers.

The .tmp indirection is redundant, both callers have crash safety:

- Head chunks: repairLastChunkFile removes corrupt last files on
  startup. No intermediary broken file can exist (handleChunkWriteError
  panics, so the corrupt file is always the last one).
- Compaction: files live in a .tmp-for-creation block directory, cleaned
  up entirely on failure or restart.

Remove the pattern for fewer syscalls and a simpler write path.

Signed-off-by: Ayoub Mrini <ayoubmrini424@gmail.com>
2026-07-08 11:38:55 +02:00
Julien
940ee20520
Merge pull request #19119 from prometheus/deps-update/github.com-digitalocean-godo-1.x
fix(deps): update module github.com/digitalocean/godo to v1.198.0
2026-07-08 11:33:51 +02:00
Julien
b8da4964f9
Merge pull request #19113 from prometheus/deps-update/aws-go-dependencies
fix(deps): update aws go dependencies
2026-07-08 11:32:39 +02:00
renovate[bot]
2378738445
fix(deps): update aws go dependencies 2026-07-08 01:18:05 +00:00
Bartlomiej Plotka
6d53e9f5cc
Merge pull request #19090 from roidelapluie/roidelapluie/prompb-chunk-encodings
Some checks are pending
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 for 32-bit x86 (push) Waiting to run
CI / List active LTS releases (push) Waiting to run
CI / Go tests for Prometheus upgrades and downgrades (push) Blocked by required conditions
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) Blocked by required conditions
CI / Build Prometheus for all architectures (push) Blocked by required conditions
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
govulncheck / Run govulncheck (push) Waiting to run
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
prompb: add XOR2 and start-time histogram chunk encodings
2026-07-07 17:40:56 +01:00
George Krajcsovits
feae705f97
Merge pull request #19107 from ogulcanaydogan/fix/rules-metric-cleanup-on-reload
rules: delete remaining rule_group metrics on group removal
2026-07-07 15:43:27 +02:00
Bryan Boreham
ab170f296f
Merge pull request #18291 from colega/fix/tsdb-goroutine-leak-on-open-error
Some checks are pending
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 for 32-bit x86 (push) Waiting to run
CI / List active LTS releases (push) Waiting to run
CI / Go tests for Prometheus upgrades and downgrades (push) Blocked by required conditions
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) Blocked by required conditions
CI / Build Prometheus for all architectures (push) Blocked by required conditions
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
govulncheck / Run govulncheck (push) Waiting to run
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
tsdb: fix goroutine leaks when Open() fails on corrupt data
2026-07-07 12:56:49 +01:00
Bryan Boreham
c8e3c36b19
Merge pull request #18299 from kovan/docs/external-labels-remote-read
docs: document external_labels behavior with remote read
2026-07-07 12:53:31 +01:00
Bryan Boreham
7dd2d84ae3
Merge pull request #18310 from jan--f/doc-fixes
Small doc fixes
2026-07-07 12:47:17 +01:00
George Krajcsovits
7c61a5b099
Merge pull request #19106 from sahitya-chandra/azuread-parallel-token-provider-tests
storage/remote/azuread: run token provider tests in parallel
2026-07-07 13:20:08 +02:00
Bartlomiej Plotka
aa0ee3815c
Merge pull request #19120 from om7057/tsdb/fix-querier-close-errors
tsdb: handle Close() errors in querier cleanup defers
2026-07-07 11:56:11 +01:00
Julien
526a535b00
Merge pull request #19032 from roidelapluie/roidelapluie/oci-clear-stale-compartments
fix(discovery/oci): clear targets of vanished compartments
2026-07-07 11:06:03 +02:00
George Krajcsovits
dc7ab9088d
Merge pull request #19105 from sahitya-chandra/discovery-parallel-tests
discovery: run tests in parallel
2026-07-07 10:39:15 +02:00
George Krajcsovits
ff724fae81
Merge pull request #19104 from anxkhn/patch-4
scrape: fix bucketLimitAppender doc comments
2026-07-07 08:50:34 +02:00
George Krajcsovits
870b8b122c
Merge pull request #19108 from junkerderprovinz/fix/flaky-ooo-compaction-tests
tsdb: fix flaky TestQuerierShouldNotFailIfOOOCompactionOccurs* tests
2026-07-07 08:38:56 +02:00
renovate[bot]
c9a339532f
fix(deps): update module github.com/digitalocean/godo to v1.197.0 2026-07-07 06:32:34 +00:00
om7057
ff748a3a27 tsdb: handle Close() errors in querier cleanup defers
Signed-off-by: om7057 <kulkarniom7057@gmail.com>
2026-07-07 12:00:18 +05:30
George Krajcsovits
3aba7dca59
Merge pull request #19102 from anxkhn/patch-6
discovery/moby: guard nil ContainerSpec for non-container swarm services
2026-07-07 08:28:30 +02:00
junkerderprovinz
59c42d4731 tsdb: fix flaky TestQuerierShouldNotFailIfOOOCompactionOccurs* tests
These tests (and their _AppendV2 variants) waited at most one second for
CompactOOOHead to finish after closing the blocking querier. The
compaction goroutine only re-checks for pending readers in 500ms
intervals (WaitForPendingReadersForOOOChunksAtOrBefore) and still has to
garbage collect chunks and truncate the WBL after it notices the close,
so the one second window sits right at the failure boundary and
regularly times out on slow Windows CI runners.

Widen the wait to a minute (require.Eventually returns as soon as the
condition holds, so fast runners lose nothing) and move the require
calls out of the compaction goroutine: require must not be called from
non-test goroutines, and its late FailNow there produced the confusing
secondary "compact ooo head: populate block: context canceled" failures
when the DB was closed during cleanup after the timeout.

Part of #17941

Signed-off-by: junkerderprovinz <jdp@braethoria.com>
2026-07-07 00:58:43 +02:00
Ogulcan Aydogan
d2ecf51d34
rules: delete remaining rule_group metrics on group removal
When a rule group is removed or renamed on reload, Manager.Update deletes
the rule_group-labeled series for most group metrics but missed
GroupLastRuleDurationSum and GroupLastRestoreDuration, which carry the
same rule_group label. Their series leaked on every reload that dropped a
group, growing memory and /metrics cardinality over time.

Delete both alongside the existing cleanup, and extend TestMetricsUpdate
to cover rule_group_last_rule_duration_sum_seconds so the leak is caught.

Signed-off-by: Ogulcan Aydogan <ogulcanaydogan@gmail.com>
2026-07-06 17:59:19 +01:00
Sahitya Chandra
bb6deccdb8 storage/remote/azuread: run token provider tests in parallel
Convert TestNewTokenProvider from a sequential testify suite method
into a table-driven test where each case uses its own mock credential
and t.Parallel(). The four valid auth cases each sleep 4s waiting for
token refresh; overlapping them cuts package wall-clock time from ~16s
to ~4s.

Refs #15185

Signed-off-by: Sahitya Chandra <sahityajb@gmail.com>
2026-07-06 21:03:51 +05:30
Sahitya Chandra
0d8b52ba5e discovery: run tests in parallel
Each test creates its own Manager and prometheus.Registry, so they share
no mutable state. Mark top-level tests and independent table-driven
subtests with t.Parallel() to cut package wall-clock time.

Refs #15185

Before: ~5.0s (go test ./discovery -count=1 -parallel 1)
After:  ~0.74s (go test ./discovery -count=1)
Signed-off-by: Sahitya Chandra <sahityajb@gmail.com>
2026-07-06 20:56:12 +05:30
Anas Khan
0281a745e5 scrape: fix bucketLimitAppender doc comments
The doc comments on bucketLimitAppender and bucketLimitAppenderV2 were
copied from limitAppender and never updated: they claimed to limit the
number of total appended samples, but both types cap the number of
buckets in native histograms, reducing the histogram resolution or
returning errBucketLimit when the limit is exceeded.

The bucketLimitAppenderV2 comment additionally named the wrong type
(bucketLimitAppender), and the adjacent limitAppenderV2 comment named
limitAppender. Correct the identifiers so each doc comment starts with
the type it documents.

Signed-off-by: Anas Khan <83116240+anxkhn@users.noreply.github.com>
2026-07-06 15:09:29 +05:30
Steffen Baarsgaard
9a6814cdfb
promtool: Add --remote-write.path for overriding push metrics url path (#19086)
Some checks are pending
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 for 32-bit x86 (push) Waiting to run
CI / List active LTS releases (push) Waiting to run
CI / Go tests for Prometheus upgrades and downgrades (push) Blocked by required conditions
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) Blocked by required conditions
CI / Build Prometheus for all architectures (push) Blocked by required conditions
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
govulncheck / Run govulncheck (push) Waiting to run
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
* feat(promtool): Add flag --remote-write.path=/api/v1/write
* docs(promtool): Generate cli docs for new flag

Signed-off-by: Steffen Baarsgaard <steff.bpoulsen@gmail.com>
Co-authored-by: Varsha U N <varshaun58@gmail.com>
2026-07-06 16:31:44 +10:00