Commit graph

11778 commits

Author SHA1 Message Date
Marco Pracucci 7ad111b27e
Merge remote-tracking branch 'remotes/prometheus/main' into update-upstream 2023-07-06 15:13:54 +02:00
Marco Pracucci 0ad967ebd3
Merge pull request #508 from grafana/sync-upstream-2023-06-30
Sync upstream 2023 06 30
2023-07-06 14:54:33 +02:00
Julien Pivotto 076056ccdf
Merge pull request #11642 from zoonage/main
Do not add pods to target group if the PodIP status is not set
2023-07-05 23:10:50 +02:00
Marc Tudurí 4851ced266
tsdb: Support native histograms in snapshot on shutdown (#12258)
Signed-off-by: Marc Tuduri <marctc@protonmail.com>
2023-07-05 11:44:13 +02:00
Charles Korn 6f75f8768f
Merge pull request #511 from grafana/charleskorn/fix-benchmark
Add missing `InstallCodec` call to benchmark
2023-07-05 17:41:04 +10:00
Julien Pivotto f06f899a6c
Merge pull request #12468 from prometheus/dependabot/go_modules/documentation/examples/remote_storage/github.com/prometheus/client_golang-1.16.0
build(deps): bump github.com/prometheus/client_golang from 1.15.0 to 1.16.0 in /documentation/examples/remote_storage
2023-07-05 09:00:33 +02:00
Julien Pivotto 6768cb5c1e
Merge pull request #12506 from prometheus/dependabot/go_modules/github.com/Azure/azure-sdk-for-go/sdk/azidentity-1.3.0
build(deps): bump github.com/Azure/azure-sdk-for-go/sdk/azidentity from 1.2.1 to 1.3.0
2023-07-05 09:00:05 +02:00
Charles Korn 5e8b550ad5
Add missing InstallCodec call to benchmark
@bboreham noticed that `BenchmarkRespond` was missing a call to `InstallCodec` in 
https://github.com/prometheus/prometheus/pull/11905#discussion_r1251255249
2023-07-05 10:36:39 +10:00
Julien Pivotto 4235d9f558
Merge pull request #12502 from supertassu/taavi/os-flavor-id
discovery/openstack: Include instance image ID in labels
2023-07-05 00:32:27 +02:00
dependabot[bot] ac32e19bcc
build(deps): bump github.com/prometheus/client_golang
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.15.0 to 1.16.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.15.0...v1.16.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>
2023-07-04 21:43:53 +00:00
dependabot[bot] 323ac83444
build(deps): bump github.com/Azure/azure-sdk-for-go/sdk/azidentity
Bumps [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go) from 1.2.1 to 1.3.0.
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md)
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/azidentity/v1.2.1...sdk/azcore/v1.3.0)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-04 21:43:15 +00:00
Julien Pivotto f7a880d9b0
Merge pull request #12507 from prometheus/dependabot/go_modules/github.com/linode/linodego-1.17.2
build(deps): bump github.com/linode/linodego from 1.17.0 to 1.17.2
2023-07-04 23:40:12 +02:00
Julien Pivotto fb06a127c7
Merge pull request #12512 from prometheus/dependabot/github_actions/bufbuild/buf-setup-action-1.23.1
build(deps): bump bufbuild/buf-setup-action from 1.20.0 to 1.23.1
2023-07-04 23:39:57 +02:00
Julien Pivotto 543d77327a
Merge pull request #12511 from prometheus/dependabot/github_actions/golangci/golangci-lint-action-3.6.0
build(deps): bump golangci/golangci-lint-action from 3.4.0 to 3.6.0
2023-07-04 23:39:35 +02:00
Julien Pivotto f4f3d52c47
Merge pull request #12509 from prometheus/dependabot/go_modules/github.com/hetznercloud/hcloud-go-1.47.0
build(deps): bump github.com/hetznercloud/hcloud-go from 1.45.1 to 1.47.0
2023-07-04 23:39:21 +02:00
Julien Pivotto d9fccd17e5
Merge pull request #12510 from prometheus/dependabot/go_modules/google.golang.org/grpc-1.56.1
build(deps): bump google.golang.org/grpc from 1.55.0 to 1.56.1
2023-07-04 23:39:10 +02:00
Julien Pivotto 47ebdf49fd
Merge pull request #12514 from prometheus/dependabot/go_modules/documentation/examples/remote_storage/github.com/prometheus/prometheus-0.45.0
build(deps): bump github.com/prometheus/prometheus from 0.44.0 to 0.45.0 in /documentation/examples/remote_storage
2023-07-04 23:38:44 +02:00
Julien Pivotto 0186ec7873
Merge pull request #12516 from vinted/convert_queryopts_to_interface
promql: convert QueryOpts to interface
2023-07-04 23:38:31 +02:00
Taavi Väänänen 0f4c27e2bf
discovery/openstack: Include instance image ID in labels
Adds a new label to include the ID of the image that an instance is
using. This can be used for example to filter a job to only include
instances using a certain image as that image includes some exporter.

Sometimes the image information isn't available, such as when the image
is private and the user doesn't have the roles required to see it. In
those cases we just don't set the label, as the rest of the information
from the discovery provider can still be used.

Signed-off-by: Taavi Väänänen <hi@taavi.wtf>
2023-07-04 18:50:11 +03:00
Bryan Boreham b72f01414a lint
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-07-04 15:01:02 +00:00
Bryan Boreham 013fdb9460 Update goleak for change in glog
Evidently the internal type changed.
2023-07-04 15:01:02 +00:00
Marco Pracucci 34e7d9d997 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-07-04 15:01:02 +00:00
Matthias Loibl 68362e3bc7 Remove Add(0)
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
2023-07-04 15:01:02 +00:00
Matthias Loibl ba4454c195 web: Initialize requestCounter metrics to 0 with handler and 200k labels.
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
2023-07-04 15:01:02 +00:00
cui fliter 5fc639dabc fix some typos (#12498)
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-07-04 15:01:02 +00:00
dependabot[bot] 041c8c8ece build(deps): bump github.com/stretchr/testify
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.2 to 1.8.4.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.2...v1.8.4)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-04 15:01:02 +00:00
dependabot[bot] d965a9b8e6 build(deps): bump golang.org/x/oauth2 from 0.8.0 to 0.9.0
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.8.0 to 0.9.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-04 15:01:02 +00:00
dependabot[bot] 713fafa693 build(deps): bump github.com/aws/aws-sdk-go from 1.44.276 to 1.44.284
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.276 to 1.44.284.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.276...v1.44.284)

---
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>
2023-07-04 15:01:02 +00:00
dependabot[bot] fc84190b6b 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-07-04 15:01:02 +00:00
SuperQ 9de9d20e5c Update depguard config syntax.
Signed-off-by: SuperQ <superq@gmail.com>
2023-07-04 15:01:01 +00:00
SuperQ f8dee099b2 Disable revive unused-parameter
Signed-off-by: SuperQ <superq@gmail.com>
2023-07-04 15:01:01 +00:00
SuperQ d4a224a503 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-07-04 15:01:01 +00:00
Filip Petkovski 9949d83331 Add nolint for NewParser function
Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
2023-07-04 15:01:01 +00:00
Filip Petkovski df6e388d53 parser: Allow parsing arbitrary functions
In Thanos we would like to start experimenting with custom functions that are
currently not part of the PromQL spec. We would do this by adding an implementation
for those functions in the Thanos engine: https://github.com/thanos-community/promql-engine and allow
users to decide which engine they want to use on a per-query basis.

Since we use the PromQL parser from Prometheus, injecting functions in the global `Functions` variable
would mean they also become available for the Prometheus engine. To avoid this side-effect, this commit
exposes a Parser interface in which the supported functions can be injected as an option. If not functions
are injected, the parser implementation will default to the functions defined in the global Functions variable.

Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
2023-07-04 15:01:01 +00:00
François Gouteroux e86fe245b6 feat refactoring checkrules func
Signed-off-by: François Gouteroux <francois.gouteroux@gmail.com>
2023-07-04 15:01:01 +00:00
François Gouteroux 3a37731155 fix: update doc
Signed-off-by: François Gouteroux <francois.gouteroux@gmail.com>
2023-07-04 15:01:01 +00:00
François Gouteroux 7f1f842eba fix: apply suggested changes
Signed-off-by: François Gouteroux <francois.gouteroux@gmail.com>
2023-07-04 15:01:01 +00:00
François Gouteroux 488ece2899 fix: apply suggested changes
Signed-off-by: François Gouteroux <francois.gouteroux@gmail.com>
2023-07-04 15:01:01 +00:00
François Gouteroux ce00e8c7a8 promtool: read from stdin if no filenames are provided in check rules
Signed-off-by: François Gouteroux <francois.gouteroux@gmail.com>
2023-07-04 15:01:01 +00:00
John Losito 04ce186a4d Update configuration.md
Signed-off-by: John Losito <lositojohnj@gmail.com>
2023-07-04 15:01:01 +00:00
Justin Lei 92668d9bf7 Also pass chunkOpts into appendPreprocessor
Signed-off-by: Justin Lei <justin.lei@grafana.com>
2023-07-04 15:01:01 +00:00
Justin Lei 7622d5ac5f Group args to append to memSeries in chunkOpts
Signed-off-by: Justin Lei <justin.lei@grafana.com>
2023-07-04 15:01:01 +00:00
François Gouteroux e0ab445e9a fix: apply suggested changes
Signed-off-by: François Gouteroux <francois.gouteroux@gmail.com>
2023-07-04 15:01:01 +00:00
François Gouteroux 3b96cd2feb fix: apply suggested changes
Signed-off-by: François Gouteroux <francois.gouteroux@gmail.com>
2023-07-04 15:01:01 +00:00
François Gouteroux 9a55e301f7 feat: enhance stdin check and add tests parsing error
Signed-off-by: François Gouteroux <francois.gouteroux@gmail.com>
2023-07-04 15:01:01 +00:00
François Gouteroux 8f4ef5029c feat: support histogram and summary metric types
Signed-off-by: François Gouteroux <francois.gouteroux@gmail.com>
2023-07-04 15:01:01 +00:00
François Gouteroux 430a664cf4 feat: make push metrics labels generic and repeatable
Signed-off-by: François Gouteroux <francois.gouteroux@gmail.com>
2023-07-04 15:01:01 +00:00
François Gouteroux 25d352e6e9 feat: add suggested changes, tests, and stdin support
Signed-off-by: François Gouteroux <francois.gouteroux@gmail.com>
2023-07-04 15:01:01 +00:00
François Gouteroux 5b9accd2b5 feat(promtool): add push metrics command
Signed-off-by: François Gouteroux <francois.gouteroux@gmail.com>
2023-07-04 15:01:01 +00:00
tyltr 96717579d2 typo
Signed-off-by: tyltr <tylitianrui@126.com>
2023-07-04 15:01:01 +00:00