Levi Harrison
bf264f2021
Add pod_container_image label to docs ( #11146 )
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2 years ago
Björn Rabenstein
bcd548c88b
Merge pull request #10076 from mtfoley/docs-deriv
...
docs: update function docs on deriv
2 years ago
Julius Volz
d33ce990b9
Update Go dependencies ahead of v2.38 ( #11141 )
...
* Update Go dependencies ahead of v2.38
I skipped an update for the Azure client libraries because that was too
involved and needs some migration work from Azure SD maintainers.
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Run "go mod tidy" again
Signed-off-by: Julius Volz <julius.volz@gmail.com>
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 years ago
Karl Piplies
cc469e0085
documentation for the loadbalancerip
...
Signed-off-by: Karl Piplies <karl.piplies@mercedes-benz.com>
2 years ago
Karl Piplies
3782cb40d5
add loadbalancerip to service labels
...
Signed-off-by: Karl Piplies <karl.piplies@mercedes-benz.com>
2 years ago
Levi Harrison
fa9bc5184a
Update and fix interface ( #11131 )
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2 years ago
dependabot[bot]
d91621890a
build(deps): bump github.com/hetznercloud/hcloud-go ( #11096 )
...
Bumps [github.com/hetznercloud/hcloud-go](https://github.com/hetznercloud/hcloud-go ) from 1.35.0 to 1.35.2.
- [Release notes](https://github.com/hetznercloud/hcloud-go/releases )
- [Changelog](https://github.com/hetznercloud/hcloud-go/blob/main/CHANGES.md )
- [Commits](https://github.com/hetznercloud/hcloud-go/compare/v1.35.0...v1.35.2 )
---
updated-dependencies:
- dependency-name: github.com/hetznercloud/hcloud-go
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
c8df08109b
build(deps): bump github.com/go-zookeeper/zk from 1.0.2 to 1.0.3 ( #11108 )
...
Bumps [github.com/go-zookeeper/zk](https://github.com/go-zookeeper/zk ) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/go-zookeeper/zk/releases )
- [Commits](https://github.com/go-zookeeper/zk/compare/v1.0.2...v1.0.3 )
---
updated-dependencies:
- dependency-name: github.com/go-zookeeper/zk
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
583f603387
build(deps): bump google.golang.org/api from 0.90.0 to 0.91.0 ( #11129 )
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.90.0 to 0.91.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.90.0...v0.91.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
2773aa2a72
build(deps): bump github.com/go-openapi/strfmt from 0.21.2 to 0.21.3 ( #11114 )
...
Bumps [github.com/go-openapi/strfmt](https://github.com/go-openapi/strfmt ) from 0.21.2 to 0.21.3.
- [Release notes](https://github.com/go-openapi/strfmt/releases )
- [Commits](https://github.com/go-openapi/strfmt/compare/v0.21.2...v0.21.3 )
---
updated-dependencies:
- dependency-name: github.com/go-openapi/strfmt
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
998decc55c
build(deps): bump github.com/ionos-cloud/sdk-go/v6 from 6.1.1 to 6.1.2 ( #11121 )
...
Bumps [github.com/ionos-cloud/sdk-go/v6](https://github.com/ionos-cloud/sdk-go ) from 6.1.1 to 6.1.2.
- [Release notes](https://github.com/ionos-cloud/sdk-go/releases )
- [Changelog](https://github.com/ionos-cloud/sdk-go/blob/master/docs/CHANGELOG.md )
- [Commits](https://github.com/ionos-cloud/sdk-go/compare/v6.1.1...v6.1.2 )
---
updated-dependencies:
- dependency-name: github.com/ionos-cloud/sdk-go/v6
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
eed5b14a13
build(deps): bump github.com/Azure/go-autorest/autorest ( #11122 )
...
Bumps [github.com/Azure/go-autorest/autorest](https://github.com/Azure/go-autorest ) from 0.11.27 to 0.11.28.
- [Release notes](https://github.com/Azure/go-autorest/releases )
- [Changelog](https://github.com/Azure/go-autorest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/Azure/go-autorest/compare/autorest/v0.11.27...autorest/v0.11.28 )
---
updated-dependencies:
- dependency-name: github.com/Azure/go-autorest/autorest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Chris Sinjakli
fba20567c0
Document permissions needed for `ec2_sd_configs` ( #11119 )
...
Currently, it's not explicitly called out which permissions are needed
for service discovery of EC2 instances. It's not super hard to figure
out, but it did involve a bit of guesswork when I did it yesterday, and
I figure it's worth saving people that effort.
I've also seen examples around the internet where people are granting
much broader permissions than they need to, so maybe we can save on that
by explicitly saying what's needed.
Signed-off-by: Chris Sinjakli <chris@sinjakli.co.uk>
2 years ago
dependabot[bot]
8bcad096ed
build(deps): bump github.com/digitalocean/godo from 1.81.0 to 1.82.0 ( #11117 )
...
Bumps [github.com/digitalocean/godo](https://github.com/digitalocean/godo ) from 1.81.0 to 1.82.0.
- [Release notes](https://github.com/digitalocean/godo/releases )
- [Changelog](https://github.com/digitalocean/godo/blob/main/CHANGELOG.md )
- [Commits](https://github.com/digitalocean/godo/compare/v1.81.0...v1.82.0 )
---
updated-dependencies:
- dependency-name: github.com/digitalocean/godo
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
daeb7fe469
build(deps): bump github.com/Azure/go-autorest/autorest/adal ( #11110 )
...
Bumps [github.com/Azure/go-autorest/autorest/adal](https://github.com/Azure/go-autorest ) from 0.9.20 to 0.9.21.
- [Release notes](https://github.com/Azure/go-autorest/releases )
- [Changelog](https://github.com/Azure/go-autorest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/Azure/go-autorest/compare/autorest/adal/v0.9.20...autorest/adal/v0.9.21 )
---
updated-dependencies:
- dependency-name: github.com/Azure/go-autorest/autorest/adal
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
dd0a11ae7a
build(deps): bump k8s.io/client-go from 0.24.2 to 0.24.3 ( #11111 )
...
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go ) from 0.24.2 to 0.24.3.
- [Release notes](https://github.com/kubernetes/client-go/releases )
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/kubernetes/client-go/compare/v0.24.2...v0.24.3 )
---
updated-dependencies:
- dependency-name: k8s.io/client-go
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Xiaochao Dong
1078081aec
Fix race condition when updating lastSeriesID during loading chunk snapshot ( #11099 )
...
Signed-off-by: Xiaochao Dong (@damnever ) <the.xcdong@gmail.com>
2 years ago
dependabot[bot]
4035b38c59
build(deps): bump golang.org/x/tools from 0.1.11 to 0.1.12 ( #11101 )
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.1.11 to 0.1.12.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.1.11...v0.1.12 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Julien Pivotto
765320d99e
Update opentelemetry ( #11105 )
...
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2 years ago
Julius Volz
e33720e98e
Add Julius as release shepherd for v2.38 ( #11106 )
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 years ago
Augustin Husson
f486efbb9a
codemirror-promql: add method to fetch flags in prometheus client ( #11090 )
...
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2 years ago
rilehudd
d943f39f22
Updates RELEASE.md to include [SECURITY] change log tag
...
Signed-off-by: rilehudd <51207004+rilehudd@users.noreply.github.com>
2 years ago
David Leadbeater
d677ec489e
Support using MX records for DNS discovery ( #10099 )
...
It's currently possible to use blackbox_exporter to probe MX records
themselves. However it's not possible to do an end-to-end test, like is
possible with SRV records. This makes it possible to use MX records as a
source of hostnames in the same way as SRV records.
Signed-off-by: David Leadbeater <dgl@dgl.cx>
2 years ago
Bryan Boreham
a7f19b5775
labels: add a test for JSON and YAML marshalling
...
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2 years ago
Bryan Boreham
10699c37a3
labels: test BytesWithoutLabels does not remove __name__ by default
...
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2 years ago
Bryan Boreham
d46ef0aa8e
labels: tweak BenchmarkLabels_Get()
...
So the benchmark works without requiring `Labels` internals to be a slice.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2 years ago
Bryan Boreham
24ebff9c4a
labels: don't test that Hash() works on unordered labels
...
Labels are required to be ordered.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2 years ago
Bryan Boreham
fb2d883f1e
labels: test Compare without knowing the exact result
...
Only the sign of the result is important
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2 years ago
Julien Pivotto
a6c6155092
Fix YAML and JSON doc section ( #11023 )
...
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2 years ago
dependabot[bot]
7bbc19de75
build(deps): bump k8s.io/apimachinery from 0.24.2 to 0.24.3 ( #11097 )
...
Bumps [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery ) from 0.24.2 to 0.24.3.
- [Release notes](https://github.com/kubernetes/apimachinery/releases )
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.24.2...v0.24.3 )
---
updated-dependencies:
- dependency-name: k8s.io/apimachinery
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
a23e950879
build(deps): bump github.com/aws/aws-sdk-go from 1.44.47 to 1.44.67 ( #11095 )
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.44.47 to 1.44.67.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.47...v1.44.67 )
---
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
63662fa140
build(deps): bump google.golang.org/grpc from 1.47.0 to 1.48.0 ( #11083 )
...
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.47.0 to 1.48.0.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.47.0...v1.48.0 )
---
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
387914f5f6
build(deps): bump github.com/ionos-cloud/sdk-go/v6 from 6.1.0 to 6.1.1 ( #11092 )
...
Bumps [github.com/ionos-cloud/sdk-go/v6](https://github.com/ionos-cloud/sdk-go ) from 6.1.0 to 6.1.1.
- [Release notes](https://github.com/ionos-cloud/sdk-go/releases )
- [Changelog](https://github.com/ionos-cloud/sdk-go/blob/master/docs/CHANGELOG.md )
- [Commits](https://github.com/ionos-cloud/sdk-go/compare/v6.1.0...v6.1.1 )
---
updated-dependencies:
- dependency-name: github.com/ionos-cloud/sdk-go/v6
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
ebb42e19f8
build(deps): bump github.com/hashicorp/consul/api from 1.13.0 to 1.13.1 ( #11093 )
...
Bumps [github.com/hashicorp/consul/api](https://github.com/hashicorp/consul ) from 1.13.0 to 1.13.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.13.0...api/v1.13.1 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/consul/api
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
6e8feaa6c0
build(deps): bump google.golang.org/api from 0.86.0 to 0.90.0 ( #11081 )
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.86.0 to 0.90.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.86.0...v0.90.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
99165d4879
build(deps): bump go.opentelemetry.io/otel from 1.7.0 to 1.8.0 ( #11079 )
...
Bumps [go.opentelemetry.io/otel](https://github.com/open-telemetry/opentelemetry-go ) from 1.7.0 to 1.8.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.7.0...v1.8.0 )
---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
d583bdf159
build(deps): bump actions/cache from 3.0.4 to 3.0.5 ( #11078 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3.0.4...v3.0.5 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
4b00edb9b2
build(deps): bump bufbuild/buf-setup-action from 1.6.0 to 1.7.0 ( #11077 )
...
Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action ) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases )
- [Commits](https://github.com/bufbuild/buf-setup-action/compare/v1.6.0...v1.7.0 )
---
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Abirdcfly
465558e93a
fix minor code unreachability error ( #11040 )
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2 years ago
dependabot[bot]
c2c5c105c4
build(deps): bump github.com/prometheus/common ( #11086 )
...
Bumps [github.com/prometheus/common](https://github.com/prometheus/common ) from 0.36.0 to 0.37.0.
- [Release notes](https://github.com/prometheus/common/releases )
- [Commits](https://github.com/prometheus/common/compare/v0.36.0...v0.37.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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Vilius Pranckaitis
4660656312
Allow setting custom lookback delta for instant queries ( #9946 )
...
* Allow setting custom lookback delta for instant queries
Signed-off-by: Vilius Pranckaitis <vpranckaitis@gmail.com>
2 years ago
Jorge Luis Betancourt
595d134354
web ui: Tweak colors in the dark theme to improve contrast ratio ( #11068 )
...
* Tweak colors in the dark theme to improve contrast
Some colors from the dark theme used in the query editor have a very low
contrast ratio with the background.
Signed-off-by: Jorge Luis Betancourt Gonzalez <jorge-luis.betancourt@trivago.com>
* Avoid duplicated function call when in dark mode
Co-authored-by: Julius Volz <julius.volz@gmail.com>
Signed-off-by: Jorge Luis Betancourt Gonzalez <jorge-luis.betancourt@trivago.com>
* Apply styles for the matching bracket when focused in dark mode
Signed-off-by: Jorge Luis Betancourt Gonzalez <jorge-luis.betancourt@trivago.com>
* Improve style of the matching brackets when focused
Signed-off-by: Jorge Luis Betancourt Gonzalez <jorge-luis.betancourt@trivago.com>
Co-authored-by: Julius Volz <julius.volz@gmail.com>
2 years ago
Tobias Klauser
7ef6f287cf
util/runtime: use ByteSliceToString from golang.org/x/sys/unix in Uname ( #11070 )
...
Use unix.ByteSliceToString to convert Utsname []byte fields to strings.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2 years ago
yngwiewang
be330ac035
add __meta_kubernetes_service_port_number ( #11053 )
...
Signed-off-by: yngwiewang <yngwiewang@163.com>
Co-authored-by: yngwiewang <yngwiewang@163.com>
2 years ago
Ben Kochie
58ba1d0afa
Update go-restful library ( #11051 )
...
Includes upstream CORS fixes.
Signed-off-by: SuperQ <superq@gmail.com>
2 years ago
Bryan Boreham
00ec720c29
tsdb: extract functions to encode and decode labels ( #11045 )
...
* tsdb/record: Extract functions to encode and decode labels
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
* tsdb: make use of Encode/Decode Labels
Simplify the code by re-using routines from tsdb/record.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2 years ago
Nidhi Dhamnani
d9c650b92e
Fixed typo in UI README.md ( #11057 )
...
Signed-off-by: Nidhi Dhamnani <nidhidhamnani@gmail.com>
2 years ago
Frederic Branczyk
414c3e549c
Merge pull request #11002 from yngwiewang/feature/k8s-service-port-number
...
feat:(kubernetes_sd): add __meta_kubernetes_service_port_number (#10945 )
2 years ago
Julius Volz
b8af4632be
Allow formatting PromQL expressions in the UI ( #11039 )
...
* Allow formatting PromQL expressions in the UI
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Improve error handling, also catch HTTP errors
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Remove now-unneeded async property
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Disable format button when already formatted
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Disable format button when there are linter errors
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Remove disabling of format button again for linter errors
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 years ago
Julius Volz
b57deb6eb0
Add /api/v1/format_query API endpoint for formatting queries ( #11036 )
...
* Add /api/v1/format_query API endpoint for formatting queries
This uses the formatting functionality introduced in
https://github.com/prometheus/prometheus/pull/10544 .
I've chosen "query" instead of "expr" in both the endpoint and parameter
names to stay consistent with the existing API endpoints. Otherwise, I
would have preferred to use the term "expr".
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Add docs for /api/v1/format_query endpoint
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Add note that formatting expressions removes comments
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2 years ago