Commit graph

17019 commits

Author SHA1 Message Date
dependabot[bot]
d71bbf9f14
chore(deps-dev): bump @eslint/eslintrc from 3.2.0 to 3.3.1 in /web/ui
Bumps [@eslint/eslintrc](https://github.com/eslint/eslintrc) from 3.2.0 to 3.3.1.
- [Release notes](https://github.com/eslint/eslintrc/releases)
- [Changelog](https://github.com/eslint/eslintrc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslintrc/compare/v3.2.0...v3.3.1)

---
updated-dependencies:
- dependency-name: "@eslint/eslintrc"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-22 13:04:26 +00:00
dependabot[bot]
027f7b26a1
chore(deps): bump golangci/golangci-lint-action in /scripts
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6.5.0 to 6.5.2.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](2226d7cb06...55c2c1448f)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-22 13:04:23 +00:00
dependabot[bot]
6d45ea4e5b
chore(deps): bump ossf/scorecard-action from 2.4.0 to 2.4.1
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](62b2cac7ed...f49aabe0b5)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-22 13:04:10 +00:00
dependabot[bot]
43b0eac343
chore(deps): bump actions/cache from 4.2.2 to 4.2.3
Bumps [actions/cache](https://github.com/actions/cache) from 4.2.2 to 4.2.3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](d4323d4df1...5a3ec84eff)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-22 13:04:00 +00:00
Matthieu MOREL
64905156f4
chore: use directories to simplify dependabot config (#16241)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-03-22 14:03:17 +01:00
Matthieu MOREL
6719867196
test(kubernetes): replace equality check with JSON equality assertion (#16246)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-03-22 13:55:30 +01:00
Alexander Weaver
3d603d1957
chore: Export rulefmt.ruleNode (#16252)
* Export rulefmt.ruleNode

Signed-off-by: Alex Weaver <weaver.alex.d@gmail.com>

* Export RuleGroupNode for consistency

Signed-off-by: Alex Weaver <weaver.alex.d@gmail.com>

---------

Signed-off-by: Alex Weaver <weaver.alex.d@gmail.com>
2025-03-20 22:58:32 +00:00
Arve Knudsen
f5f22e7201
Remove golangci-lint exclusions for OTLP code (#16250)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2025-03-20 18:43:22 +01:00
Carrie Edwards
c90b387d89
Optionally translate OTel histograms to NHCB (#15850)
* Optionally translate OTEL histograms to NHCB

Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>

* Add tests for explicit histogram to NHCB translation

Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>

* Linting

Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>

* Add test for translation with flag

Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>

* Refactor to re-use bucket conversion function

Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>

* Update prompb

Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>

* Add comment explaining explicit bounds and use defined CustomBucketSchema

Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>

* Add TODO for limiting max bucket count

Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>

* Fix imports and remove extra blank line

Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>

* Update configuration docs and CHANGELOG

Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>

* Update CHANGELOG

Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>

* Use otlptranslator package

Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>

---------

Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>
2025-03-20 09:18:51 -07:00
Arthur Silva Sens
b39672736a
Migrate otlptranslator package to prometheus/otlptranslator (#16240)
* Migrate otlptranslator package to prometheus/otlp-prometheus-translator

---------

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
2025-03-20 16:13:26 +01:00
Bryan Boreham
eac37157ee
Merge pull request #16242 from pr00se/drop-exemplars-sooner
TSDB: don't process exemplars older than minValidTime during WAL replay
2025-03-20 14:09:00 +00:00
Matthieu MOREL
93e991ef7e
feat(proto): add buf configuration and update dependencies for code generation (#16239)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-03-19 22:19:08 +01:00
Patryk Prus
2f43a5a3ab
TSDB: don't process exemplars older than minValidTime during WAL replay
Signed-off-by: Patryk Prus <p@trykpr.us>
2025-03-19 16:24:08 -04:00
Ganesh Vernekar
bc595263c1
Merge pull request #16231 from pr00se/multiref-improvements
TSDB: Handle metadata/tombstones/exemplars for duplicate series during WAL replay
2025-03-19 16:15:50 -04:00
pudongair
308c8c48c1
chore: fix some comments (#16237)
Signed-off-by: pudongair <744355276@qq.com>
2025-03-19 16:28:34 +01:00
Matthieu MOREL
aea48f912f
chore(deps): bump github.com/grpc-ecosystem/grpc-gateway to v2 (#16236)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-03-19 16:27:25 +01:00
George Krajcsovits
f7af729ef5
Merge pull request #16232 from prometheus/krajo/merge-release-2.53.4
merge release 2.53.4 changelog to main
2025-03-19 08:58:08 +01:00
Ganesh Vernekar
9cc474194d
Merge pull request #16221 from pr00se/flaky-windows-test
chore(discovery): disable additional test as flaky on windows
2025-03-18 14:23:56 -04:00
Patryk Prus
452fd42aeb
Disable additional test as flaky on windows
Signed-off-by: Patryk Prus <p@trykpr.us>
2025-03-18 14:06:33 -04:00
Ganesh Vernekar
2a5ed8b8a5
Merge pull request #16234 from pr00se/remote-read-timeout-test
Fix flaky TestReadClient/timeout test
2025-03-18 13:52:50 -04:00
Ganesh Vernekar
62bf7dbed7
Merge pull request #16224 from pr00se/main-test-data-race
Address data race in main_test.go
2025-03-18 13:49:26 -04:00
Patryk Prus
ebeeb1c823
Fix flaky TestReadClient/timeout test
Signed-off-by: Patryk Prus <p@trykpr.us>
2025-03-18 13:35:40 -04:00
Ziqi Zhao
f6903bcc22
Let HistogramAppender.appendable return CounterResetHeader instead of… (#16195)
Let HistogramAppender.appendable return CounterResetHeader instead of boolean

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
Signed-off-by: Björn Rabenstein <github@rabenste.in>

---------

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
Signed-off-by: Björn Rabenstein <github@rabenste.in>
Co-authored-by: Björn Rabenstein <github@rabenste.in>
2025-03-18 17:40:27 +01:00
Patryk Prus
e4e1b515bc
TSDB: Handle metadata/tombstones/exemplars for duplicate series during WAL replay
Signed-off-by: Patryk Prus <p@trykpr.us>
2025-03-18 12:22:33 -04:00
György Krajcsovits
c6a102547b Merge branch 'release-2.53' into krajo/merge-release-2.53.4
I used current version of the following:
# Conflicts:
#	.github/workflows/ci.yml
#	VERSION
#	config/config_test.go
#	scrape/helpers_test.go
#	scrape/scrape_test.go
#	web/ui/module/codemirror-promql/package.json
#	web/ui/module/lezer-promql/package.json
#	web/ui/package-lock.json
#	web/ui/package.json
#	web/ui/react-app/package.json
2025-03-18 16:59:19 +01:00
Bryan Boreham
d77d2a2d31
Merge pull request #16225 from pr00se/update-changelog
Add CHANGELOG entry
2025-03-18 15:34:43 +00:00
Patryk Prus
d119e4d757
Add missing CHANGELOG entry
Signed-off-by: Patryk Prus <p@trykpr.us>
2025-03-18 11:06:23 -04:00
George Krajcsovits
c8b591988a
Merge pull request #16229 from prometheus/krajo/prep-release-2.53.4
Prepare release 2.53.4
2025-03-18 15:26:06 +01:00
György Krajcsovits
71eab074ce Prepare release 2.53.4
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2025-03-18 14:29:44 +01:00
George Krajcsovits
b65829a225
Merge pull request #16220 from bboreham/backport-16174-2-53
[Release 2.53] [BUGFIX] Scraping: bump cache iteration after error
2025-03-18 14:15:26 +01:00
Julius Volz
7b4f093641
Merge pull request #16211 from mustafain117/ui-bug-fix
Fix rules UI to display correct value for 'keepFiringFor'
2025-03-18 12:43:44 +01:00
Fiona Liao
37c2ebb5fd
Make out-of-order native histograms flag a no-op and always enable (#16207)
* Remove experimental out-of-order native histogram flag

This feature has been available in Prometheus since September 2024,
and has no known issues. Therefore proposing to remove the flag
entirely and always have it on. Note that there are still two
settings that need to be configured (out-of-order time window > 0
and native histograms enabled) for this feature to work.

Signed-off-by: Fiona Liao <fiona.liao@grafana.com>

* Update CHANGELOG

Signed-off-by: Fiona Liao <fiona.liao@grafana.com>

* Keep feature flag with warning

Signed-off-by: Fiona Liao <fiona.liao@grafana.com>

* Update CHANGELOG

Signed-off-by: Fiona Liao <fiona.liao@grafana.com>

* Update tsdb/head_append.go

Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
Signed-off-by: Fiona Liao <fiona.y.liao@gmail.com>

* Update CHANGELOG.md

Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
Signed-off-by: Fiona Liao <fiona.y.liao@gmail.com>

* Update tsdb/head_append.go

Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
Signed-off-by: Fiona Liao <fiona.y.liao@gmail.com>

* Additional cleanup of comments and test names

Signed-off-by: Fiona Liao <fiona.liao@grafana.com>

---------

Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
Signed-off-by: Fiona Liao <fiona.y.liao@gmail.com>
Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
2025-03-18 10:59:02 +00:00
zenador
6a439bdffa
remote read: Use more informative error msg for timeouts (#16157)
* Use more informative error msg for timeouts on remote read

Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
2025-03-18 08:42:28 +01:00
Patryk Prus
c6e4cf03fd
Address data race in main_test.go
Signed-off-by: Patryk Prus <p@trykpr.us>
2025-03-17 17:13:11 -04:00
Bryan Boreham
37a41ccaed
Merge pull request #16166 from pr00se/track-missing-series
TSDB: Track count of unknown series referenced during WAL/WBL replay
2025-03-17 20:12:47 +00:00
Patryk Prus
86eeaf1886
Skip writing series records uniformly across the benchmark, so we skip some OOO series as well
Signed-off-by: Patryk Prus <p@trykpr.us>
2025-03-17 15:17:53 -04:00
Patryk Prus
2147538d1e
Add missing series refs to benchmark
Signed-off-by: Patryk Prus <p@trykpr.us>
2025-03-17 15:17:53 -04:00
Patryk Prus
401dbacf2e
Add counters for unknown series references during WAL/WBL replay
Signed-off-by: Patryk Prus <p@trykpr.us>
2025-03-17 15:17:53 -04:00
Patryk Prus
85fa39032e
TSDB: Track count of unknown series referenced during WAL replay
Signed-off-by: Patryk Prus <p@trykpr.us>
2025-03-17 15:17:48 -04:00
Bryan Boreham
e86b9812f4 [BUGFIX] Scraping: bump cache iteration after error
Backport of #16174 to LTS release-2.53 branch.

We use the cache iteration number to detect when the same metric has
occurred twice in a scrape. We need to bump this number at the end of
every scrape, not just successful scrapes.

The `iter` number is also used:
* After a successful scrape, to delete older metrics and metadata.
* To detect when metadata changed in this scrape.

None of those additional cases is broken by incrementing the number
on error.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2025-03-17 18:09:01 +00:00
Bryan Boreham
63d1e56525 [TESTS] Scrape: make caching work in benchmark
Returning 0 from Append means 'unknown', so the series is never cached.

Return arbitrary numbers instead.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2025-03-17 18:08:03 +00:00
George Krajcsovits
05e48fea3d
Merge pull request #16218 from krajorama/fix-calling-appendexemplar-without-sample
fix(scrape): skip native histogram series if ingestion is disabled
2025-03-17 15:57:55 +01:00
György Krajcsovits
fec2f2603a fix(scrape): skip native histogram series if ingestion is disabled
No need to validate, track, add sample, add exemplar if series isn't
going to be ingested. Basically this is the same as if this series was
dropped by relabelling.

Fixes #16217

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2025-03-17 14:48:09 +01:00
machine424
b0227d1f16 chore(discovery): disable some file update tests as flaky
Signed-off-by: machine424 <ayoubmrini424@gmail.com>
2025-03-14 18:33:13 +01:00
Mustafain Ali Khan
92c9f71082 Fix rules UI to display correct value for 'keepFiringFor'
Signed-off-by: Mustafain Ali Khan <mustalik@amazon.com>
2025-03-13 16:18:24 -07:00
Arthur Silva Sens
95f49dd84b
Bump prometheus/common to v0.63.0 (#16210)
* Bump prometheus/common to v0.63.0

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>

* nolint usage of deprecated model.NameValidationScheme

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>

---------

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
2025-03-13 20:42:42 +01:00
Owen Williams
0bfbd462ac
Merge pull request #16080 from prometheus/owilliams/escapeconfig-00-cleanup
utf8: Remove support for legacy global validation setting
2025-03-13 14:21:09 -04:00
Owen Williams
94b43c5d4c utf8: Remove support for legacy global validation setting
Global and Data Source configurations can specify legacy mode, but Prometheus now requires that the overall validation mode be set to UTF-8

Signed-off-by: Owen Williams <owen.williams@grafana.com>
2025-03-13 10:47:24 -04:00
Charles Korn
c88d0b0e0a
promql: return NaN from irate() if second-last sample is NaN (#16199)
promql: return NaN from `irate()` if either of last two samples is NaN

Signed-off-by: Charles Korn <charles.korn@grafana.com>

---------

Signed-off-by: Charles Korn <charles.korn@grafana.com>
2025-03-13 15:06:17 +01:00
Ayoub Mrini
a4a4ef6a52
Merge pull request #16196 from zhengkezhou1/fix-discovery-test-wsl2
chore: ci: run Discovery tests on Windows
2025-03-12 16:10:53 +01:00