Bryan Boreham
e6c0f69f98
TSDB: Only pay for hash collisions when they happen
...
Instead of a map of slices of `*memSeries`, ready for any of them to
hold series where hash values collide, split into a map of `*memSeries`
and a map of slices which is usually empty, since hash collisions are
a one-in-a-billion thing.
The `del` method gets more complicated, to maintain the invariant that
a series is only in one of the two maps.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
1 year ago
Bryan Boreham
ce4e757704
TSDB: refine variable naming in chunk gc
...
Slight further refactor.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
1 year ago
Bryan Boreham
071d5732af
TSDB: refactor cleanup of chunks and series
...
Extract the middle of the loop into a function, so it will be
easier to modify the `seriesHashmap` data structure.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
1 year ago
Ziqi Zhao
ab2a7bb74f
add generic shrink function ( #13001 )
...
Add `ReduceResolution` method to `Histogram` and `FloatHistogram`
This takes the original `mergeToSchema` function and turns it into a more generic `reduceResolution` function, which is the building block for the new methods.
The methods will help with addressing #12864 .
---------
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
1 year ago
Arve Knudsen
ae9221e152
tsdb/index.Symbols: Drop context argument from Lookup method ( #13058 )
...
Drop context argument from tsdb/index.Symbols.Lookup since lookup
should be fast and the context checking is a performance hit.
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
1 year ago
Julien Pivotto
252c7ca939
Merge pull request #13106 from mmorel-35/patch-1
...
web : use Go standard errors package
1 year ago
Matthieu MOREL
05fba53e57
web : use Go standard package
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 year ago
Julien Pivotto
6a124427fa
Merge pull request #13073 from prometheus/dependabot/github_actions/ossf/scorecard-action-2.3.1
...
build(deps): bump ossf/scorecard-action from 2.2.0 to 2.3.1
1 year ago
Julien Pivotto
bd3db70501
Merge pull request #13072 from prometheus/dependabot/github_actions/actions/checkout-4.1.1
...
build(deps): bump actions/checkout from 4.1.0 to 4.1.1
1 year ago
Julien Pivotto
cf01ec2119
Merge pull request #13091 from mmorel-35/errorlint/util
...
util: use Go standard errors package
1 year ago
Goutham Veeramachaneni
b80617a248
Merge pull request #12881 from dimitarvdimitrov/dimitar/TestQuerierIndexQueriesRace-less-synchronisation
...
Improve sensitivity of TestQuerierIndexQueriesRace
1 year ago
Björn Rabenstein
69c9c29061
Merge pull request #12977 from linasm/linasm/strict-validation-of-histogram-without-nans
...
ValidateHistogram: strict Count check in absence of NaNs
1 year ago
Julien Pivotto
7a07a279c9
Merge pull request #10721 from ncauchois/fix_prometheus_remote_write_dashboard
...
mixin: Use url filter on Remote Write dashboard
1 year ago
Linas Medziunas
ebed7d0612
Change Validate to be a method on histogram structs
...
Signed-off-by: Linas Medziunas <linas.medziunas@gmail.com>
1 year ago
Julien Pivotto
b1293cf9da
Merge pull request #13080 from prometheus/dependabot/go_modules/github.com/klauspost/compress-1.17.2
...
build(deps): bump github.com/klauspost/compress from 1.17.1 to 1.17.2
1 year ago
Julien Pivotto
09e58ad881
Merge pull request #13081 from prometheus/dependabot/github_actions/scripts/actions/checkout-4.1.1
...
build(deps): bump actions/checkout from 4.1.0 to 4.1.1 in /scripts
1 year ago
Julien Pivotto
ec8752eb66
Merge pull request #13071 from prometheus/dependabot/github_actions/github/codeql-action-2.22.5
...
build(deps): bump github/codeql-action from 2.21.9 to 2.22.5
1 year ago
Julien Pivotto
8686330502
Merge pull request #13076 from prometheus/dependabot/go_modules/k8s-io-1096e19dab
...
build(deps): bump the k8s-io group with 2 updates
1 year ago
Linas Medziunas
1f8aea11d6
Move histogram validation code to model/histogram
...
Signed-off-by: Linas Medziunas <linas.medziunas@gmail.com>
1 year ago
Linas Medziunas
1cd6c1cde5
ValidateHistogram: strict Count check in absence of NaNs
...
Signed-off-by: Linas Medziunas <linas.medziunas@gmail.com>
1 year ago
Matthieu MOREL
fe057fc60d
use Go standard errors package
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 year ago
Björn Rabenstein
fae4561369
Merge pull request #12954 from linasm/linasm/optimize-floatBucketIterator2
...
Histogram performance: optimize floatBucketIterator
1 year ago
dependabot[bot]
9d9c598321
build(deps): bump github.com/klauspost/compress from 1.17.1 to 1.17.2
...
Bumps [github.com/klauspost/compress](https://github.com/klauspost/compress ) from 1.17.1 to 1.17.2.
- [Release notes](https://github.com/klauspost/compress/releases )
- [Changelog](https://github.com/klauspost/compress/blob/master/.goreleaser.yml )
- [Commits](https://github.com/klauspost/compress/compare/v1.17.1...v1.17.2 )
---
updated-dependencies:
- dependency-name: github.com/klauspost/compress
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
Bryan Boreham
0b02cc5277
Merge pull request #13078 from prometheus/dependabot/go_modules/github.com/linode/linodego-1.24.0
...
build(deps): bump github.com/linode/linodego from 1.23.0 to 1.24.0
1 year ago
Björn Rabenstein
79f4e45d64
Merge pull request #13089 from prometheus/beorn7/release
...
Merge release-2.48 back into main
1 year ago
beorn7
5dca994f64
Merge branch 'release-2.48' into beorn7/release
1 year ago
Bryan Boreham
6e2586b1c7
Merge pull request #13083 from LeviHarrison/release-2.48.0-rc.2
...
Release 2.48.0-rc.2
1 year ago
Julien Pivotto
8c560c9632
Merge pull request #13069 from prometheus/dependabot/go_modules/documentation/examples/remote_storage/github.com/prometheus/common-0.45.0
...
build(deps): bump github.com/prometheus/common from 0.44.0 to 0.45.0 in /documentation/examples/remote_storage
1 year ago
dependabot[bot]
ea27db7389
build(deps): bump github.com/linode/linodego from 1.23.0 to 1.24.0
...
Bumps [github.com/linode/linodego](https://github.com/linode/linodego ) from 1.23.0 to 1.24.0.
- [Release notes](https://github.com/linode/linodego/releases )
- [Commits](https://github.com/linode/linodego/compare/v1.23.0...v1.24.0 )
---
updated-dependencies:
- dependency-name: github.com/linode/linodego
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
Julien Pivotto
540a6729c0
Merge pull request #13077 from prometheus/dependabot/go_modules/go-opentelemetry-io-a16b2b5997
...
build(deps): bump the go-opentelemetry-io group with 2 updates
1 year ago
Julien Pivotto
caec414964
Merge pull request #13085 from dimitarvdimitrov/dimitar/expose-findQueryMinMaxTime
...
Export `promql.FindMinMaxTime`
1 year ago
Bryan Boreham
ae5dd1ffcb
Merge pull request #13062 from zenador/min-time-hist-chunks
...
Add min time to histogram chunks
1 year ago
Jeanette Tan
52eb303031
Refactor assigning MinTime in histogram chunks
...
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
1 year ago
Dimitar Dimitrov
9e3df532d8
Export `promql.Engine.FindMinMaxTime`
...
This function is useful to analyze promQL queries. We want to use this in Mimir to record the time range which the query touches.
I also chose to remove the `Engine` receiver because it was unnecessary, and it makes it easier to use, but happy to refactor that if you disagree.
The function is untested on its own. If you prefer to have unit tests now that its exported, I can look into adding some.
Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
1 year ago
Jeanette Tan
3ccaaa40ba
Fix according to code review
...
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
1 year ago
György Krajcsovits
4296ecbd14
tsdb/compact_test.go: test mixed typed series with PopulateBlock
...
Add testcase and update test so that it can test native histograms as well.
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
1 year ago
Jeanette Tan
27abf09e7f
Fix missing MinTime in histogram chunks
...
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
1 year ago
Jeanette Tan
2f7060bd5a
Expand TestPopulateWithTombSeriesIterators to test earlier deletion intervals for histogram chunks as well as time-overlapping chunks
...
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
1 year ago
Jeanette Tan
7a4a1127b7
Expand TestPopulateWithTombSeriesIterators to test min max times of chunks, including mixed chunks
...
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
1 year ago
Jeanette Tan
04aabdd7cc
Refactor TestPopulateWithDelSeriesIterator unit tests to reuse more code
...
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
1 year ago
Jeanette Tan
46be85f2dc
Make TestPopulateWithDelSeriesIterator tests cover histogram types and check MinTime
...
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
1 year ago
Levi Harrison
8b87f3bbf1
Release 2.48.0-rc.2
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
1 year ago
Levi Harrison
287511d92f
Merge pull request #13066 from prometheus/superq/pick_timestamp
...
scrape: Added trackTimestampsStaleness configuration option
1 year ago
dependabot[bot]
2d6f27f10a
build(deps): bump actions/checkout from 4.1.0 to 4.1.1 in /scripts
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](8ade135a41...b4ffde65f4
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
dependabot[bot]
1103569841
build(deps): bump the go-opentelemetry-io group with 2 updates
...
Bumps the go-opentelemetry-io group with 2 updates: [go.opentelemetry.io/collector/pdata](https://github.com/open-telemetry/opentelemetry-collector ) and [go.opentelemetry.io/collector/semconv](https://github.com/open-telemetry/opentelemetry-collector ).
Updates `go.opentelemetry.io/collector/pdata` from 1.0.0-rcv0016 to 1.0.0-rcv0017
- [Release notes](https://github.com/open-telemetry/opentelemetry-collector/releases )
- [Changelog](https://github.com/open-telemetry/opentelemetry-collector/blob/main/CHANGELOG-API.md )
- [Commits](https://github.com/open-telemetry/opentelemetry-collector/compare/pdata/v1.0.0-rcv0016...pdata/v1.0.0-rcv0017 )
Updates `go.opentelemetry.io/collector/semconv` from 0.87.0 to 0.88.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-collector/releases )
- [Changelog](https://github.com/open-telemetry/opentelemetry-collector/blob/main/CHANGELOG-API.md )
- [Commits](https://github.com/open-telemetry/opentelemetry-collector/compare/v0.87.0...v0.88.0 )
---
updated-dependencies:
- dependency-name: go.opentelemetry.io/collector/pdata
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go-opentelemetry-io
- dependency-name: go.opentelemetry.io/collector/semconv
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-opentelemetry-io
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
dependabot[bot]
ae2b00d77d
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.2 to 0.28.3
- [Commits](https://github.com/kubernetes/api/compare/v0.28.2...v0.28.3 )
Updates `k8s.io/client-go` from 0.28.2 to 0.28.3
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/kubernetes/client-go/compare/v0.28.2...v0.28.3 )
---
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]
1c272a1f4f
build(deps): bump ossf/scorecard-action from 2.2.0 to 2.3.1
...
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action ) from 2.2.0 to 2.3.1.
- [Release notes](https://github.com/ossf/scorecard-action/releases )
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md )
- [Commits](08b4669551...0864cf1902
)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
dependabot[bot]
b4448e0ef2
build(deps): bump actions/checkout from 4.1.0 to 4.1.1
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](8ade135a41...b4ffde65f4
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
dependabot[bot]
b9f75ceedd
build(deps): bump github/codeql-action from 2.21.9 to 2.22.5
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 2.21.9 to 2.22.5.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](ddccb87388...74483a38d3
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
dependabot[bot]
f9d060c65f
build(deps): bump github.com/prometheus/common
...
Bumps [github.com/prometheus/common](https://github.com/prometheus/common ) from 0.44.0 to 0.45.0.
- [Release notes](https://github.com/prometheus/common/releases )
- [Commits](https://github.com/prometheus/common/compare/v0.44.0...v0.45.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>
1 year ago