17277 Commits

Author SHA1 Message Date
Julien
d7cd96cb98
Merge pull request #18429 from roidelapluie/roidelapluie/cut-3.11.0
Release 3.11.0
v3.11.0 v0.311.0
2026-04-02 12:17:59 +02:00
Julien Pivotto
9b12b3d226 Release 3.11.0
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-04-02 11:51:49 +02:00
Julien
608636c179
Merge pull request #18395 from roidelapluie/roidelapluie/cut-3.11.o-rc.0
Release 3.11.0-rc.0
2026-03-30 09:46:39 +02:00
Julien Pivotto
999a67cc04 Release 3.11.0-rc.0
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-03-27 16:08:11 +01:00
Julien
cb3382314d
Merge pull request #18374 from roidelapluie/roidelapluie/retention-percentage-float
tsdb: use float64 for retention percentage
2026-03-27 11:17:55 +01:00
Julien
3f40ca38e6
Merge pull request #18375 from roidelapluie/roidelapluie/fix-alert-state-restore-template-labels
rules: skip template labels when querying ALERTS_FOR_STATE for restore
2026-03-27 11:17:43 +01:00
Julien
5b1d22e2ce
Merge pull request #18376 from prometheus/superq/new_promci
chore: Use make target for protoc
2026-03-26 17:27:06 +01:00
Arve Knudsen
841e4a96b1
promql: add more info() test cases (#18367)
Add test cases for two edge cases in the info() function:
- Enrichment when inner series are missing one identifying label
- Conflicting labels across different info metrics should error

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2026-03-26 17:08:28 +01:00
SuperQ
9587b2ebc0
chore: Use make target for protoc
Migrate the CI scripting of installing protoc to a Makefile target.

Signed-off-by: SuperQ <superq@gmail.com>
2026-03-26 16:35:14 +01:00
Julien Pivotto
e5c77afc71 rules: skip template labels when querying ALERTS_FOR_STATE for restore
QueryForStateSeries built Select matchers from the raw rule labels,
which can contain Go template expressions such as
`instance_{{ $labels.instance }}`. The stored ALERTS_FOR_STATE series
carry the per-instance evaluated values (e.g. `instance_0`), so the
unevaluated template string never matched, leaving seriesByLabels empty
and silently skipping restoration for every active alert.

Fix by omitting any label whose value contains `{{` from the matcher
list. Static labels (including `__name__` and `alertname`) are never
templated and continue to scope the query to the correct rule. The
in-memory lookup against evaluated alert labels that follows is
unaffected, so the single-query-per-rule optimisation introduced in
#13980 is fully preserved.

Fixes #16883
Ref #13980
Ref #18364

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-03-26 15:06:01 +01:00
Julien
8fcd0a5d04
Merge pull request #18373 from roidelapluie/roidelapluie/npm-deps-3.11
chore: Update javascript dependencies for 3.11
2026-03-26 14:42:45 +01:00
Julien
d25e802337
Merge pull request #18372 from prometheus/superq/new_promci
chore: Update PromCI
2026-03-26 13:33:02 +01:00
Ayoub Mrini
9baa56474f
Merge pull request #18369 from machine424/cccd
release: automate CHANGELOG.md generation and improve release notes process
2026-03-26 12:58:28 +01:00
Julien Pivotto
3856195bb8 tsdb: use float64 for retention percentage
The retention.percentage config field was typed as uint, which silently
truncated fractional values. Setting percentage: 1.5 in prometheus.yml
resulted in a retention of 1%, with no warning or error.

Remove the redundant MaxPercentage > 100 clamp in main.go; the config
UnmarshalYAML already returns an error for out-of-range values before
this code is reached.

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-03-26 12:39:22 +01:00
machine424
bf730369bd
adjust and simplify
Signed-off-by: machine424 <ayoubmrini424@gmail.com>
2026-03-26 12:28:56 +01:00
Julien Pivotto
08fcc26479 chore: Update javascript dependencies for 3.11
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-03-26 12:14:28 +01:00
Julien
e8e223fccb
Merge pull request #18362 from roidelapluie/roidelapluie/go-dep-3.11
chore: Go dependencies update before 3.11
2026-03-26 12:07:34 +01:00
SuperQ
4a0186dedc
chore: Update PromCI
Migrate to new PromCI actions.
* Use direct repo actions instead of the setup / run pattern.
* Migrate check_proto action to inline.

Signed-off-by: SuperQ <superq@gmail.com>
2026-03-26 11:13:26 +01:00
Julien Pivotto
bcdc7cd80e chore: Go dependencies update before 3.11
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-03-26 10:56:14 +01:00
Pierluigi Lenoci
73902efbd0
discovery/vultr: upgrade govultr from v2 to v3 (#18347)
* discovery/vultr: upgrade govultr from v2 to v3

The govultr/v2 library is no longer actively maintained. Upgrade to
govultr/v3 (v3.28.1) which receives regular updates and security
patches.

The v3 library is API-compatible with v2 for the Instance.List
method used by the Vultr SD, with the only change being an
additional *http.Response return value.

Signed-off-by: Pierluigi Lenoci <pierluigi.lenoci@gmail.com>

* discovery/vultr: check HTTP response status code

Validate that the Vultr API returns a 2xx status code after listing
instances, as the *http.Response from govultr v3 is now available.

Signed-off-by: Pierluigi Lenoci <pierluigi.lenoci@gmail.com>

* discovery/vultr: fix linter error in error string capitalization

Error strings should not be capitalized per Go conventions (ST1005).

Signed-off-by: Pierluigi Lenoci <pierluigi.lenoci@gmail.com>

---------

Signed-off-by: Pierluigi Lenoci <pierluigi.lenoci@gmail.com>
2026-03-26 09:42:25 +01:00
Julius Volz
dd19e08663
Merge pull request #18336 from sakuuj/patch-1
docs: change 'standard variance' to 'variance', fix 'stdvar' description
2026-03-26 08:36:36 +00:00
Pavel Rysnik
69f6ade976 docs: update promql autocomplete
Signed-off-by: Pavel Rysnik <pavelrysnik@gmail.com>
2026-03-26 10:50:09 +03:00
machine424
31f0678cdf
release: automate CHANGELOG.md generation and improve release notes process
Adds `scripts/generate_release_notes.sh` to produce a structured CHANGELOG.md starting point using the Kubernetes release-notes tool. It handles both minor and patch releases.
`RELEASE.md` is updated to reference the script and drop the manual instructions.

Version examples are updated from 2.x to 3.x.

The `check_release_notes` CI workflow is extended to also run on `release-*` branches in order for the script to catch commits added to the release note , and the PR template wording is tightened.

Signed-off-by: machine424 <ayoubmrini424@gmail.com>
2026-03-25 20:20:35 +01:00
Julien
729cde8953
Merge pull request #18366 from roidelapluie/roidelapluie/xorfuzz
chunkenc: Add XOR/XOR2 fuzzing
2026-03-25 17:52:42 +01:00
Julien Pivotto
d23e69322e chunkenc: Add XOR/XOR2 fuzzing
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-03-25 17:05:47 +01:00
George Krajcsovits
1ec24a3295
promqltest: use AppenderV2 in load command (#18359)
* promqltest: use AppenderV2 in load command

Switch the PromQL test framework's load command from storage.Appender
to storage.AppenderV2 in appendSample, appendCustomHistogram and
appendTill. ST is set to 0 (unknown) for now; a follow-up will add
per-sample ST specification in load statements.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Coded with Claude Sonnet 4.6.
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>

* promqltest: fix unchecked Rollback error

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Coded with Claude Sonnet 4.6.
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>

---------

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2026-03-25 11:09:41 +01:00
Julien
cfcc862182
Merge pull request #18353 from roidelapluie/roidelapluie/xor2app
tsdb/chunkenc: optimise XOR2 and varbit hot paths
2026-03-25 10:57:44 +01:00
Julien Pivotto
7a1a5e285f chunkenc: add extra tests
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-03-25 09:59:12 +01:00
Julien Pivotto
d8607cbd9b tsdb/chunkenc: optimise XOR2 and varbit hot paths
Use writeBitsFast instead of writeBits in putVarbitInt/putVarbitUint,
combining prefix and value into a single call per bucket. Inline the
common fast paths in XOR2 Append to avoid encodeJoint and putVarbitInt
calls for the typical dod=0 and 13-bit dod cases.

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-03-25 09:09:46 +01:00
George Krajcsovits
9670de1c35
Revert "annotations: add warning for ineffective sort in range queries (#16628)" (#18357)
This reverts commit 3f80815e1b0a31c57fcc8dfa1c527d8305d63578.
2026-03-24 16:33:38 +01:00
Bojun Kim
3f80815e1b
annotations: add warning for ineffective sort in range queries (#16628)
* feat(annotations): add warning for ineffective sort in range queries

Signed-off-by: poi1649 <bojun.kim@deliveryhero.com>

* feat(annotations): add Warning for sort_by_label and sort_by_label_desc as well

Signed-off-by: poi1649 <bojun.kim@deliveryhero.com>

* fix formatting

Signed-off-by: poi1649 <bojun.kim@deliveryhero.com>

* Apply suggestion from @poi1649

Signed-off-by: Bojun Kim <bojun.kim@deliveryhero.com>

* Apply suggestion from @poi1649

Signed-off-by: Bojun Kim <bojun.kim@deliveryhero.com>

* Update annotations.go

Signed-off-by: Bojun Kim <bojun.kim@deliveryhero.com>

* Update annotations.go

Signed-off-by: Bojun Kim <bojun.kim@deliveryhero.com>

* Update annotations.go

Signed-off-by: Bojun Kim <bojun.kim@deliveryhero.com>

* adjust formatting

Signed-off-by: poi1649 <bojun.kim@deliveryhero.com>

---------

Signed-off-by: poi1649 <bojun.kim@deliveryhero.com>
Signed-off-by: Bojun Kim <bojun.kim@deliveryhero.com>
2026-03-24 13:00:36 +01:00
Pierluigi Lenoci
afe0547899
promtool: redirect debug output to stderr (#18346)
The debug flag in `promtool test rules` writes diagnostic output
using fmt.Printf to stdout, which can interfere with machine-parseable
output (e.g. JUnit XML via --junit-output) and piped workflows.

Redirect all DEBUG lines to stderr using fmt.Fprintf(os.Stderr, ...),
consistent with the existing error output pattern already present in
the file (line 78).

Signed-off-by: Pierluigi Lenoci <pierluigi.lenoci@gmail.com>
2026-03-24 12:12:54 +01:00
Rushabh Mehta
df61021436
tsdb: Add series_state.json file to wal/ directory to track state (#18303)
* Add series_state.json file creation and updation logic.

Signed-off-by: Rushabh Mehta <mehtarushabh2005@gmail.com>

* Make comments follow the guidelines.

Signed-off-by: Rushabh Mehta <mehtarushabh2005@gmail.com>

* Fix linter complaints

Signed-off-by: Rushabh Mehta <mehtarushabh2005@gmail.com>

* Put PR behind feature flag fast-startup

Signed-off-by: Rushabh Mehta <mehtarushabh2005@gmail.com>

* Marshal updated information to file directly

Signed-off-by: Rushabh Mehta <mehtarushabh2005@gmail.com>

* Fix linter failures

Signed-off-by: Rushabh Mehta <mehtarushabh2005@gmail.com>

* Move series state code from head.go to head_wal.go

Signed-off-by: Rushabh Mehta <mehtarushabh2005@gmail.com>

* Fix nits

Signed-off-by: Rushabh Mehta <mehtarushabh2005@gmail.com>

* Add unit test

Signed-off-by: Rushabh Mehta <mehtarushabh2005@gmail.com>

---------

Signed-off-by: Rushabh Mehta <mehtarushabh2005@gmail.com>
2026-03-23 20:46:04 -07:00
Pavel Rysnik
354c0b262a
docs: change 'standard variance' to 'variance'
Update functions.md file, change 'standard variance' to 'variance' in function descriptions

Signed-off-by: Pavel Rysnik <126406830+sakuuj@users.noreply.github.com>
2026-03-23 18:42:45 +03:00
Bryan Boreham
7df2d13f00
Merge pull request #18282 from bboreham/agents-md
Add AGENTS.md file
2026-03-23 13:41:35 +00:00
Pavel Rysnik
e680e9bf49
docs: clarify 'stdvar' operator description
Updated the description of the stdvar operator to clarify that it calculates variance instead of standard variance.

Signed-off-by: Pavel Rysnik <126406830+sakuuj@users.noreply.github.com>
2026-03-23 11:12:46 +03:00
Bryan Boreham
9bc2d73930 Address review feedback
Remove references to specific PR numbers.
Move "What Maintainers Notice" advice into other sections.
Thanks to @roidelapluie for suggestions.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2026-03-23 08:30:39 +01:00
Bartlomiej Plotka
687b553bce
Merge pull request #18283 from prometheus/krajo/more-trim-tests
test(promql): add more test nh cases for fraction and trim
2026-03-22 23:09:05 +01:00
Pavel Rysnik
da22492abc
docs: fix 'stdvar' detailed explanation
Signed-off-by: Pavel Rysnik <126406830+sakuuj@users.noreply.github.com>
2026-03-22 18:37:19 +03:00
Julien
5b96e611dc
Merge pull request #18325 from roidelapluie/roidelapluie/xor2-with-st
tsdb/chunkenc: port XOR2 performance improvements to ST-aware encoding
2026-03-20 16:09:40 +01:00
Julien Pivotto
3b2b42f681 tsdb/chunkenc: add writeBits benchmarks, clarify comments, and simplify encodeJoint
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-03-20 14:54:48 +01:00
Julien
16876bab95
Merge pull request #18200 from roidelapluie/roidelapluie/retention-validation
Multiple fixes in retention configuration
2026-03-20 12:27:37 +01:00
Bartlomiej Plotka
166d20151c
Merge pull request #18323 from ogulcanaydogan/fix/16634-azure-system-managed-identity
discovery/azure: fix system managed identity when client_id is empty
2026-03-20 09:54:17 +01:00
Bartlomiej Plotka
776a71749a
Merge pull request #18314 from ridwanmsharif/scrape/fix-jitter
scrape: reset ticker to align target scrape times with offset and intervals
2026-03-20 09:52:32 +01:00
Ridwan Sharif
101ae73380 scrape: address comments on PR
Signed-off-by: Ridwan Sharif <ridwanmsharif@google.com>
2026-03-20 05:58:22 +00:00
Bartlomiej Plotka
a7ceef8815
Merge pull request #18326 from roidelapluie/roidelapluie/shepherd
Shepherd for 3.11
2026-03-20 06:46:13 +01:00
Julius Volz
df0504f338
Merge pull request #18328 from rickardsjp/histogram-docs
docs: clarify that histogram_avg/count/sum/stddev/stdvar are native-histogram-only
2026-03-19 16:46:55 +00:00
Julius Volz
c92085eecf
Merge pull request #18318 from linasm/autocomplete-for-ts-of-first-over-time
fix(UI): autocomplete for first_over_time and ts_of_first_over_time
2026-03-19 16:45:01 +00:00
Julien Pivotto
1064c26da2 Log retention changes
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-03-19 17:21:45 +01:00
Julien Pivotto
e865bdd172 tsdb/chunkenc: avoid error allocation in readXOR2ControlFast and add decode tests
Change readXOR2ControlFast to return (uint8, bool) instead of (uint8, error)
to avoid allocating io.EOF on the fast path. Refactor encodeJoint to skip
computing vbits when the value is a stale NaN. Add TestXOR2DecodeFunctionsAcrossPadding
to exercise decodeValue, decodeValueKnownNonZero, and decodeNewLeadingTrailing
across all 64 bit-buffer alignments.

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-03-19 17:00:31 +01:00