Julius Volz
199cfc1324
Fix wording from "jitterSeed" -> "offsetSeed" for server-wide scrape offsets
...
In digital communication, "jitter" usually refers to how much a signal deviates
from true periodicity, see https://en.wikipedia.org/wiki/Jitter . The way we are
using the "jitterSeed" in Prometheus does not affect the true periodicity at
all, but just introduces a constant phase shift (or offset) within the period.
So it would be more correct and less confusing to call the "jitterSeed" an
"offsetSeed" instead.
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2023-07-04 13:38:31 +00:00
Justin Lei
d0fea47a9c
Remove samplesPerChunk from memSeries ( #12390 )
...
Signed-off-by: Justin Lei <justin.lei@grafana.com>
2023-07-04 13:38:31 +00:00
dependabot[bot]
e8d4466ef4
build(deps): bump bufbuild/buf-setup-action from 1.20.0 to 1.23.1
...
Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action ) from 1.20.0 to 1.23.1.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases )
- [Commits](https://github.com/bufbuild/buf-setup-action/compare/v1.20.0...v1.23.1 )
---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-04 11:58:23 +00:00
Julien Pivotto
47b613a3cb
Merge pull request #11639 from fbegyn/main
...
stop github actions from executing specific tasks on forks
2023-07-04 13:57:32 +02:00
Julien Pivotto
986fde06b2
Merge pull request #11688 from damnever/fix/datamodelvalidation-remotewriteapi
...
Validate the metric names and labels in the remote write handler
2023-07-04 13:52:02 +02:00
Julien Pivotto
4653e8345a
Merge pull request #12504 from prometheus/superq/fixup_golangci_sync
...
Update sync script.
2023-07-04 13:09:08 +02:00
Julien Pivotto
9ff1f24efa
Merge pull request #12505 from pracucci/fix-infinite-loop-in-index-writer
...
Fix infinite loop in index Writer when a series contains duplicated label names
2023-07-04 13:08:36 +02:00
Bryan Boreham
31164a7373
Merge pull request #509 from grafana/remove-dup-github
...
Remove duplicated .github directory
2023-07-04 12:08:08 +01:00
Bryan Boreham
3a61decb3d
Merge pull request #510 from grafana/cherrypick-stringlabels
...
Cherrypick stringlabels optimisations
2023-07-04 11:38:15 +01:00
Patrick Oyarzun
68e5937474
Apply relevant label matchers in LabelValues before fetching extra postings ( #12274 )
...
* Apply matchers when fetching label values
Signed-off-by: Patrick Oyarzun <patrick.oyarzun@grafana.com>
* Avoid extra copying of label values
Signed-off-by: Patrick Oyarzun <patrick.oyarzun@grafana.com>
---------
Signed-off-by: Patrick Oyarzun <patrick.oyarzun@grafana.com>
2023-07-04 10:37:58 +01:00
Charles Korn
097faf33c6
Merge branch 'main' into api-response-format-extension-point
...
# Conflicts:
# web/api/v1/api.go
# web/api/v1/api_test.go
2023-07-04 13:26:13 +10:00
Bryan Boreham
1e16c60bae
labels: improve Get method for stringlabels build ( #12485 )
...
Inline one call to `decodeString`, and skip decoding the value string
until we find a match for the name.
Do a quick check on the first character in each string,
and exit early if we've gone past - labels are sorted in order.
Also improve tests and benchmark:
* labels: test Get with varying lengths - it's not typical for Prometheus labels to all be the same length.
* extend benchmark with label not found
---------
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-07-03 20:34:35 +01:00
Bryan Boreham
19c9db3c07
labels: faster Compare function when using -tags stringlabels ( #12451 )
...
Instead of unpacking every individual string, we skip to the point
where there is a difference, going 8 bytes at a time where possible.
Add benchmark for Compare; extend tests too.
---------
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
Co-authored-by: Oleg Zaytsev <mail@olegzaytsev.com>
2023-07-03 20:34:29 +01:00
Giedrius Statkevičius
3f230fc9f8
promql: convert QueryOpts to interface
...
Convert QueryOpts to an interface so that downstream projects like
https://github.com/thanos-community/promql-engine could extend the query
options with engine specific options that are not in the original
engine.
Will be used to enable query analysis per-query.
Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
2023-07-03 16:20:31 +03:00
Bryan Boreham
5255bf06ad
Replace sort.Slice with faster slices.SortFunc
...
The generic version is more efficient.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-07-02 22:17:08 +00:00
dependabot[bot]
5735373c9b
build(deps): bump github.com/prometheus/prometheus
...
Bumps [github.com/prometheus/prometheus](https://github.com/prometheus/prometheus ) from 0.44.0 to 0.45.0.
- [Release notes](https://github.com/prometheus/prometheus/releases )
- [Changelog](https://github.com/prometheus/prometheus/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prometheus/prometheus/compare/v0.44.0...v0.45.0 )
---
updated-dependencies:
- dependency-name: github.com/prometheus/prometheus
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-01 23:55:45 +00:00
dependabot[bot]
1a355ded01
build(deps): bump golangci/golangci-lint-action from 3.4.0 to 3.6.0
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 3.4.0 to 3.6.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v3.4.0...v3.6.0 )
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-01 23:10:44 +00:00
dependabot[bot]
4027ba3d67
build(deps): bump google.golang.org/grpc from 1.55.0 to 1.56.1
...
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.55.0 to 1.56.1.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.55.0...v1.56.1 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-01 23:06:16 +00:00
dependabot[bot]
aa75c60f9a
build(deps): bump github.com/hetznercloud/hcloud-go
...
Bumps [github.com/hetznercloud/hcloud-go](https://github.com/hetznercloud/hcloud-go ) from 1.45.1 to 1.47.0.
- [Release notes](https://github.com/hetznercloud/hcloud-go/releases )
- [Changelog](https://github.com/hetznercloud/hcloud-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/hetznercloud/hcloud-go/compare/v1.45.1...v1.47.0 )
---
updated-dependencies:
- dependency-name: github.com/hetznercloud/hcloud-go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-01 23:06:08 +00:00
dependabot[bot]
81606762d2
build(deps): bump github.com/linode/linodego from 1.17.0 to 1.17.2
...
Bumps [github.com/linode/linodego](https://github.com/linode/linodego ) from 1.17.0 to 1.17.2.
- [Release notes](https://github.com/linode/linodego/releases )
- [Commits](https://github.com/linode/linodego/compare/v1.17.0...v1.17.2 )
---
updated-dependencies:
- dependency-name: github.com/linode/linodego
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-01 23:05:56 +00:00
Marco Pracucci
35069910f5
Fix infinite loop in index Writer when a series contains duplicated label names
...
Signed-off-by: Marco Pracucci <marco@pracucci.com>
2023-07-01 17:38:08 +02:00
SuperQ
1a8f06bb7a
Update sync script.
...
* Fix the path to the golanci-lint target filename.
* Use the target filename when printing errors.
* Put the yamllint filename back to previous name.
Signed-off-by: SuperQ <superq@gmail.com>
2023-07-01 11:37:16 +02:00
Bryan Boreham
8a0c58dda5
Remove duplicated .github directory
...
Seems to have been an accident 8 months ago.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-06-30 17:15:44 +00:00
Marco Pracucci
031d22df9e
Fix race condition in ChunkDiskMapper.Truncate() ( #12500 )
...
* Fix race condition in ChunkDiskMapper.Truncate()
Signed-off-by: Marco Pracucci <marco@pracucci.com>
* Added unit test
Signed-off-by: Marco Pracucci <marco@pracucci.com>
* Update tsdb/chunks/head_chunks.go
Co-authored-by: Ganesh Vernekar <ganeshvern@gmail.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
---------
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Co-authored-by: Ganesh Vernekar <ganeshvern@gmail.com>
2023-06-30 18:29:59 +05:30
Francis Begyn
a6449cd89c
Merge branch 'prometheus:main' into main
2023-06-30 14:50:54 +02:00
Matthias Loibl
71d149a79f
Merge pull request #12472 from metalmatze/request-counter-init
...
web: Initialize requestCounter metrics to 0 with handler and 200 labels
2023-06-30 14:07:20 +02:00
cui fliter
484a9e4071
fix some typos ( #12498 )
...
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-06-29 12:28:13 +02:00
Charles Korn
5c270e23ea
Merge pull request #506 from grafana/charleskorn/streaming-timestamp
...
Don't recreate iterator for each series on each timestep when evaluating a query with `timestamp()`
2023-06-29 14:17:23 +10:00
Charles Korn
ad25a5c65f
Add test to confirm timestamp()
behaves correctly when evaluating a range query.
2023-06-29 13:34:26 +10:00
Charles Korn
30507ef298
Create per-series iterators only once per selector, rather than recreating it for each time step.
...
Signed-off-by: Charles Korn <charles.korn@grafana.com>
2023-06-28 15:41:19 +10:00
Charles Korn
ab5d9e3be1
Don't create a new iterator for every time step.
...
Signed-off-by: Charles Korn <charles.korn@grafana.com>
2023-06-28 15:41:19 +10:00
Charles Korn
f5bbe2ef9e
Simplify loop
...
Signed-off-by: Charles Korn <charles.korn@grafana.com>
2023-06-28 15:41:17 +10:00
Charles Korn
90ac889e1f
Expand series set just once
...
Signed-off-by: Charles Korn <charles.korn@grafana.com>
2023-06-28 15:41:15 +10:00
Charles Korn
17b1486964
Inline method
...
Signed-off-by: Charles Korn <charles.korn@grafana.com>
2023-06-28 15:41:14 +10:00
Charles Korn
28097c9476
Extract timestamp special case to its own method.
...
Signed-off-by: Charles Korn <charles.korn@grafana.com>
2023-06-28 15:41:12 +10:00
Charles Korn
8bdcad30a4
Add benchmark for query using timestamp()
...
Signed-off-by: Charles Korn <charles.korn@grafana.com>
2023-06-28 15:41:10 +10:00
Matthias Loibl
686482ab34
Remove Add(0)
...
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
2023-06-27 18:10:38 +02:00
Julien Pivotto
fe639b545f
Merge pull request #12420 from prometheus/dependabot/github_actions/bufbuild/buf-setup-action-1.20.0
...
build(deps): bump bufbuild/buf-setup-action from 1.17.0 to 1.20.0
2023-06-27 15:28:35 +02:00
Julien Pivotto
742f9e3820
Merge pull request #12427 from prometheus/dependabot/go_modules/documentation/examples/remote_storage/github.com/stretchr/testify-1.8.4
...
build(deps): bump github.com/stretchr/testify from 1.8.2 to 1.8.4 in /documentation/examples/remote_storage
2023-06-27 15:28:20 +02:00
Julien Pivotto
80d2b1d071
Merge pull request #12466 from prometheus/dependabot/go_modules/golang.org/x/oauth2-0.9.0
...
build(deps): bump golang.org/x/oauth2 from 0.8.0 to 0.9.0
2023-06-27 15:28:09 +02:00
Julien Pivotto
0abf7f07e3
Merge pull request #12469 from prometheus/dependabot/go_modules/github.com/aws/aws-sdk-go-1.44.284
...
build(deps): bump github.com/aws/aws-sdk-go from 1.44.276 to 1.44.284
2023-06-27 15:27:59 +02:00
Julien Pivotto
0381f0c73a
Merge pull request #12495 from prometheus/dependabot/go_modules/documentation/examples/remote_storage/github.com/influxdata/influxdb-1.11.2
...
build(deps): bump github.com/influxdata/influxdb from 1.11.0 to 1.11.2 in /documentation/examples/remote_storage
2023-06-27 15:23:25 +02:00
Julien Pivotto
6188038f61
Merge pull request #12197 from prometheus/superq/sync_old_ci_lint
...
Update golangci-lint
2023-06-27 15:22:34 +02:00
SuperQ
4e9b89f887
Update depguard config syntax.
...
Signed-off-by: SuperQ <superq@gmail.com>
2023-06-27 14:21:39 +02:00
SuperQ
16c3cd35b1
Disable revive unused-parameter
...
Signed-off-by: SuperQ <superq@gmail.com>
2023-06-27 14:21:39 +02:00
SuperQ
c18f5b6487
Update golangci-lint
...
* Update golangci-lint to v1.53.3.
* Update the sync script handler for the old golanci-lint action.
Signed-off-by: SuperQ <superq@gmail.com>
2023-06-27 14:21:39 +02:00
Julien Pivotto
a605b81b14
Merge pull request #12170 from fpetkovski/parser-inject-functions
...
parser: Allow parsing arbitrary functions
2023-06-27 13:32:46 +02:00
Julien Pivotto
1214d314c3
Merge pull request #12225 from fgouteroux/feat/promtool_check_rules_stdin
...
promtool: read from stdin if no filenames are provided in check rules
2023-06-27 13:22:00 +02:00
dependabot[bot]
2c6b9c4cd4
build(deps): bump github.com/influxdata/influxdb
...
Bumps [github.com/influxdata/influxdb](https://github.com/influxdata/influxdb ) from 1.11.0 to 1.11.2.
- [Release notes](https://github.com/influxdata/influxdb/releases )
- [Changelog](https://github.com/influxdata/influxdb/blob/master/CHANGELOG_OLD.md )
- [Commits](https://github.com/influxdata/influxdb/commits )
---
updated-dependencies:
- dependency-name: github.com/influxdata/influxdb
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-27 11:14:27 +00:00
Julien Pivotto
53d7aac39e
Merge pull request #12281 from jlosito/patch-1
...
Update configuration.md
2023-06-27 13:14:26 +02:00