George Krajcsovits
16f96dcd45
Merge pull request #17335 from prometheus/krajo/merge-release-307-to-main
...
merge release 307 to main
2025-10-15 15:04:46 +02:00
beorn7
ad7d1aed99
Phase out native histogram feature flag
...
The detailed plan for this is laid out in
https://github.com/prometheus/prometheus/issues/16572 .
This commit adds a global and local scrape config option
`scrape_native_histograms`, which has to be set to true to ingest
native histograms.
To ease the transition, the feature flag is changed to simply set the
default of `scrape_native_histograms` to true.
Further implications:
- The default scrape protocols now depend on the
`scrape_native_histograms` setting.
- Everywhere else, histograms are now "on by default".
Documentation beyond the one for the feature flag and the scrape
config are deliberately left out. See
https://github.com/prometheus/prometheus/pull/17232 for that.
Signed-off-by: beorn7 <beorn@grafana.com>
2025-10-15 14:50:52 +02:00
György Krajcsovits
dffb721529
Merge remote-tracking branch 'origin/release-3.7' into krajo/merge-release-307-to-main
2025-10-15 13:17:49 +02:00
George Krajcsovits
09814effe6
chore(release): prepare for 3.7 release ( #17330 )
...
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
* chore(release): prepare for 3.7 release
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2025-10-15 12:08:05 +02:00
Jan-Otto Kröpke
fd421dc3b1
feat: Add OpenContainers spec labels to Dockerfile ( #16483 )
...
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 / 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
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
2025-10-15 09:34:06 +02:00
beorn7
72960c076d
scrape: "Modernize" test files
...
Applied the analyzer "modernize" to the test files.
$ go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./...
Signed-off-by: beorn7 <beorn@grafana.com>
2025-10-14 19:30:22 +02:00
Will Bollock
e894a22b88
feat: add config label to refresh metrics
...
Adds a `config` label (similar to `prometheus_sd_discovered_targets`) to
refresh metrics to help identify the source of refresh issues or
performance stats. In particular for HTTP SD, it can be common to have
multiple disparate HTTP SD sources that should be identified and not
lumped together. For example if one HTTP SD service has failures, that
should be evident in its own time series seperate from other HTTP SD
sources.
`config` seemed more appropriate than `endpoint` as a general standard
for `prometheus_sd` metrics.
Docs were also updated for HTTP SD to point at the new refresh metrics
rather than the older metrics.
Signed-off-by: Will Bollock <wbollock@linode.com>
2025-10-14 11:36:14 -04:00
Fiona Liao
9a5bccbd4b
refactor: make OTEL temporality check easier to read ( #16692 )
...
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 / 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
* Make OTEL temporality check easier to read
* Add nolint comment
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
2025-10-14 13:29:23 +02:00
Bryan Boreham
88811505c6
Merge pull request #17326 from hxrshxz/test-discovery-xds-parallel
...
test(discovery/xds): speed up tests with t.Parallel()
2025-10-14 12:08:24 +01:00
Bryan Boreham
1e1389bec8
Merge pull request #17327 from prometheus/jkroepke-patch-1
...
Remove jkroepke from azure MAINTAINERS.md
2025-10-14 12:03:17 +01:00
Björn Rabenstein
a18d18e927
Merge pull request #17331 from prometheus/beorn7/promql
...
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 / 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
promql: Check 1st histogram's CRH in sum_over_time
2025-10-14 11:22:18 +02:00
beorn7
e80a3e1b21
promql: Check 1st histogram's CRH in sum_over_time
...
avg_over_time already correctly checked the counter reset hint fo all
histograms, but in sum_over_time, the 1st histogram was missed. In
both cases, the 1st histogram is processed outside the loop.
Signed-off-by: beorn7 <beorn@grafana.com>
2025-10-14 00:56:07 +02:00
beorn7
ff49406cba
promql: Expose bug of not checking 1st histogram for CRH
...
avg_over_time already correctly checked the counter reset hint fo all
histograms, but in sum_over_time, the 1st histogram was missed in the
loop. This commit exposes the bug in a test.
Signed-off-by: beorn7 <beorn@grafana.com>
2025-10-14 00:52:23 +02:00
George Krajcsovits
edbc5cfa06
Merge pull request #17305 from hxrshxz/fix-17224-remove-nhcb-check
...
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 / 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
Remove obsolete check preventing NHCB and CT zero ingestion
2025-10-13 10:50:53 +02:00
Harsh
4d7d8ebcfa
lint fixes
...
Signed-off-by: Harsh <harshmastic@gmail.com>
2025-10-13 13:59:10 +05:30
harsh kumar
a612cd8954
Update scrape/manager_test.go
...
Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
Signed-off-by: harsh kumar <135993950+hxrshxz@users.noreply.github.com>
2025-10-13 12:41:46 +05:30
harsh kumar
5244b0e3f7
Update scrape/manager_test.go
...
Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
Signed-off-by: harsh kumar <135993950+hxrshxz@users.noreply.github.com>
2025-10-13 00:50:58 +05:30
harsh kumar
a1e163a462
Update scrape/manager_test.go
...
Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
Signed-off-by: harsh kumar <135993950+hxrshxz@users.noreply.github.com>
2025-10-13 00:50:42 +05:30
Harsh
a63414b8e8
suggested changes added
...
Signed-off-by: Harsh <harshmastic@gmail.com>
2025-10-12 21:29:18 +05:30
Björn Rabenstein
2c2a4314b9
Merge pull request #17320 from prometheus/beorn7/histogram3
...
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 / 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
model/histogram: Fix checkHistogramCustomBounds to accept -Inf
2025-10-12 16:10:17 +02:00
Jan-Otto Kröpke
4b6635c5cc
Remove azure maintainer from MAINTAINERS.md
...
Removed Jan-Otto Kröpke as maintainer for azure.
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
2025-10-12 12:56:53 +02:00
Harsh
24282f7b44
test(discovery/xds): speed up tests with t.Parallel()
...
Signed-off-by: Harsh <harshmastic@gmail.com>
2025-10-12 15:27:33 +05:30
Harsh
3a7a8d7547
promql: Enhance TestNHCBAndCTZeroIngestion to validate exemplar parsing with created timestamps
...
Signed-off-by: Harsh <harshmastic@gmail.com>
2025-10-11 17:27:47 +05:30
harsh kumar
2b2cbec8cd
Merge branch 'prometheus:main' into fix-17224-remove-nhcb-check
2025-10-11 17:13:22 +05:30
beorn7
6a8cacdf6f
model/histogram: Fix checkHistogramCustomBounds to accept -Inf
...
Signed-off-by: beorn7 <beorn@grafana.com>
2025-10-10 23:10:32 +02:00
Naman-B-Parlecha
1df1f53ea0
fix: Added Unroll support to Sparse NHCBs
...
Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
2025-10-10 19:12:30 +05:30
NamanParlecha
167cb350f1
Merge branch 'prometheus:main' into NamanParlecha/NHCBtoCH
2025-10-10 18:59:53 +05:30
Bryan Boreham
1c58399160
PromQL: Speed up parsing of variadic functions ( #17316 )
...
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 / 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
* PromQL: Add benchmark case with variadic function
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
* PromQL: Speed up parsing of variadic functions
Defer formatting of an error message until we hit an error.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
---------
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2025-10-10 09:16:33 +01:00
George Krajcsovits
8558b722f2
Merge pull request #17312 from prometheus/beorn7/histogram
...
promql(histograms): Fix counter reset hint handling when aggregating
2025-10-10 07:25:01 +02:00
beorn7
51e0982c91
promql(histograms): Fix counter reset hint handling when aggregating
...
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
Fixes #17308 .
As explained adding the warn-annotation about conflicting counter
reset hints doesn't happen consistently. Furthermore, because of
incremental mean calculation being used so far (which includes
subtraction), avg calculation always created gauge histograms.
The fix is to make Sub behave like Add WRT counter reset handling, and
then set the result of a subtraction to gauge explicitly in actual
PromQL subtraction (rather than using Sub for something else, like
incremental mean calculation). Also, track the presence of a
CounterReset hint and a NotCounterReset hint separately for the
entirety of aggregated histograms and create the warn-annotation based
on that.
As a minor fix, this commit also consistently creates the warn
annotation in aggregation to be about "aggregation" rather than
"subtraction" or "addition", because the latter are just internal
operations within the aggregation, which is not of interest for the
user.
Signed-off-by: beorn7 <beorn@grafana.com>
2025-10-09 19:40:00 +02:00
Sahil Rasaikar
8a3ec78ae8
fix: reorder AlertState constants to start with StateUnknown, reorder String method to match constant order.
...
Signed-off-by: Sahil Rasaikar <sahil.rasaikar@gmail.com>
2025-10-08 22:56:35 +05:30
Ayoub Mrini
9e4d23ddaf
Merge pull request #17306 from AliNazariii/targets-rlock
...
Optimize scrape target by using RLock in read methods
2025-10-08 15:31:21 +02:00
George Krajcsovits
36678c0551
Merge pull request #17274 from prometheus/krajo/prepare-release-3.7
...
prepare release 3.7-rc.0
2025-10-08 12:15:46 +02:00
György Krajcsovits
736ad1f54f
prepare release 3.7
...
Bump versions and changelog.
Co-authored-by: Arthur Silva Sens <arthursens2005@gmail.com>
Co-authored-by: Ayoub Mrini <ayoubmrini424@gmail.com>
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2025-10-08 12:03:27 +02:00
György Krajcsovits
c4b63ab0ae
chore(changelog): fix changelog
...
16737 was in 3.6.
16923 lacked number and a bit underdefined.
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2025-10-08 12:03:25 +02:00
Ali Nazari
f64ee61312
Use rlock in read methods of scrape target
...
Signed-off-by: Ali Nazari <ali4nazari4@gmail.com>
2025-10-08 09:06:09 +03:30
Harsh
febd734137
test: Add TestNHCBAndCTZeroIngestion to verify simultaneous feature usage
...
Signed-off-by: Harsh <harshmastic@gmail.com>
2025-10-08 09:07:24 +05:30
Harsh
c6793e717a
Remove obsolete check
...
Signed-off-by: Harsh <harshmastic@gmail.com>
2025-10-08 08:41:43 +05:30
Devansh Sehgal
abf67c8641
docs: document sigv4.use_fips_sts_endpoint in <http_config>
...
Signed-off-by: Devansh Sehgal <devanshsehgal02@gmail.com>
2025-10-08 01:31:44 +05:30
Björn Rabenstein
1caac94026
Merge pull request #17302 from prometheus/release-3.7
...
Merge release-3.7 back into main.
2025-10-07 18:40:08 +02:00
Björn Rabenstein
dc5108abb5
Merge pull request #17300 from prometheus/beorn7/testing
...
tsdb: Disable more tests on MS Windows
2025-10-07 17:38:56 +02:00
beorn7
e2aed2cd27
tsdb: Disable more tests on MS Windows
...
Signed-off-by: beorn7 <beorn@grafana.com>
2025-10-07 16:34:59 +02:00
Björn Rabenstein
705b8a3f88
Merge pull request #17299 from prometheus/beorn7/histogram
...
Update prometheus/common to 0.67.1
2025-10-07 16:30:32 +02:00
Björn Rabenstein
68e4d4e5eb
Merge pull request #17298 from prometheus/release-3.7
...
Merging back release-3.7 branch into master
2025-10-07 16:23:36 +02:00
beorn7
df068cff5d
Update prometheus/common to 0.67.1
...
This should enable NHCB federation with text format.
Signed-off-by: beorn7 <beorn@grafana.com>
2025-10-07 15:57:54 +02:00
Björn Rabenstein
f2fc492473
Merge pull request #17284 from linasm/custom-bucket-bounds-match-fn
...
NHCB: Separate CustomBucketBoundsMatch from FloatBucketsMatch
2025-10-07 15:38:59 +02:00
Björn Rabenstein
3c9605263e
Merge pull request #17296 from prometheus/beorn7/histogram
...
tsdb: Do not track stFloat in typesInBatch explicitly
2025-10-07 15:24:57 +02:00
Björn Rabenstein
cf0ba36db0
Merge pull request #17295 from prometheus/beorn7/cleanup
...
tsdb: Remove leftover debug fmt.Println
2025-10-07 15:22:53 +02:00
beorn7
51c8e55835
tsdb: Do not track stFloat in typesInBatch explicitly
...
Signed-off-by: beorn7 <beorn@grafana.com>
2025-10-07 15:01:22 +02:00
beorn7
5f582a7e1f
tsdb: Remove leftover debug fmt.Println
...
Signed-off-by: beorn7 <beorn@grafana.com>
2025-10-07 14:58:25 +02:00