Charles Korn
62e6e55c07
promql: fix issues with comparison binary operations with `bool` modifier and native histograms ( #15413 )
...
* Fix issue where comparison operations with `bool` modifier and native histograms return histograms rather than 0 or 1
* Don't emit anything for comparisons between floats and histograms when `bool` modifier is used
* Don't emit anything for comparisons between floats and histograms when `bool` modifier is used between a vector and a scalar
---------
Signed-off-by: Charles Korn <charles.korn@grafana.com>
2024-11-19 09:13:34 +01:00
Charles Korn
45db23617a
promql: fix incorrect "native histogram ignored in aggregation" annotations ( #15414 )
...
Signed-off-by: Charles Korn <charles.korn@grafana.com>
2024-11-19 08:17:49 +01:00
Đurica Yuri Nikolić
101b1c307f
[ENHANCEMEN] Remote-Write: optionally use a DNS resolver that picks a random IP ( #15329 )
...
When a remote-write is executed towards a host name that is resolved to multiple IP addresses, this PR introduces a possibility to force creation of new connections used for the remote-write request to a randomly chosen IP address from the ones corresponding to the host name. The default behavior remains unchanged, i.s., the IP address used for the connection creation remains the one chosen by Go.
This is an experimental feature, it is disabled by default.
Signed-off-by: Yuri Nikolic <durica.nikolic@grafana.com>
2024-11-15 15:41:49 +00:00
zenador
e13c28bd4a
Use a function to determine if an aggregation function is experimental ( #15331 )
...
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
2024-11-15 15:09:50 +01:00
Neeraj Gartia
789c9b1a5e
[BUGFIX] PromQL: Corrects the behaviour of some operator and aggregators with Native Histograms ( #15245 )
...
PromQL: Correct the behaviour of some operator and aggregators with Native Histograms
---------
Signed-off-by: Neeraj Gartia <neerajgartia211002@gmail.com>
2024-11-12 15:37:05 +01:00
Fiona Liao
c599d37668
Always return unknown hint for first sample in non-gauge histogram chunk ( #15343 )
...
Always return unknown hint for first sample in non-gauge histogram chunk
---------
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
Co-authored-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2024-11-12 15:14:06 +01:00
Björn Rabenstein
b4c0a5b394
Merge pull request #15169 from jhesketh/jhesketh/clamp
...
Clamp functions should ignore native histograms
2024-11-12 14:56:12 +01:00
Ben Kochie
628bbd2682
Update linting ( #15369 )
...
* Ignore all node_modules dirs.
* Update Makefile.common golangci-lint to match CI pipeline.
Signed-off-by: SuperQ <superq@gmail.com>
2024-11-12 13:27:39 +01:00
Ben Kochie
869addfec8
Enable auto-gomaxprocs by default ( #15378 )
...
Enable the `auto-gomaxprocs` feature flag by default.
* Add command line flag `--no-auto-gomaxprocs` to disable.
Signed-off-by: SuperQ <superq@gmail.com>
2024-11-12 13:27:01 +01:00
Bryan Boreham
49999b8a90
Merge pull request #15210 from bboreham/faster-lowercase
...
FastRegexMatcher: use stack memory for lowercase copy of string
2024-11-12 11:46:08 +00:00
Bryan Boreham
f0bd5fdcc6
Merge pull request #15226 from aniketnk/i15185
...
Parallelize tests in cmd/promtool/
2024-11-12 11:40:30 +00:00
Julien
c02a66a612
Merge pull request #15348 from prometheus/superq/sigv4
...
Update sigv4 library
2024-11-12 12:20:29 +01:00
Julien
e9179cb240
Merge pull request #15011 from roidelapluie/fixreload
...
Fix auto reload when a config file with a syntax error is reverted
2024-11-12 11:55:21 +01:00
Joshua Hesketh
ed2668bbda
Merge branch 'main' into jhesketh/clamp
...
Signed-off-by: Joshua Hesketh <josh@nitrotech.org>
2024-11-12 10:20:58 +11:00
Ben Kochie
0f0deb77a2
Enable auto-gomemlimit by default ( #15372 )
...
Enable the `auto-gomemlimit` feature flag by default.
* Add command line flag `--no-auto-gomemlimit` to disable.
Signed-off-by: SuperQ <superq@gmail.com>
2024-11-11 18:26:38 +01:00
Ben Ye
140f4aa9ae
feat: Allow customizing TSDB postings decoder ( #13567 )
...
* allow customizing TSDB postings decoder
---------
Signed-off-by: Ben Ye <benye@amazon.com>
2024-11-11 07:59:24 +01:00
Ben Ye
f9057544cb
Fix AllPostings added twice ( #13893 )
...
* handle all postings added twice
---------
Signed-off-by: Ben Ye <benye@amazon.com>
2024-11-10 18:17:21 +01:00
SuperQ
bc1bc5c118
Update sigv4 library
...
Migrate use of prometheus/common/sigv4 to prometheus/sigv4.
Related to: https://github.com/prometheus/common/issues/709
Signed-off-by: SuperQ <superq@gmail.com>
2024-11-08 22:35:44 +01:00
Bartlomiej Plotka
76432aaf4e
Merge pull request #15220 from prometheus/nhcb-scrape-optimize
...
perf(nhcb): scrape optimize
2024-11-08 19:02:48 +01:00
Aniket Kaulavkar
650abaccce
Parallelize tests in cmd/promtool/
...
Signed-off-by: Aniket Kaulavkar <aniket.kaulavkar@gmail.com>
2024-11-08 21:54:08 +05:30
Ben Kochie
4a69ce1861
Merge pull request #15363 from prometheus/superq/golangci-lint
...
Update golangci-lint
2024-11-08 15:56:43 +00:00
SuperQ
5e8de28aec
Update golangci-lint
...
Update to the latest golangci-lint version.
Signed-off-by: SuperQ <superq@gmail.com>
2024-11-08 15:31:03 +01:00
Ben Kochie
9383f9e430
Merge pull request #15303 from prometheus/dependabot/go_modules/github.com/prometheus/exporter-toolkit-0.13.1
...
chore(deps): bump github.com/prometheus/exporter-toolkit from 0.13.0 to 0.13.1
2024-11-08 14:09:53 +00:00
Ben Kochie
5f1992b9ef
Merge pull request #15284 from prometheus/dependabot/github_actions/actions/upload-artifact-4.4.3
...
chore(deps): bump actions/upload-artifact from 4.4.0 to 4.4.3
2024-11-08 14:08:30 +00:00
Ben Kochie
6207b26896
Merge pull request #15305 from prometheus/dependabot/github_actions/scripts/actions/checkout-4.2.2
...
chore(deps): bump actions/checkout from 4.2.0 to 4.2.2 in /scripts
2024-11-08 14:08:01 +00:00
Julien
b8af062578
Merge pull request #15288 from prometheus/dependabot/go_modules/go-opentelemetry-io-f31cf86099
...
chore(deps): bump the go-opentelemetry-io group with 6 updates
2024-11-08 14:34:06 +01:00
Arthur Silva Sens
03995775a7
Allow UTF-8 characters in metric and label names as opt-in feature ( #15258 )
...
* Allow UTF-8 characters in metric and label names as opt-in feature
---------
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
2024-11-08 10:02:48 -03:00
dependabot[bot]
405b088d6d
chore(deps): bump actions/upload-artifact from 4.4.0 to 4.4.3
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 4.4.0 to 4.4.3.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](50769540e7...b4b15b8c7c
)
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-11-08 08:50:27 +00:00
Ben Kochie
d3074b39c3
Merge pull request #15289 from prometheus/dependabot/github_actions/golangci/golangci-lint-action-6.1.1
...
chore(deps): bump golangci/golangci-lint-action from 6.1.0 to 6.1.1
2024-11-08 08:49:34 +00:00
Ben Kochie
99759990f6
Merge pull request #15285 from prometheus/dependabot/github_actions/actions/checkout-4.2.2
...
Signed-off-by: Ben Kochie <superq@gmail.com>
2024-11-08 08:49:09 +00:00
dependabot[bot]
3aab02c63b
chore(deps): bump github.com/prometheus/exporter-toolkit
...
Bumps [github.com/prometheus/exporter-toolkit](https://github.com/prometheus/exporter-toolkit ) from 0.13.0 to 0.13.1.
- [Release notes](https://github.com/prometheus/exporter-toolkit/releases )
- [Changelog](https://github.com/prometheus/exporter-toolkit/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prometheus/exporter-toolkit/compare/v0.13.0...v0.13.1 )
---
updated-dependencies:
- dependency-name: github.com/prometheus/exporter-toolkit
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-11-07 09:08:53 +00:00
Julien
fc3d19725d
Merge pull request #15336 from roidelapluie/update-common
...
Update prometheus/common
2024-11-07 10:07:14 +01:00
Arthur Silva Sens
96c2fe04e7
Merge pull request #15328 from prometheus/deadcode
...
chore: Remove dead code
2024-11-06 13:20:53 -03:00
Bryan Boreham
f42b37ff2f
[BUGFIX] TSDB: Fix race on stale values in headAppender ( #15322 )
...
* [BUGFIX] TSDB: Fix race on stale values in headAppender
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
* Simplify
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
---------
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2024-11-06 16:51:39 +01:00
Matthieu MOREL
af1a19fc78
enable errorf rule from perfsprint linter
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2024-11-06 16:50:36 +01:00
Simon Pasquier
37f3f3f2db
Fix scrape failure logs
...
Before this change, logs would show like:
```
{...,"target":"http://localhost:8080/metrics ","!BADKEY":"Get ..."}
```
After this change
```
{...,"msg":"Get ...","job_name":...,"target":...}
```
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2024-11-06 15:38:47 +01:00
dependabot[bot]
160a4801d2
chore(deps): bump golangci/golangci-lint-action from 6.1.0 to 6.1.1
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 6.1.0 to 6.1.1.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](aaa42aa062...971e284b60
)
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-11-06 10:29:01 +00:00
dependabot[bot]
d60cdcdac8
chore(deps): bump actions/checkout from 4.2.0 to 4.2.2
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4.2.0 to 4.2.2.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](d632683dd7...11bd71901b
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-11-06 10:29:01 +00:00
Bryan Boreham
bac1fa6149
Merge pull request #15323 from bboreham/enable-race
...
CI Build: re-enable race detector
2024-11-06 10:27:54 +00:00
Bryan Boreham
a7793b1010
Merge pull request #15327 from prometheus/merge-2.55-into-main2
...
Merge 2.55 into main
2024-11-06 10:11:30 +00:00
Julius Volz
3c5551df68
Merge pull request #15340 from prometheus/fix/empty-metric-name-formatting
...
Fix selector / series formatting for empty metric names
2024-11-05 16:48:46 +01:00
Julien
75626c4ce8
Merge pull request #15295 from prometheus/dependabot/go_modules/github.com/envoyproxy/go-control-plane-0.13.1
...
chore(deps): bump github.com/envoyproxy/go-control-plane from 0.13.0 to 0.13.1
2024-11-05 16:37:25 +01:00
Julius Volz
c1f8036228
Fix selector / series formatting for empty metric names
...
Fixes https://github.com/prometheus/prometheus/issues/15335
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-11-05 16:12:05 +01:00
dependabot[bot]
3294b7d58b
chore(deps): bump actions/checkout from 4.2.0 to 4.2.2 in /scripts
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4.2.0 to 4.2.2.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](d632683dd7...11bd71901b
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-11-05 15:10:10 +00:00
Julien
60c1d7ae30
Merge pull request #15306 from prometheus/dependabot/github_actions/scripts/actions/setup-go-5.1.0
...
chore(deps): bump actions/setup-go from 5.0.2 to 5.1.0 in /scripts
2024-11-05 16:09:01 +01:00
Julien
dd76c98240
Merge pull request #15304 from prometheus/dependabot/github_actions/scripts/golangci/golangci-lint-action-6.1.1
...
chore(deps): bump golangci/golangci-lint-action from 6.1.0 to 6.1.1 in /scripts
2024-11-05 16:07:07 +01:00
dependabot[bot]
b8d06c79ea
chore(deps): bump the go-opentelemetry-io group with 6 updates
...
Bumps the go-opentelemetry-io group with 6 updates:
| Package | From | To |
| --- | --- | --- |
| [go.opentelemetry.io/collector/pdata](https://github.com/open-telemetry/opentelemetry-collector ) | `1.16.0` | `1.18.0` |
| [go.opentelemetry.io/collector/semconv](https://github.com/open-telemetry/opentelemetry-collector ) | `0.110.0` | `0.112.0` |
| [go.opentelemetry.io/otel/exporters/otlp/otlptrace](https://github.com/open-telemetry/opentelemetry-go ) | `1.30.0` | `1.31.0` |
| [go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc](https://github.com/open-telemetry/opentelemetry-go ) | `1.30.0` | `1.31.0` |
| [go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp](https://github.com/open-telemetry/opentelemetry-go ) | `1.30.0` | `1.31.0` |
| [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go ) | `1.30.0` | `1.31.0` |
Updates `go.opentelemetry.io/collector/pdata` from 1.16.0 to 1.18.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/pdata/v1.16.0...pdata/v1.18.0 )
Updates `go.opentelemetry.io/collector/semconv` from 0.110.0 to 0.112.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.110.0...v0.112.0 )
Updates `go.opentelemetry.io/otel/exporters/otlp/otlptrace` from 1.30.0 to 1.31.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases )
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.30.0...v1.31.0 )
Updates `go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc` from 1.30.0 to 1.31.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases )
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.30.0...v1.31.0 )
Updates `go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp` from 1.30.0 to 1.31.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases )
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.30.0...v1.31.0 )
Updates `go.opentelemetry.io/otel/sdk` from 1.30.0 to 1.31.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases )
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.30.0...v1.31.0 )
---
updated-dependencies:
- dependency-name: go.opentelemetry.io/collector/pdata
dependency-type: direct:production
update-type: version-update:semver-minor
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
- dependency-name: go.opentelemetry.io/otel/exporters/otlp/otlptrace
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-opentelemetry-io
- dependency-name: go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-opentelemetry-io
- dependency-name: go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-opentelemetry-io
- dependency-name: go.opentelemetry.io/otel/sdk
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-opentelemetry-io
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-11-05 14:59:52 +00:00
dependabot[bot]
07ea8d1aeb
chore(deps): bump github.com/envoyproxy/go-control-plane
...
Bumps [github.com/envoyproxy/go-control-plane](https://github.com/envoyproxy/go-control-plane ) from 0.13.0 to 0.13.1.
- [Release notes](https://github.com/envoyproxy/go-control-plane/releases )
- [Changelog](https://github.com/envoyproxy/go-control-plane/blob/main/CHANGELOG.md )
- [Commits](https://github.com/envoyproxy/go-control-plane/compare/v0.13.0...v0.13.1 )
---
updated-dependencies:
- dependency-name: github.com/envoyproxy/go-control-plane
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-11-05 14:59:00 +00:00
Julien
be9f488067
Merge pull request #15291 from prometheus/dependabot/go_modules/google.golang.org/api-0.204.0
...
chore(deps): bump google.golang.org/api from 0.199.0 to 0.204.0
2024-11-05 15:58:10 +01:00
Julien
05f618147a
Merge pull request #15286 from prometheus/dependabot/github_actions/actions/setup-node-4.1.0
...
chore(deps): bump actions/setup-node from 4.0.4 to 4.1.0
2024-11-05 15:57:47 +01:00