Ganesh Vernekar
227d155e3f
Fix queries after a failed snapshot replay ( #9980 )
...
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
2021-12-09 15:15:27 +05:30
Matheus Alcantara
c965a7555b
web: use t.TempDir instead of ioutil.TempDir on tests ( #9981 )
...
Signed-off-by: Matheus Alcantara <matheusssilv97@gmail.com>
2021-12-08 23:14:50 +01:00
Ganesh Vernekar
05d4d97bcd
Fix queries after a failed snapshot replay ( #9980 )
...
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
2021-12-08 15:32:14 +00:00
Sebastian Rabenhorst
d8b8678bd1
Log time series details for out-of-order samples in remote write receiver ( #9894 )
...
* Improved out-of-order sample logs in write handler
Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com>
sign commit
Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com>
Inlined logAppendError
Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com>
Update storage/remote/write_handler.go
Co-authored-by: Ganesh Vernekar <15064823+codesome@users.noreply.github.com>
Fixed fmt
Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com>
* Improved out-of-order sample logs in write handler
Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com>
sign commit
Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com>
Inlined logAppendError
Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com>
2021-12-08 15:07:51 +00:00
dependabot[bot]
655e2d2879
build(deps): bump github.com/digitalocean/godo from 1.72.0 to 1.73.0 ( #9963 )
...
Bumps [github.com/digitalocean/godo](https://github.com/digitalocean/godo ) from 1.72.0 to 1.73.0.
- [Release notes](https://github.com/digitalocean/godo/releases )
- [Changelog](https://github.com/digitalocean/godo/blob/main/CHANGELOG.md )
- [Commits](https://github.com/digitalocean/godo/compare/v1.72.0...v1.73.0 )
---
updated-dependencies:
- dependency-name: github.com/digitalocean/godo
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>
2021-12-08 11:16:59 +01:00
Julius Volz
8ec50b9181
Merge pull request #9950 from roidelapluie/cpuyuni
...
Fix Uyuni SD initialization (#9924 )
2021-12-08 08:03:27 +01:00
Julius Volz
755efd38f9
Merge pull request #9969 from prometheus/cut-2-32-rc1
...
Cut v2.32.0-rc.1
2021-12-07 17:28:31 +01:00
Julius Volz
7040ae3db1
Cut v2.32.0-rc.1
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2021-12-07 17:08:14 +01:00
dependabot[bot]
bbbbe5b9df
build(deps-dev): bump @types/node from 16.11.11 to 16.11.12 in /web/ui ( #9957 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 16.11.11 to 16.11.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
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>
2021-12-07 16:19:54 +01:00
dependabot[bot]
f87de1afc7
build(deps): bump golang.org/x/tools from 0.1.7 to 0.1.8 ( #9962 )
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.1.7 to 0.1.8.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.1.7...v0.1.8 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
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>
2021-12-07 15:30:24 +01:00
detailyang
3e482c905f
fix:storage:avoid panic when iterater exhauested ( #9945 )
...
Signed-off-by: detailyang <detailyang@gmail.com>
2021-12-07 19:50:00 +05:30
dependabot[bot]
08a856b1e9
build(deps-dev): bump prettier from 2.5.0 to 2.5.1 in /web/ui ( #9951 )
...
Bumps [prettier](https://github.com/prettier/prettier ) from 2.5.0 to 2.5.1.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.5.0...2.5.1 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
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>
2021-12-07 11:42:34 +01:00
dependabot[bot]
cfa008ee2a
build(deps): bump google.golang.org/api from 0.60.0 to 0.61.0 ( #9959 )
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.60.0 to 0.61.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.60.0...v0.61.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
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>
2021-12-07 11:42:08 +01:00
dependabot[bot]
41f7e99d3c
build(deps): bump @codemirror/language from 0.19.6 to 0.19.7 in /web/ui ( #9953 )
...
Bumps [@codemirror/language](https://github.com/codemirror/language ) from 0.19.6 to 0.19.7.
- [Release notes](https://github.com/codemirror/language/releases )
- [Changelog](https://github.com/codemirror/language/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codemirror/language/compare/0.19.6...0.19.7 )
---
updated-dependencies:
- dependency-name: "@codemirror/language"
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>
2021-12-07 11:41:46 +01:00
dependabot[bot]
f303571248
build(deps): bump github.com/aws/aws-sdk-go from 1.42.16 to 1.42.20 ( #9955 )
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.42.16 to 1.42.20.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.42.16...v1.42.20 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
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>
2021-12-07 10:03:49 +01:00
dependabot[bot]
b42615a4bd
build(deps-dev): bump eslint from 8.3.0 to 8.4.0 in /web/ui ( #9954 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 8.3.0 to 8.4.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v8.3.0...v8.4.0 )
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:development
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>
2021-12-07 10:03:00 +01:00
dependabot[bot]
2185eb4d50
build(deps): bump @codemirror/view from 0.19.24 to 0.19.27 in /web/ui ( #9952 )
...
Bumps [@codemirror/view](https://github.com/codemirror/view ) from 0.19.24 to 0.19.27.
- [Release notes](https://github.com/codemirror/view/releases )
- [Changelog](https://github.com/codemirror/view/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codemirror/view/compare/0.19.24...0.19.27 )
---
updated-dependencies:
- dependency-name: "@codemirror/view"
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>
2021-12-07 10:01:41 +01:00
Julius Volz
46529bf851
Merge pull request #9942 from prometheus/add-go-license-notice
...
Add license notice for code adapted from Go
2021-12-07 09:41:01 +01:00
Witek Bedyk
412b6a0591
Fix Uyuni SD initialization ( #9924 )
...
* Fix Uyuni SD initialization
The change prevents null pointer exception during SD initialization.
Signed-off-by: Witek Bedyk <witold.bedyk@suse.com>
2021-12-06 22:27:54 +01:00
Ed Schouten
a3e9628e0c
Kubernetes service discovery: add provider ID label ( #9603 )
...
When using Kubernetes on cloud providers, nodes will have the
spec.providerID field populated to contain the cloud provider specific
name of the EC2/GCE/... instance.
Let's expose this information as an additional label, so that it's
easier to annotate metrics and alerts to contain the cloud provider
specific name of the instance to which it pertains.
Signed-off-by: Ed Schouten <eschouten@apple.com>
2021-12-06 22:27:11 +01:00
Nick Pillitteri
084bd70708
Convert atomic Int64 to native type when logging value ( #9938 )
...
The atomic Int64 type wasn't able to be represented when logging
via go-kit log and ended up as `"unsupported value type"`.
Signed-off-by: Nick Pillitteri <nick.pillitteri@grafana.com>
2021-12-06 22:25:22 +01:00
XU
3563db20e0
Fix docs/configuration typo ( #9922 )
...
Signed-off-by: qqbuby <qqbuby@gmail.com>
2021-12-06 16:21:48 +05:30
Julius Volz
eeaa57e515
Merge pull request #9943 from prometheus/clarify-agent-message
...
Improve message wording on /agent page
2021-12-05 20:09:52 +01:00
Julius Volz
47ee242cb4
Improve message wording on /agent page
...
The "them" currently sounds like it refers to the targets, which is not
correct.
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2021-12-05 10:49:11 +01:00
Julius Volz
979db4fe44
Merge pull request #9941 from rlankfo/agent-status-page-alertmanagers
...
disable fetching alertmanagers on status page in agent mode
2021-12-05 10:42:44 +01:00
Robbie Lankford
5fb63c1071
remove unused agentMode param
...
Signed-off-by: Robbie Lankford <robert.lankford@grafana.com>
2021-12-05 03:14:20 -06:00
Robbie Lankford
6df47766b2
disable fetching alertmanagers on status page in agent mode
...
Signed-off-by: Robbie Lankford <robert.lankford@grafana.com>
2021-12-05 03:07:03 -06:00
Julius Volz
2c49860f69
Add license notice for code adapted from Go
...
Fix https://github.com/prometheus/prometheus/issues/9884
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2021-12-05 09:01:52 +01:00
Witek Bedyk
14986e52cf
Fix Uyuni SD initialization ( #9924 )
...
* Fix Uyuni SD initialization
The change prevents null pointer exception during SD initialization.
Signed-off-by: Witek Bedyk <witold.bedyk@suse.com>
2021-12-04 21:14:47 +01:00
Ben Ye
d9bbe7f3dd
mention agent mode in enable-feature flag help description ( #9939 )
...
Signed-off-by: Ben Ye <ben.ye@bytedance.com>
2021-12-04 21:13:24 +01:00
Julius Volz
d61d31b3b4
Merge pull request #9933 from Nexucis/bugfix/typo-codemirror
...
fix branch referenced in the codemirror-promql readme
2021-12-03 22:15:51 +03:00
Bryan Boreham
50878ebe5e
remote-write: buffer struct instead of interface
...
This reduces the amount of individual objects allocated, allowing sends
to run a bit faster.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2021-12-03 14:30:42 +00:00
Augustin Husson
ed0543f6bd
fix branch referenced in the codemirror-promql readme
...
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2021-12-03 15:02:32 +01:00
Bryan Boreham
c478d6477a
remote-write: benchmark just sending, on 20 shards
...
Previously BenchmarkSampleDelivery spent a lot of effort checking each
sample had arrived, so was largely showing the performance of test-only
code.
Increase the number of shards to be more realistic for a large
workload.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2021-12-03 14:02:10 +00:00
Jessica G
b9b57f9900
Merge pull request #9909 from zzehring/add-syntax-only-flag-to-promtool-config-check
...
promtool: Add `--syntax-only` flag for `check config`
2021-12-02 16:31:26 -08:00
zzehring
42628899b5
promtool: Add --syntax-only
flag for check config
...
This commit adds a `--syntax-only` flag for `promtool check config`.
When passing in this flag, promtool will omit various file existence
checks that would cause the check to fail (e.g. the check would not
fail if `rule_files` files don't exist at their respective paths).
This functionality will allow CI systems to check the syntax of
configs without worrying about referenced files.
Fixes : #5222
Signed-off-by: zzehring <zack.zehring@grafana.com>
2021-12-02 15:33:11 -05:00
Julius Volz
54e2efcda0
Cut Prometheus 2.32.0-rc.0 ( #9919 ) ( #9925 )
...
* Cut Prometheus 2.32.0-rc.0
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Address review comments
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Address more review comments
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Remove some non-user-visible changelog items
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Remove one more non-user-visible change
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2021-12-02 20:52:19 +03:00
Julius Volz
bfa200c7a7
Cut Prometheus 2.32.0-rc.0 ( #9919 )
...
* Cut Prometheus 2.32.0-rc.0
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Address review comments
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Address more review comments
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Remove some non-user-visible changelog items
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Remove one more non-user-visible change
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2021-12-02 18:03:56 +01:00
Chris Marchbanks
e95d4ec3f1
Merge pull request #9830 from prometheus/batch-queues
...
Batch samples before sending them to channels
2021-12-02 08:37:41 -07:00
Augustin Husson
ec002ae0dc
extend the number of attribute check to know if it's a prometheusConfig ( #9915 )
...
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2021-12-01 17:05:40 +01:00
dependabot[bot]
5a8e1474ed
build(deps): bump sass from 1.43.4 to 1.44.0 in /web/ui ( #9912 )
...
Bumps [sass](https://github.com/sass/dart-sass ) from 1.43.4 to 1.44.0.
- [Release notes](https://github.com/sass/dart-sass/releases )
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sass/dart-sass/compare/1.43.4...1.44.0 )
---
updated-dependencies:
- dependency-name: sass
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>
2021-12-01 16:35:40 +01:00
dependabot[bot]
2de487493a
build(deps-dev): bump @typescript-eslint/parser in /web/ui ( #9918 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 5.4.0 to 5.5.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.5.0/packages/parser )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
dependency-type: direct:development
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>
2021-12-01 16:34:58 +01:00
Julius Volz
2d34856e44
Update Go dependencies before 2.32 release ( #9913 )
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2021-12-01 15:57:08 +01:00
Augustin Husson
96af0f64b9
update web deps before 2.32 release ( #9916 )
...
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2021-12-01 15:54:22 +01:00
jessicagreben
99bb56fc46
add errcodes from sd file
...
Signed-off-by: jessicagreben <jessicagrebens@gmail.com>
2021-12-01 04:45:18 -08:00
dependabot[bot]
c4903efd59
build(deps): bump sanitize-html from 2.5.3 to 2.6.0 in /web/ui ( #9896 )
...
Bumps [sanitize-html](https://github.com/apostrophecms/sanitize-html ) from 2.5.3 to 2.6.0.
- [Release notes](https://github.com/apostrophecms/sanitize-html/releases )
- [Changelog](https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md )
- [Commits](https://github.com/apostrophecms/sanitize-html/compare/2.5.3...2.6.0 )
---
updated-dependencies:
- dependency-name: sanitize-html
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>
2021-12-01 11:47:10 +01:00
dependabot[bot]
5477e07253
build(deps): bump @codemirror/view from 0.19.20 to 0.19.21 in /web/ui ( #9895 )
...
Bumps [@codemirror/view](https://github.com/codemirror/view ) from 0.19.20 to 0.19.21.
- [Release notes](https://github.com/codemirror/view/releases )
- [Changelog](https://github.com/codemirror/view/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codemirror/view/compare/0.19.20...0.19.21 )
---
updated-dependencies:
- dependency-name: "@codemirror/view"
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>
2021-12-01 11:30:43 +01:00
Callum Styan
086ca90b24
Update exemplar docs based on changes to exemplar storage configuration ( #9868 )
...
* Update exemplar docs based on changes from #8974
Signed-off-by: Callum Styan <callumstyan@gmail.com>
* Fix missing code block closing + unindent one level.
Signed-off-by: Callum Styan <callumstyan@gmail.com>
2021-12-01 10:30:08 +01:00
Chris Marchbanks
c655684142
Subtract from enqueued samples/exemplars upon send
...
Right now the values for enqueuedSamples and enqueuedExemplars is never
subtracted leading to inflated values for failedSamples/failedExemplars
when a hard shutdown of a shard occurs.
Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
2021-11-30 12:54:50 -07:00
Chris Marchbanks
319249f9db
Batch samples before sending them to channels
...
Channels can cause bottlenecks and tons of context switches when reading
hundreds of thousands of samples per second from a single queue.
Instead, pre-batch the samples to amortize the cost of the concurrency
overhead.
Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
2021-11-30 12:54:45 -07:00