Commit Graph

14675 Commits (6c8163e9aa180f87576a955072d43bda9685c519)

Author SHA1 Message Date
Julien c02a66a612
Merge pull request #15348 from prometheus/superq/sigv4
Update sigv4 library
2024-11-12 12:20:29 +01:00
Bryan Boreham 70750acd57
Merge pull request #15386 from roidelapluie/rel255
Fix release date
2024-11-12 11:03:15 +00:00
Julien b93aec077c Fix auto reload when a config file with a syntax error is reverted
When we had a syntax error but restored the old file, we did not
re-trigger the config reload, so the config reload metric was showing
that config reload was unsucessful.

I made magic to handle logs in cmd/prometheus.

For now it is a separate file so we can backport this easily.

I will generalize the helper in another PR.

Signed-off-by: Julien <roidelapluie@o11y.eu>
2024-11-12 11:56:05 +01:00
Julien e9179cb240
Merge pull request #15011 from roidelapluie/fixreload
Fix auto reload when a config file with a syntax error is reverted
2024-11-12 11:55:21 +01:00
Fiona Liao 928e691bc6
Merge branch 'release-3.0' into fix-migration-guide
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
2024-11-12 09:43:42 +00:00
Julien ebc45750ef Fix release date
Closes #15385

Signed-off-by: Julien <roidelapluie@o11y.eu>
2024-11-12 10:34:58 +01:00
Bartlomiej Plotka 14f7a8e6ba
Merge pull request #15375 from jan--f/prep-release-3.0.0-rc.1
Prep release 3.0.0 rc.1
2024-11-11 16:35:49 -07:00
Joshua Hesketh ed2668bbda
Merge branch 'main' into jhesketh/clamp
Signed-off-by: Joshua Hesketh <josh@nitrotech.org>
2024-11-12 10:20:58 +11:00
bwplotka 22eec4a390 Updated CHANGELOG.md
Signed-off-by: bwplotka <bwplotka@gmail.com>
2024-11-11 22:34:49 +00:00
Bartlomiej Plotka 7311ce3c00 Update CHANGELOG.md
Co-authored-by: Ben Kochie <superq@gmail.com>
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
2024-11-11 22:32:26 +00:00
Jan Fajerski 60489308a1 Prepare v3.0.0-rc.1
Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
2024-11-11 22:32:26 +00:00
Jan Fajerski 3067d0bc2f update CHANGELOG and migration guide
Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
2024-11-11 22:32:26 +00:00
Bartlomiej Plotka f4a26f8d83
Merge pull request #15384 from prometheus/otlp-utf8-from-main
3.0 Port: Allow UTF-8 characters in metric and label names as opt-in feature (plus config entry)
2024-11-11 15:19:21 -07:00
bwplotka e08794c53f Added config entry.
Signed-off-by: bwplotka <bwplotka@gmail.com>
2024-11-11 21:44:08 +00:00
Arthur Silva Sens 55e34c8c5f Allow UTF-8 characters in metric and label names as opt-in feature (#15258)
* Allow UTF-8 characters in metric and label names as opt-in feature

---------

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
2024-11-11 21:27:55 +00:00
Bartlomiej Plotka 9df69049a1
Merge pull request #15382 from prometheus/bwplotka-patch-1
Update migration.md for TSDB storage upgrade
2024-11-11 14:09:29 -07:00
Bartlomiej Plotka 99cbdc113c
Update migration.md for TSDB storage upgrade
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
2024-11-11 19:32:48 +00:00
Bryan Boreham 5450e6d368 [BUGFIX] TSDB: Apply fixes from loadWAL to loadWBL
Move a couple of variables inside the scope of a goroutine, to avoid
data races.

Use `zeropool` to reduce garbage and avoid some lint warnings.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2024-11-11 18:41:33 +00:00
Fiona Liao 67764d7cfd Better spacing for flags
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
2024-11-11 18:31:50 +00:00
Fiona Liao b2fd5b7e45 Format PromQL section, replace table
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
2024-11-11 18:31:43 +00:00
Fiona Liao 962a3cd6be Add backticks to fallback_scrape_protocol
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
2024-11-11 18:31:34 +00:00
Fiona Liao ad8138a65d Add newlines before code blocks
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
2024-11-11 18:31:28 +00:00
Ben Kochie 0f0deb77a2
Enable auto-gomemlimit by default (#15372)
Enable the `auto-gomemlimit` feature flag by default.
* Add command line flag `--no-auto-gomemlimit` to disable.

Signed-off-by: SuperQ <superq@gmail.com>
2024-11-11 18:26:38 +01:00
Ben Kochie f701f4e236
Enable auto-gomaxprocs by default (#15376)
Enable the `auto-gomaxprocs` feature flag by default.
* Add command line flag `--no-auto-gomaxprocs` to disable.

Signed-off-by: SuperQ <superq@gmail.com>
2024-11-11 18:24:59 +01:00
Ben Kochie fb69a38e67
Enable auto-gomemlimit by default (#15373)
* Enable auto-gomemlimit by default

Enable the `auto-gomemlimit` feature flag by default.
* Add command line flag `--no-auto-gomemlimit` to disable.

---------

Signed-off-by: SuperQ <superq@gmail.com>
2024-11-11 17:29:33 +01:00
Bryan Boreham de35a40ed5 [REFACTOR] Small improvement to top-level naming
Previously, top-level initialization (including WAL reading) had this at
the top of the stack:

    github.com/oklog/run.(*Group).Run.func1:38

I found this confusing, and thought it had something to do with logging.

Introducing another local function should make this clearer.
Also make the error message user-centric not code-centric.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2024-11-11 10:55:05 +00:00
Ben Ye 140f4aa9ae
feat: Allow customizing TSDB postings decoder (#13567)
* allow customizing TSDB postings decoder

---------

Signed-off-by: Ben Ye <benye@amazon.com>
2024-11-11 07:59:24 +01:00
Ben Ye f9057544cb
Fix AllPostings added twice (#13893)
* handle all postings added twice

---------

Signed-off-by: Ben Ye <benye@amazon.com>
2024-11-10 18:17:21 +01:00
SuperQ bc1bc5c118
Update sigv4 library
Migrate use of prometheus/common/sigv4 to prometheus/sigv4.

Related to: https://github.com/prometheus/common/issues/709

Signed-off-by: SuperQ <superq@gmail.com>
2024-11-08 22:35:44 +01:00
Alex Greenbank d40b671cfe
Merge pull request #15357 from prometheus/alexg/fix-fallback-scrape-release-3.0
scrape: stop erroring on empty scrapes
2024-11-08 18:43:13 +00:00
Bartlomiej Plotka 76432aaf4e
Merge pull request #15220 from prometheus/nhcb-scrape-optimize
perf(nhcb): scrape optimize
2024-11-08 19:02:48 +01:00
Aniket Kaulavkar 650abaccce Parallelize tests in cmd/promtool/
Signed-off-by: Aniket Kaulavkar <aniket.kaulavkar@gmail.com>
2024-11-08 21:54:08 +05:30
Ben Kochie 4a69ce1861
Merge pull request #15363 from prometheus/superq/golangci-lint
Update golangci-lint
2024-11-08 15:56:43 +00:00
SuperQ 5e8de28aec
Update golangci-lint
Update to the latest golangci-lint version.

Signed-off-by: SuperQ <superq@gmail.com>
2024-11-08 15:31:03 +01:00
Ben Kochie 9383f9e430
Merge pull request #15303 from prometheus/dependabot/go_modules/github.com/prometheus/exporter-toolkit-0.13.1
chore(deps): bump github.com/prometheus/exporter-toolkit from 0.13.0 to 0.13.1
2024-11-08 14:09:53 +00:00
Ben Kochie 5f1992b9ef
Merge pull request #15284 from prometheus/dependabot/github_actions/actions/upload-artifact-4.4.3
chore(deps): bump actions/upload-artifact from 4.4.0 to 4.4.3
2024-11-08 14:08:30 +00:00
Ben Kochie 6207b26896
Merge pull request #15305 from prometheus/dependabot/github_actions/scripts/actions/checkout-4.2.2
chore(deps): bump actions/checkout from 4.2.0 to 4.2.2 in /scripts
2024-11-08 14:08:01 +00:00
Julien b8af062578
Merge pull request #15288 from prometheus/dependabot/go_modules/go-opentelemetry-io-f31cf86099
chore(deps): bump the go-opentelemetry-io group with 6 updates
2024-11-08 14:34:06 +01:00
Arthur Silva Sens 03995775a7
Allow UTF-8 characters in metric and label names as opt-in feature (#15258)
* Allow UTF-8 characters in metric and label names as opt-in feature

---------

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
2024-11-08 10:02:48 -03:00
dependabot[bot] 405b088d6d
chore(deps): bump actions/upload-artifact from 4.4.0 to 4.4.3
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.4.0 to 4.4.3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](50769540e7...b4b15b8c7c)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-08 08:50:27 +00:00
Ben Kochie d3074b39c3
Merge pull request #15289 from prometheus/dependabot/github_actions/golangci/golangci-lint-action-6.1.1
chore(deps): bump golangci/golangci-lint-action from 6.1.0 to 6.1.1
2024-11-08 08:49:34 +00:00
Ben Kochie 99759990f6
Merge pull request #15285 from prometheus/dependabot/github_actions/actions/checkout-4.2.2
Signed-off-by: Ben Kochie <superq@gmail.com>
2024-11-08 08:49:09 +00:00
Bryan Boreham 6380229c71 [REFACTOR] Scraping: rename variables for clarity
Instead of shadowing the outer variables, use different names.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2024-11-07 17:29:11 +00:00
Bryan Boreham 3f6a133f26 [Test] Scraping: check reload metrics
Need to extend `newTestScrapeMetrics`` to get at the Registry.
`gatherLabels` function could go upstream to `client_golang`.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2024-11-07 17:29:04 +00:00
🌲 Harry 🌊 John 🏔 f9bc50b247 storage: Implement limit in mergeGenericQuerier
Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>
2024-11-07 09:08:23 -08:00
alexgreenbank e7c0d21a8b add CHANGELOG entry
Signed-off-by: alexgreenbank <alex.greenbank@grafana.com>
2024-11-07 15:43:45 +00:00
alexgreenbank 6b09f094e1 scrape: stop erroring on empty scrapes
Signed-off-by: alexgreenbank <alex.greenbank@grafana.com>
2024-11-07 11:30:03 +00:00
Björn Rabenstein 704071d4c3
Merge pull request #15355 from roidelapluie/update-common-3
Update prometheus/common
2024-11-07 11:28:12 +01:00
Bryan Boreham 1ea35578ca
Merge pull request #15353 from fionaliao/fl/update-docs
docs: formatting and typo fixes to 3.0 migration guide
2024-11-07 09:42:32 +00:00
dependabot[bot] 3aab02c63b
chore(deps): bump github.com/prometheus/exporter-toolkit
Bumps [github.com/prometheus/exporter-toolkit](https://github.com/prometheus/exporter-toolkit) from 0.13.0 to 0.13.1.
- [Release notes](https://github.com/prometheus/exporter-toolkit/releases)
- [Changelog](https://github.com/prometheus/exporter-toolkit/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prometheus/exporter-toolkit/compare/v0.13.0...v0.13.1)

---
updated-dependencies:
- dependency-name: github.com/prometheus/exporter-toolkit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-07 09:08:53 +00:00