Paulin Todev
5752050b42
Scrape metrics can now be registered with a non-default registry.
...
* A registerer is passed to the scrape Manager,
and all scrape metrics register with it.
* For now the registry which we pass to the scrape
Manager is still the global one.
Signed-off-by: Paulin Todev <paulin.todev@gmail.com>
1 year ago
Levi Harrison
ffa74eb12d
Merge pull request #12818 from prometheus/dependabot/go_modules/golang.org/x/sys-0.12.0
...
build(deps): bump golang.org/x/sys from 0.10.0 to 0.12.0
1 year ago
Levi Harrison
dd5c7dd504
Merge pull request #12819 from prometheus/dependabot/go_modules/golang.org/x/net-0.15.0
...
build(deps): bump golang.org/x/net from 0.13.0 to 0.15.0
1 year ago
Levi Harrison
dfe3fe3ce8
Merge pull request #12848 from prometheus/dependabot/go_modules/k8s-io-815bab050d
...
build(deps): bump the k8s-io group with 2 updates
1 year ago
Levi Harrison
85112ee369
Merge pull request #12912 from prometheus/dependabot/go_modules/github.com/aws/aws-sdk-go-1.45.19
...
build(deps): bump github.com/aws/aws-sdk-go from 1.44.317 to 1.45.19
1 year ago
Bartlomiej Plotka
624b973ebf
Added ability to specify scrape protocols to accept during HTTP content type negotiation. ( #12738 )
...
* Added ability to specify scrape protocols to accept during HTTP content type negotiation.
This is done via new option in GlobalConfig and ScrapeConfig: "scrape_protocol"
Signed-off-by: bwplotka <bwplotka@gmail.com>
* Fixed readability and log message.
Signed-off-by: bwplotka <bwplotka@gmail.com>
---------
Signed-off-by: bwplotka <bwplotka@gmail.com>
1 year ago
Arthur Silva Sens
4b9c19fe55
Add created timestamps to prompb ( #12936 )
...
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
1 year ago
Levi Harrison
ea3ad744a9
Merge pull request #12956 from LeviHarrison/shepherd-2.48
1 year ago
Bryan Boreham
f6d9c84fde
scraping: delay creating buffer, to save memory ( #12953 )
...
We don't need the buffer to read the response until the scrape http call
returns; creating it earlier makes the buffer pool larger.
I split `scrape()` into `scrape()` which returns with the http response,
and `readResponse()` which decompresses and copies the data into the
supplied buffer. This design was chosen to minimize impact on the logic.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
1 year ago
Levi Harrison
e7a1d3bfaf
Volunteer Levi Harrison for release shepherd
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
1 year ago
Oleg Zaytsev
fe90dcccff
Revert ListPostings change ( #12955 )
...
Reverts change from https://github.com/prometheus/prometheus/pull/12906
The benchmarks show that it's slower when intersecting, which is a
common usage for ListPostings (when intersecting matchers from Head)
(old is before #12906 , new is #12906 ):
│ old │ new │
│ sec/op │ sec/op vs base │
Intersect/LongPostings1-16 20.54µ ± 1% 21.11µ ± 1% +2.76% (p=0.000 n=20)
Intersect/LongPostings2-16 51.03m ± 1% 52.40m ± 2% +2.69% (p=0.000 n=20)
Intersect/ManyPostings-16 194.2m ± 3% 332.1m ± 1% +71.00% (p=0.000 n=20)
geomean 5.882m 7.161m +21.74%
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
1 year ago
Oleg Zaytsev
5bd8c8c561
Clarify Postings.At() contract ( #12921 )
...
It's implicit, but should be explicit. It is invalid to call At() after
a failed call to Next() or Seek().
Following up on https://github.com/prometheus/prometheus/pull/12906
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
1 year ago
Linas Medziunas
ec823d9daf
Update comments, bitwise comparison of float buckets
...
Signed-off-by: Linas Medziunas <linas.medziunas@gmail.com>
1 year ago
Linas Medziunas
c5c5c569fa
Histogram performance: optimize floatBucketIterator
...
Signed-off-by: Linas Medziunas <linas.medziunas@gmail.com>
1 year ago
Björn Rabenstein
b787e5f190
Merge pull request #12931 from zenador/warning-non-monotonic-classic-histogram
...
Add warning when monotonicity is forced in the input to histogram_quantile
1 year ago
Danny Kopping
d3554d8421
Show group interval in Rules display ( #12943 )
...
* Show group interval in Rules display
Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
* Humanise interval
Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
---------
Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
1 year ago
Jonathan Ellithorpe
91650a32cc
Fix/clarify documentation for axn notation
...
Signed-off-by: Jonathan Ellithorpe <jelli@databricks.com>
1 year ago
Bryan Boreham
a5a4eab679
Storage: reduce memory allocations when merging series sets ( #12938 )
...
Instead of setting to nil and allocating a new slice every time the
merge is advanced, re-use the previous slice.
This is safe because the `currentSets` member is only used inside member
functions, and explicitly copied in `At()`, the only place it leaves the
struct.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
1 year ago
Bryan Boreham
b8f8c3c277
Merge pull request #12939 from bboreham/hoist-scrape-labels
...
scraping: hoist labels variable to save garbage
1 year ago
Jeanette Tan
0cbf0c1c68
Revise according to code review
...
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
1 year ago
Bryan Boreham
7c934ae18c
scraping: hoist labels variable to save garbage
...
`lset` escapes to heap due to being passed through the text-parser
interface, so we can reduce garbage by hoisting it out of the loop so
only one allocation is done for every series in a scrape.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
1 year ago
rakshith210
cdad64002a
Added Azure OAuth support ( #12572 )
...
* Added Azure OAuth support
Signed-off-by: rakshith210 <rakshith.me@gmail.com>
* Added missing comment
Signed-off-by: rakshith210 <rakshith.me@gmail.com>
* Addressing comment
Signed-off-by: rakshith210 <rakshith.me@gmail.com>
* Fixed lint issue
Signed-off-by: rakshith210 <rakshith.me@gmail.com>
* Fix test
Signed-off-by: rakshith210 <rakshith.me@gmail.com>
* Addressing comments
Signed-off-by: rakshith210 <rakshith.me@gmail.com>
* Added documentation and updated unit tests
Signed-off-by: rakshith210 <rakshith.me@gmail.com>
* Addressing comments
Signed-off-by: rakshith210 <rakshith.me@gmail.com>
---------
Signed-off-by: rakshith210 <rakshith.me@gmail.com>
1 year ago
Julien Pivotto
0331bcc7c9
Merge pull request #12932 from prometheus/release-2.47
...
Merge release 2.47 into main
1 year ago
Jeanette Tan
feaa93da77
Add warning when monotonicity is forced in the input to histogram_quantile
...
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
1 year ago
Bryan Boreham
c4d1a8beff
Merge pull request #12930 from prometheus/superq/pick-12874
...
Release 2.47.1
1 year ago
Arve Knudsen
b43358fd43
API: Add tests for query timeout parameter ( #12927 )
...
Add unit tests for Web API's query endpoint (GET/POST).
Also modify the endpoint handler to use context.WithDeadline instead of
context.WithTimeout, so the deadline is deterministic for the tests.
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
1 year ago
SuperQ
64130d7909
Release 2.47.1
...
* [BUGFIX] Fix duplicate sample detection at chunk size limit #12874
Signed-off-by: SuperQ <superq@gmail.com>
1 year ago
Björn Rabenstein
ec9170b8bf
Merge pull request #12874 from krajorama/outof-order-chunks
...
Fix duplicate sample detection at chunk size limit
Signed-off-by: SuperQ <superq@gmail.com>
1 year ago
gotjosh
79be1b8357
Merge pull request #12909 from 09jvilla/patch-1
...
Clarify what happens when a rule group takes too long to execute
1 year ago
Jennifer Villa
ea7bec4cc7
Update recording_rules.md
...
updated language to be a bit more clear
Signed-off-by: Jennifer Villa <jvilla2013@gmail.com>
1 year ago
Jennifer Villa
65ffa0c511
Update recording_rules.md
...
adding Josh's suggestion
Signed-off-by: Jennifer Villa <jvilla2013@gmail.com>
1 year ago
Oleg Zaytsev
1492031ef2
Optimize ListPostings Next() ( #12906 )
...
The Next() call of ListPostings() was updating two values, while we can
just update the position. This is up to 30% faster for high number of
Postings.
goos: linux
goarch: amd64
pkg: github.com/prometheus/prometheus/tsdb/index
cpu: 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz
│ old │ new │
│ sec/op │ sec/op vs base │
ListPostings/count=100-16 819.2n ± 0% 732.6n ± 0% -10.58% (p=0.000 n=20)
ListPostings/count=1000-16 2.685µ ± 1% 2.017µ ± 0% -24.88% (p=0.000 n=20)
ListPostings/count=10000-16 21.43µ ± 1% 14.81µ ± 0% -30.91% (p=0.000 n=20)
ListPostings/count=100000-16 209.4µ ± 1% 143.3µ ± 0% -31.55% (p=0.000 n=20)
ListPostings/count=1000000-16 2.086m ± 1% 1.436m ± 1% -31.18% (p=0.000 n=20)
geomean 29.02µ 21.41µ -26.22%
We're talking about microseconds here, but they just keep adding.
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
1 year ago
Arve Knudsen
de7e057d3c
tsdb: Tighten up sub-benchmark scope in BenchmarkQuerier ( #12718 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
1 year ago
dependabot[bot]
ede9742caf
build(deps): bump golang.org/x/sys from 0.10.0 to 0.12.0
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.10.0 to 0.12.0.
- [Commits](https://github.com/golang/sys/compare/v0.10.0...v0.12.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
dependabot[bot]
1179bb3068
build(deps): bump golang.org/x/net from 0.13.0 to 0.15.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.13.0 to 0.15.0.
- [Commits](https://github.com/golang/net/compare/v0.13.0...v0.15.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
Julien Pivotto
eeead61e48
Merge pull request #12913 from prometheus/dependabot/go_modules/github.com/hashicorp/consul/api-1.25.1
...
build(deps): bump github.com/hashicorp/consul/api from 1.22.0 to 1.25.1
1 year ago
Julien Pivotto
b157c0f821
Merge pull request #12914 from prometheus/dependabot/go_modules/documentation/examples/remote_storage/github.com/prometheus/client_golang-1.17.0
...
build(deps): bump github.com/prometheus/client_golang from 1.16.0 to 1.17.0 in /documentation/examples/remote_storage
1 year ago
Julien Pivotto
92accb188e
Merge pull request #12916 from prometheus/dependabot/github_actions/actions/upload-artifact-3.1.3
...
build(deps): bump actions/upload-artifact from 3.0.0 to 3.1.3
1 year ago
Julien Pivotto
3e1c268828
Merge pull request #12911 from prometheus/dependabot/github_actions/scripts/actions/checkout-4.1.0
...
build(deps): bump actions/checkout from 4.0.0 to 4.1.0 in /scripts
1 year ago
dependabot[bot]
4ba8430299
build(deps): bump actions/upload-artifact from 3.0.0 to 3.1.3
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 3.0.0 to 3.1.3.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v3...a8a3f3ad30e3422c9c7b888a15615d19a852ae32 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
dependabot[bot]
754fcc265e
build(deps): bump github.com/prometheus/client_golang
...
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang ) from 1.16.0 to 1.17.0.
- [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.16.0...v1.17.0 )
---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
dependabot[bot]
5d8f0e0582
build(deps): bump github.com/hashicorp/consul/api from 1.22.0 to 1.25.1
...
Bumps [github.com/hashicorp/consul/api](https://github.com/hashicorp/consul ) from 1.22.0 to 1.25.1.
- [Release notes](https://github.com/hashicorp/consul/releases )
- [Changelog](https://github.com/hashicorp/consul/blob/main/CHANGELOG.md )
- [Commits](https://github.com/hashicorp/consul/compare/api/v1.22.0...api/v1.25.1 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/consul/api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
dependabot[bot]
44bec3aaad
build(deps): bump github.com/aws/aws-sdk-go from 1.44.317 to 1.45.19
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.44.317 to 1.45.19.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.317...v1.45.19 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
dependabot[bot]
7b8e65e183
build(deps): bump the k8s-io group with 2 updates
...
Bumps the k8s-io group with 2 updates: [k8s.io/api](https://github.com/kubernetes/api ) and [k8s.io/client-go](https://github.com/kubernetes/client-go ).
Updates `k8s.io/api` from 0.28.1 to 0.28.2
- [Commits](https://github.com/kubernetes/api/compare/v0.28.1...v0.28.2 )
Updates `k8s.io/client-go` from 0.28.1 to 0.28.2
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/kubernetes/client-go/compare/v0.28.1...v0.28.2 )
---
updated-dependencies:
- dependency-name: k8s.io/api
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: k8s-io
- dependency-name: k8s.io/client-go
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: k8s-io
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
dependabot[bot]
216cf6046e
build(deps): bump actions/checkout from 4.0.0 to 4.1.0 in /scripts
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](3df4ab11eb...8ade135a41
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
Julien Pivotto
2fe9e7bfd7
Merge pull request #12907 from mmorel-35/errorlint/model
...
ci(lint): enable errorlint linter on model
1 year ago
Jennifer Villa
601e5b9028
Update recording_rules.md
...
specified the evaluation interval defines when the next evaluation should start.
Signed-off-by: Jennifer Villa <jvilla2013@gmail.com>
1 year ago
Jennifer Villa
5027863c40
Clarify what happens when a rule group takes too long to execute
...
Namely, call out that all subsequent evaluations will be skipped until the initial evaluation completes.
Signed-off-by: Jennifer Villa <jvilla2013@gmail.com>
1 year ago
Matthieu MOREL
0a513f827d
ci(lint): enable errorlint linter on model
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 year ago
Julien Pivotto
a38179c4e1
Merge pull request #12901 from khallai/khallai
...
Fixed broken feature flag link on Functions page
1 year ago