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
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
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
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]
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
Julien Pivotto
ac0919d48c
Update docs/querying/functions.md
...
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
1 year ago
Julien Pivotto
4d18ed24d2
Merge pull request #12905 from roidelapluie/up-sec-up
...
UI: Update some dependencies
1 year ago
Julien Pivotto
b6dbfcc15f
Merge pull request #12903 from roidelapluie/fix-pr-7023
...
rulefmt: remove unreachable code
1 year ago
Julien Pivotto
76ebd621d6
UI: Update word-wrap (GHSA-j8xg-fqg3-53r7)
...
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
1 year ago
Julien Pivotto
3d80cb1325
UI: Update json5 (GHSA-9c47-m6qq-7p4h)
...
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
1 year ago
Julien Pivotto
d50c7d3bfc
UI: Update loader-utils (GHSA-hhq3-ff78-jv3g GHSA-3rfm-jhwj-7488)
...
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
1 year ago
Julien Pivotto
f24dc17fcc
UI: Update semver (GHSA-c2qf-rxjj-qqgw)
...
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
1 year ago
Julien Pivotto
ca12cb8909
UI: Update tough-cookie (GHSA-72xf-g2v4-qvf3 GHSA-76p3-8jx3-jpfq)
...
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
1 year ago
Julien Pivotto
b6fbda0c8a
UI: Update Webpack (GHSA-hc6q-2mpp-qw7j)
...
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
1 year ago
Julien Pivotto
77bc6b01f0
Merge pull request #11348 from gabibguti/main
...
Add OpenSSF Scorecards GitHub Action
1 year ago
Julien Pivotto
19b4cb2f48
OpenSSF: Run on main and PR's
...
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
1 year ago
Gabriela Gutierrez
6237aba7c4
Fix trailing spaces
...
Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
1 year ago
Gabriela Gutierrez
17caa505b1
Add Google copyright notice
...
Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
1 year ago
Gabriela Gutierrez
9a628bb1c8
Add OpenSSF Scorecard badge to README.md
...
Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
1 year ago
Gabriela Gutierrez
a1c1fc8244
Create scorecards.yml
...
Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
1 year ago
Julien Pivotto
4b735f02a6
Merge pull request #10569 from zzJinux/discovery-manager-run
...
Fix discovery managers to be properly cancelled
1 year ago
Julien Pivotto
c52db2b196
Remove duplicate tests
...
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
1 year ago