Julien Pivotto
b93ce29674
Merge pull request #10927 from prometheus/release-2.36
...
Merge Release 2.36
2 years ago
Xiaonan Shen
0c3abdc26d
Keep relabeled scrape interval and timeout on reloads ( #10916 )
...
* Preserve relabeled scrape interval and timeout on reloads
Signed-off-by: Xiaonan Shen <s@sxn.dev>
2 years ago
Matthieu MOREL
c2b4de3611
refactor (package model): move from github.com/pkg/errors to 'errors' and 'fmt' packages ( #10747 )
...
Signed-off-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
Co-Authored-By: Julien Pivotto <roidelapluie@gmail.com>
Co-authored-by: Julien Pivotto <roidelapluie@gmail.com>
2 years ago
Matthieu MOREL
6375417324
refactor (util): move from github.com/pkg/errors to 'errors' and 'fmt' ( #10877 )
...
Signed-off-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
Co-authored-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
2 years ago
lixin18
735a07444a
Update main_unix_test.go ( #10917 )
...
so->,so
Signed-off-by: lixin18 <68135097+lixin963@users.noreply.github.com>
2 years ago
Augustin Husson
87ffac3e9d
Add readme for lezer-promql and update codemirror-promql readme ( #10875 )
...
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2 years ago
Steve Azzopardi
04fe2c9522
fix(tsdb): inc mmap corruption counter on mmap out of sequence error ( #10406 )
...
What
---
When we see out of sequence chunks increase the chunk corruption counter
to indicate that one of the chunks was corrupted.
Reference: https://github.com/prometheus/prometheus/pull/10406#issuecomment-1142595527
Signed-off-by: Steve Azzopardi <steveazz@outlook.com>
2 years ago
Matthias Loibl
d7e7b8e04b
Merge pull request #10891 from metalmatze/release-2.36.2
...
Add v2.36.2 CHANGELOG and VERSION update
2 years ago
Matthias Loibl
ee9d85bd6c
Add v2.36.2 CHANGELOG and VERSION update
...
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
2 years ago
Julien Pivotto
c511d26dd0
Upgrade Prometheus/common to fix static assets ( #10889 )
...
Properly fix #10697
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2 years ago
Matthias Loibl
17d42f015b
Merge pull request #10888 from roidelapluie/properfix
...
Upgrade Prometheus/common to fix static assets
2 years ago
Julien Pivotto
94e60eddbe
Upgrade Prometheus/common to fix static assets
...
Properly fix #10697
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2 years ago
Julien Pivotto
a0aec2db82
Fix handling of static files ( #10879 )
...
Closes #10697
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2 years ago
Matthias Loibl
9f1a3970b2
Merge pull request #10880 from roidelapluie/mimetrel
...
UI: Fix handling of static files by upgrading common/assets
2 years ago
Julien Pivotto
564cee9116
UI: Fix handling of static files by upgrading common/assets
...
Adds more mime types.
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2 years ago
Matthew
ee11771323
fix: add response closures to web_test.go ( #10675 )
...
* fix: add response closures to web_test.go
Signed-off-by: mtfoley <mtfoley.mae@gmail.com>
2 years ago
Matthieu MOREL
ddfa9a7cc5
refactor (rules): move from github.com/pkg/errors to 'errors' and 'fmt' ( #10855 )
...
* refactor (rules): move from github.com/pkg/errors to 'errors' and 'fmt'
Signed-off-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
2 years ago
Peter Štibraný
03a2313f7a
Reduce chunk write queue memory usage ( #10873 )
...
* dont waste space on the chunkRefMap
* add time factor
* add comments
* better readability
* add instrumentation and more comments
* formatting
* uppercase comments
* Address review feedback. Renamed "free" to "shrink" everywhere, updated comments and threshold to 1000.
* double space
Signed-off-by: Mauro Stettler <mauro.stettler@gmail.com>
Co-authored-by: Peter Štibraný <pstibrany@gmail.com>
Co-authored-by: Mauro Stettler <mauro.stettler@gmail.com>
2 years ago
Bryan Boreham
9f77d23889
tsdb: commit data periodically in CreateBlock ( #10788 )
...
To avoid building up data in memory, commit and make a new appender
periodically.
The number `commitAfter = 10000` was chosen arbitrarily; testing with
10x more or less gives slightly worse results.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2 years ago
Łukasz Mierzwa
d65f037def
Don't increment prometheus_tsdb_compactions_failed_total when context is canceled ( #10772 )
...
When restarting Prometheus I sometimes see:
caller=db.go:832 level=error component=tsdb msg="compaction failed" err="compact head: persist head block: 2 errors: populate block: context canceled; context canceled"
And prometheus_tsdb_compactions_failed_total metric gets incremented.
This makes it more difficult to write alerts based on
prometheus_tsdb_compactions_failed_total metric since any restart can
trigger it.
Signed-off-by: Łukasz Mierzwa <l.mierzwa@gmail.com>
2 years ago
Frederic Branczyk
0d0e44d7e6
Merge pull request #10759 from fpetkovski/endpoints-node-meta
...
kubernetes_sd: Allow attaching node labels for endpoint role
2 years ago
Filip Petkovski
05da373dcb
kubernetes_sd: Allow attaching node labels for endpoint role
...
The Kubernetes service discovery can only add node labels to
targets from the pod role.
This commit extends this functionality to the endpoints and
endpointslices roles.
Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
2 years ago
Matthieu MOREL
80fbe1de96
refactor (package model): move from github.com/pkg/errors to 'errors' and 'fmt' packages ( #10748 )
...
Signed-off-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
2 years ago
David Leadbeater
454714105d
Drop OpenBSD from promu config ( #10867 )
...
Signed-off-by: David Leadbeater <dgl@dgl.cx>
2 years ago
Levi Harrison
59727ab0eb
Make clear that `go install` needs to be run in the cloned repo ( #10866 )
...
* `go install` in cloned repo
Signed-off-by: Levi Harrison <git@leviharrison.dev>
* Removing cloning to gopath
Signed-off-by: Levi Harrison <git@leviharrison.dev>
* Change wording
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2 years ago
Sebastian Poxhofer
3f9a9d1e62
chore(discoveryManager): expose Discoverer refresh function ( #10531 )
...
Signed-off-by: secustor <sebastian@poxhofer.at>
2 years ago
Augustin Husson
5d1756c822
Upgrade codemirror and lezer to the latest version ( #10841 )
...
* bump codemirror to v0.20.x and lezer to v.0.16.x
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
* bump codemirror to v6 and lezer to v1
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
* stop treating warning as error for UI
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2 years ago
Peter Štibraný
5bd761fbfc
Merge pull request #10857 from pstibrany/fix-errors-handling
...
API: Fix errors handling
2 years ago
Augustin Husson
3dad28fcbd
UI: fix build ( #10862 )
...
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2 years ago
Augustin Husson
5184f49a2a
put every packages under the prometheus-io organization ( #10849 )
...
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2 years ago
Paschalis Tsilias
4f3791024a
Drop extra string held in relabel.Regexp struct ( #10846 )
...
* Drop extra string held in relabel.Regexp struct
Signed-off-by: Paschalis Tsilias <paschalist0@gmail.com>
* Use slice operations instead of TrimPrefix/TrimSuffix; Override String() method
Signed-off-by: Paschalis Tsilias <paschalist0@gmail.com>
2 years ago
Julien Pivotto
229e857416
Merge pull request #10795 from prometheus/dependabot/go_modules/k8s.io/client-go-0.24.1
...
build(deps): bump k8s.io/client-go from 0.24.0 to 0.24.1
2 years ago
Augustin Husson
f609b7bbcc
remove GO111MODULE and GOVENDOR usage ( #10836 )
...
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2 years ago
dependabot[bot]
f4ea0709f9
build(deps): bump k8s.io/client-go from 0.24.0 to 0.24.1
...
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go ) from 0.24.0 to 0.24.1.
- [Release notes](https://github.com/kubernetes/client-go/releases )
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/kubernetes/client-go/compare/v0.24.0...v0.24.1 )
---
updated-dependencies:
- dependency-name: k8s.io/client-go
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Julien Pivotto
eb07db104a
Merge pull request #10835 from prometheus/dependabot/go_modules/github.com/stretchr/testify-1.7.2
...
build(deps): bump github.com/stretchr/testify from 1.7.1 to 1.7.2
2 years ago
Augustin Husson
e166cf402a
use npm workspace flag for the build instead of manually navigate through the folders ( #10854 )
...
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2 years ago
Bryan Boreham
542b9ecdbd
tsdb: reduce sleep time when reading WAL ( #10859 )
...
The code sleeps for a short time to allow goroutines to finish, however
it seems the duration can be reduced a lot, speeding up the reading
process.
I checked using some WAL data from production, and the queue is almost
always empty at the time we enter `waitForIdle()` so there is no danger
of spinning in the tight loop.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2 years ago
Julien Pivotto
a84c472745
Merge back `release-2.36` ( #10850 )
...
* Fix UI build (#10842 )
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
* Add --lint-fatal option (#10815 ) (#10840 )
This keeps the previous behaviour of printing details about duplicate
rules but doesn't exit with a fatal exit code unless turned on.
Signed-off-by: David Leadbeater <dgl@dgl.cx>
Co-authored-by: David Leadbeater <dgl@dgl.cx>
* Add v2.36.1 CHANGELOG and VERSION update
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
Co-authored-by: Julien Pivotto <roidelapluie@inuits.eu>
Co-authored-by: David Leadbeater <dgl@dgl.cx>
2 years ago
dependabot[bot]
00982ce4d3
build(deps): bump github.com/stretchr/testify from 1.7.1 to 1.7.2
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.7.1 to 1.7.2.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.7.1...v1.7.2 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Matthias Loibl
3c0a100dec
Merge pull request #10848 from metalmatze/release-2.36.1
...
Add v2.36.1 CHANGELOG and VERSION update
2 years ago
Matthias Loibl
e5b794293f
Add v2.36.1 CHANGELOG and VERSION update
...
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
2 years ago
Julien Pivotto
8ac4e50ec4
Add --lint-fatal option ( #10815 ) ( #10840 )
...
This keeps the previous behaviour of printing details about duplicate
rules but doesn't exit with a fatal exit code unless turned on.
Signed-off-by: David Leadbeater <dgl@dgl.cx>
Co-authored-by: David Leadbeater <dgl@dgl.cx>
2 years ago
Julien Pivotto
f2ba2a0800
Fix UI build ( #10843 )
...
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2 years ago
Julien Pivotto
b8724ca763
Fix UI build ( #10842 )
...
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2 years ago
dependabot[bot]
867d3bd78f
build(deps): bump github.com/go-kit/log ( #10827 )
...
Bumps [github.com/go-kit/log](https://github.com/go-kit/log ) from 0.2.0 to 0.2.1.
- [Release notes](https://github.com/go-kit/log/releases )
- [Commits](https://github.com/go-kit/log/compare/v0.2.0...v0.2.1 )
---
updated-dependencies:
- dependency-name: github.com/go-kit/log
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
c2d6acdcc5
build(deps): bump github.com/vultr/govultr/v2 from 2.17.0 to 2.17.1 ( #10811 )
...
Bumps [github.com/vultr/govultr/v2](https://github.com/vultr/govultr ) from 2.17.0 to 2.17.1.
- [Release notes](https://github.com/vultr/govultr/releases )
- [Changelog](https://github.com/vultr/govultr/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vultr/govultr/compare/v2.17.0...v2.17.1 )
---
updated-dependencies:
- dependency-name: github.com/vultr/govultr/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
7b8ed5d36b
build(deps): bump github.com/prometheus/common ( #10826 )
...
Bumps [github.com/prometheus/common](https://github.com/prometheus/common ) from 0.32.1 to 0.34.0.
- [Release notes](https://github.com/prometheus/common/releases )
- [Commits](https://github.com/prometheus/common/compare/v0.32.1...v0.34.0 )
---
updated-dependencies:
- dependency-name: github.com/prometheus/common
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
c92d571e5d
build(deps): bump github.com/gophercloud/gophercloud ( #10834 )
...
Bumps [github.com/gophercloud/gophercloud](https://github.com/gophercloud/gophercloud ) from 0.24.0 to 0.25.0.
- [Release notes](https://github.com/gophercloud/gophercloud/releases )
- [Changelog](https://github.com/gophercloud/gophercloud/blob/master/CHANGELOG.md )
- [Commits](https://github.com/gophercloud/gophercloud/compare/v0.24.0...v0.25.0 )
---
updated-dependencies:
- dependency-name: github.com/gophercloud/gophercloud
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Julien Pivotto
e4a09f2b4b
uyuni: Use default HTTP client and set relative paths ( #10814 )
...
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2 years ago
dependabot[bot]
eef02a0334
build(deps): bump github.com/prometheus/client_golang ( #10828 )
...
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang ) from 1.12.1 to 1.12.2.
- [Release notes](https://github.com/prometheus/client_golang/releases )
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prometheus/client_golang/compare/v1.12.1...v1.12.2 )
---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago