53 Commits
Author SHA1 Message Date
Julius Hinze 1766a31ff9 security: bump go to 1.26.10 (#20156)
Signed-off-by: Julius Hinze <julius.hinze@grafana.com>
2026-10-23 08:09:33 +00:00
renovate[bot]andArve Knudsen 86d426ce82 Update module github.com/hashicorp/consul/api to v1.35.0 (#20139)
* Update module github.com/hashicorp/consul/api to v1.35.0

---------

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2026-10-22 08:08:50 +00:00
Owen WilliamsandClaude Opus 5.5 c070a585b7 Update go and npm dependencies (#20017)
Update dependencies, with some changes worth noting:

* Adjusted code for memlimit API change
* moved from go.yaml.in/yaml/v4 to github.com/pb33f/go-yaml
* custom js resolver to fix build issue

---------

Signed-off-by: Owen Williams <owen.williams@grafana.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 12:55:22 -04:00
renovate[bot] 9a7d196a2b Update module golang.org/x/net to v0.60.0 [SECURITY] (#19979)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-14 10:19:56 -04:00
renovate[bot] bd6e362d3d fix(deps): update module github.com/bufbuild/buf to v1.73.0 (#19773)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-22 08:05:28 +02:00
renovate[bot] 632d5c950e fix(deps): update module github.com/hashicorp/consul/api to v1.34.5 (#19765)
* fix(deps): update module github.com/hashicorp/consul/api to v1.34.5

---------

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-21 09:09:06 +00:00
renovate[bot] 3dd2b7bfcf chore(deps): update module google.golang.org/grpc to v1.83.2 [security] (#19667)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-09 09:48:03 +02:00
renovate[bot] e3f9f21fed chore(deps): update module google.golang.org/grpc to v1.83.1 [security] (#19568)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-07 08:04:41 +00:00
renovate[bot] afc16aab85 chore(deps): update module golang.org/x/crypto to v0.56.0 [security] (#19575)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-07 09:04:21 +02:00
dongjiang1989 c2e0c25db0 config: upgrade sigv4 to v0.5.0 and document new fields
Bump github.com/prometheus/sigv4 from v0.4.1 to v0.5.0.

The new release adds SessionName and Tags fields for STS AssumeRole
(prometheus/sigv4#76). The updated NewSigV4RoundTripper signature uses
variadic options and remains backward-compatible, so no Prometheus code
changes are required beyond the version bump.

service_name was already part of the struct in v0.4.1 but was missing
from the documentation — it is now documented alongside the new fields.

Also replace deprecated expfmt.Fmt* constants with expfmt.NewFormat
(expfmt.Type*) in web/federate.go to fix the SA1019 staticcheck failure
introduced by the prometheus/common v0.71.0 transitive bump.

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
2026-09-02 18:20:30 +08:00
renovate[bot] e06b2dc5a6 chore(deps): update module golang.org/x/crypto to v0.55.0 [security] (#19552)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-29 10:13:44 +02:00
renovate[bot]andArve Knudsen 5c816f70b1 fix(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2 to v2.30.0 (#19496)
* tracing: update OpenTelemetry to v1.45.0
* fix(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2 to v2.30.0

---------

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-27 06:01:55 +00:00
renovate[bot]andArve Knudsen 0d1ae36641 fix(deps): update kubernetes go dependencies to v0.36.4 (#18757)
* fix(deps): update kubernetes go dependencies to v0.36.4
* build: bump minimum Go version to 1.26.0

Align all workspace modules with the Kubernetes v0.36.4 requirement and adopt errors.AsType where required by the Go 1.26 lint baseline.

---------

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2026-08-26 12:45:32 +00:00
renovate[bot] ed00fb040b Update module github.com/google/cel-go to v0.30.0 [SECURITY] (#19451)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-26 11:11:15 +02:00
renovate[bot] d6d638b78f chore(deps): update module golang.org/x/mod to v0.40.0 [security] (#19419)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-26 10:54:07 +02:00
renovate[bot]andArve Knudsen e744cad74c fix(deps): update module github.com/moby/moby/client to v0.5.1 (#19357)
* fix(deps): update module github.com/moby/moby/client to v0.5.1
* build: bump minimum Go version to 1.25.10

---------

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2026-08-10 08:31:43 +00:00
Ayoub Mrini 98cbdb546b running make update-all-go-deps
Deps that require go >= 1.26 (consul/api, k8s.io/*) were kept at
their previous versions to maintain the go 1.25 directive.

Signed-off-by: Ayoub Mrini <ayoubmrini424@gmail.com>
2026-07-28 11:28:26 +02:00
renovate[bot] 94c987ebb0 Update module golang.org/x/text to v0.39.0 [SECURITY] 2026-07-22 11:03:55 +00:00
renovate[bot] 375febeb4f Update module golang.org/x/net to v0.56.0 [SECURITY] (#19257)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-22 06:58:05 +02:00
renovate[bot] 1d56153b8e Upgrade consul/api to v1.33.7 (#19122)
Upgrade consul/api to v1.33.7, as well as serf to v0.10.4, to get rid of
vulnerable mapstructure dependency.

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2026-07-08 11:49:00 +02:00
renovate[bot]andArve Knudsen c59797d579 fix(deps): update module github.com/pb33f/libopenapi-validator to v0.13.11 (#18987)
* fix(deps): update module github.com/pb33f/libopenapi-validator to v0.13.11

* build: bump go.work go directive to 1.25.7 to match go.mod

libopenapi v0.38.1 and libopenapi-validator v0.13.11 declare go 1.25.7, which raised the root go.mod directive in the previous commit. The tracked go.work was left at 1.25.0.

A workspace's go directive must be >= every member module's, so Go commands (build, test, mod verify, lint) fail in workspace mode until go.work matches.

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

---------

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2026-06-23 10:17:01 +00:00
George KrajcsovitsandClaude Opus 4.8 f579093cd8 chore: update Go dependencies for 3.13 release (#18938)
Run `make update-all-go-deps` with the Go toolchain pinned to 1.25.0
(`GOTOOLCHAIN=go1.25.0`) so the `go` directive stays at 1.25.0 and the
project keeps building with any Go 1.25.x. Dependency updates that would
raise their own minimum Go past 1.25.0 (Kubernetes v0.36.x, Consul
api >= v1.34, bufbuild/buf v1.70, google.golang.org/api v0.284) are left at
their current versions and can be picked up once the project moves to Go 1.26.

github.com/prometheus/common is updated to v0.68.1, which removed the
expfmt.WithUnit() encoder option (the unit is now written automatically when
set). Drop the now-removed option from the scrape manager test; it was a
no-op there because the test metric does not set a unit.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-17 11:39:43 +02:00
renovate[bot] d2b353eca1 chore(deps): update module github.com/quic-go/quic-go to v0.59.1 [security] 2026-06-04 12:45:00 +00:00
renovate[bot] a2f31b0154 chore(deps): update module golang.org/x/crypto to v0.52.0 [security] 2026-05-29 15:10:15 +00:00
bwplotka 4158cac050 upgade Go modules
Signed-off-by: bwplotka <bwplotka@gmail.com>
2026-05-28 15:58:39 +01:00
bwplotka d36e9114cb chore: Upgrade Go deps
Signed-off-by: bwplotka <bwplotka@gmail.com>
2026-05-11 12:10:00 +01:00
Julien Pivotto bcdc7cd80e chore: Go dependencies update before 3.11
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-03-26 10:56:14 +01:00
Ganesh Vernekar ccc3062521 Merge branch 'main' into codesome/merge-3.10
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
2026-02-25 17:33:06 -08:00
renovate[bot] 0acb25a093 fix(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2 to v2.28.0 (#18159)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-22 09:48:10 +01:00
Ganesh Vernekar 216ddb524e Rollback Go version to 1.25.0 in go.mod files
Signed-off-by: Ganesh Vernekar <ganesh.vernekar@reddit.com>
2026-02-11 14:40:52 -08:00
Ganesh Vernekar 1698aada1e Update Go dependencies for v3.10 release
Signed-off-by: Ganesh Vernekar <ganesh.vernekar@reddit.com>
2026-02-10 12:39:33 -08:00
dependabot[bot]andArve Knudsen effa3c5c25 chore(deps): bump github.com/hashicorp/consul/api from 1.32.0 to 1.33.2 (#17449)
Bumps [github.com/hashicorp/consul/api](https://github.com/hashicorp/consul) from 1.32.0 to 1.33.2.
- [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.32.0...api/v1.33.2)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/consul/api
  dependency-version: 1.33.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2026-02-10 08:24:26 +00:00
Julien 75f94903b3 Add OpenAPI 3.2 specification generation for Prometheus HTTP API (#17825)
* Add OpenAPI 3.2 specification generation for Prometheus HTTP API

This commit introduces an OpenAPI specification for the Prometheus API.
After testing multiple code-generation servers with built-in APIs, this
implementation uses an independent spec file outside of the critical path.
This spec file is tested with a framework present in this pull request.

The specification helps clients know which parameters they can use and is
served at /api/v1/openapi.yaml. The spec file will evolve with the
Prometheus API and has the same version number.

Downstream projects can tune the APIs presented in the spec file with
configuration options using the IncludePaths setting for path filtering.

In the future, there is room to generate a server from this spec file
(e.g. with interfaces), but this is out of scope for this pull request.

Architecture:
- Core OpenAPI infrastructure (openapi.go): Dynamic spec building,
  caching, and thread-safe spec generation
- Schema definitions (openapi_schemas.go): Complete type definitions
  for all API request and response types
- Path specifications (openapi_paths.go): Endpoint definitions with
  parameters, request bodies, and response schemas
- Examples (openapi_examples.go): Realistic request/response examples
- Helper functions (openapi_helpers.go): Reusable builders for common
  OpenAPI structures

Testing:
- Comprehensive test suite with golden file validation
- Test helpers package for API testing infrastructure
- OpenAPI compliance validation utilities

The golden file captures the complete specification for snapshot testing.
Update with: go test -run TestOpenAPIGolden -update-openapi-spec

REVIEWERS: The most important thing to check would be the OpenAPI golden
file (web/api/v1/testdata/openapi_golden.yaml). Test scenarios are important
as they test the actual OpenAPI spec validity.

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>

* Add OpenAPI 3.1 support with version selection

Add support for both OpenAPI 3.1 and 3.2 specifications with version
selection via openapi_version query parameter. Defaults to 3.1 for
broader compatibility

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>

* Enhance OpenAPI examples and add helper functions

- Add timestampExamples helper for consistent time formatting
- Add exampleMap helper to simplify example creation
- Improve example summaries with query details
- Add matrix result example for range vector queries

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>

* web/api: Add AtST method to test helper iterators

Implement the AtST() method required by chunkenc.Iterator interface
for FakeSeriesIterator and FakeHistogramSeriesIterator test helpers.
The method returns 0 as these test helpers don't use start timestamps

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>

* OpenAPI: Add minimum coverage test

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>

* OpenAPI: Improve examples handling

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>

---------

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-01-29 13:36:13 +01:00
Arthur Silva Sens c980c74f51 Update google/pprof to allow go 1.24.0 (#17843)
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
2026-01-13 06:32:12 +00:00
Ben Kochie e14795bbf4 Remove copyright date from headers (#17785)
Remove copyright dates from various files as part of [PROM-50].

[PROM-50]: https://github.com/prometheus/proposals/blob/main/proposals/0050-remove-copyright-dates.md

Signed-off-by: SuperQ <superq@gmail.com>
2026-01-05 13:46:21 +01:00
dependabot[bot] ff22779966 chore(deps): bump github.com/bufbuild/buf in /internal/tools (#17764)
Bumps [github.com/bufbuild/buf](https://github.com/bufbuild/buf) from 1.61.0 to 1.62.1.
- [Release notes](https://github.com/bufbuild/buf/releases)
- [Changelog](https://github.com/bufbuild/buf/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bufbuild/buf/compare/v1.61.0...v1.62.1)

---
updated-dependencies:
- dependency-name: github.com/bufbuild/buf
  dependency-version: 1.62.1
  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>
2026-01-04 15:50:55 +01:00
renovate[bot] 6b5bc17042 fix(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2 to v2.27.4 (#17746)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-31 12:00:37 +01:00
renovate[bot] a9f66529a7 chore(deps): update module github.com/quic-go/quic-go to v0.57.0 [security] (#17689)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-19 16:04:41 +01:00
Bryan Boreham 4c7377f543 Update Go dependencies (#17711)
By running `make update-all-go-deps`.

`hashicorp/consul/api` must be held at v1.32.1 because later versions
require Go 1.25 and we choose to ensure that Promethes builds with the
last two versions of Go.

Also: fix compilation errors in remote-write example.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2025-12-18 17:14:14 +00:00
renovate[bot] 872980e3bf chore(deps): update module golang.org/x/crypto to v0.45.0 [security] (#17690)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-15 12:46:58 +01:00
dependabot[bot] 817dde743c chore(deps): bump github.com/grpc-ecosystem/grpc-gateway/v2 (#17266)
Bumps [github.com/grpc-ecosystem/grpc-gateway/v2](https://github.com/grpc-ecosystem/grpc-gateway) from 2.27.1 to 2.27.2.
- [Release notes](https://github.com/grpc-ecosystem/grpc-gateway/releases)
- [Changelog](https://github.com/grpc-ecosystem/grpc-gateway/blob/main/.goreleaser.yml)
- [Commits](https://github.com/grpc-ecosystem/grpc-gateway/compare/v2.27.1...v2.27.2)

---
updated-dependencies:
- dependency-name: github.com/grpc-ecosystem/grpc-gateway/v2
  dependency-version: 2.27.2
  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>
2025-10-24 16:50:53 +02:00
dependabot[bot] 31b435bf50 chore(deps): bump github.com/daixiang0/gci in /internal/tools (#17267)
Bumps [github.com/daixiang0/gci](https://github.com/daixiang0/gci) from 0.13.6 to 0.13.7.
- [Release notes](https://github.com/daixiang0/gci/releases)
- [Commits](https://github.com/daixiang0/gci/compare/v0.13.6...v0.13.7)

---
updated-dependencies:
- dependency-name: github.com/daixiang0/gci
  dependency-version: 0.13.7
  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>
2025-10-22 11:33:32 +02:00
dependabot[bot] 29c3efa57f chore(deps): bump github.com/bufbuild/buf in /internal/tools (#17268)
Bumps [github.com/bufbuild/buf](https://github.com/bufbuild/buf) from 1.51.0 to 1.57.2.
- [Release notes](https://github.com/bufbuild/buf/releases)
- [Changelog](https://github.com/bufbuild/buf/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bufbuild/buf/compare/v1.51.0...v1.57.2)

---
updated-dependencies:
- dependency-name: github.com/bufbuild/buf
  dependency-version: 1.57.2
  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>
2025-10-22 10:38:19 +02:00
Duciwuci 070ffd7edb bump go version across all stages
Signed-off-by: Duciwuci <duciwuci@gmail.com>
2025-09-02 10:02:39 +02:00
dependabot[bot] d5d601201e build(deps): bump github.com/grpc-ecosystem/grpc-gateway/v2
---
updated-dependencies:
- dependency-name: github.com/grpc-ecosystem/grpc-gateway/v2
  dependency-version: 2.27.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-11 10:04:09 +00:00
Jan-Otto Kröpke 46f1389ce7 [BUILD] Remove Go toolchain line in internal/tools (#16516) 2025-04-29 12:12:34 +02:00
dependabot[bot] 58eeb3f6ac chore(deps): bump golang.org/x/net in /internal/tools
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.37.0 to 0.38.0.
- [Commits](https://github.com/golang/net/compare/v0.37.0...v0.38.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.38.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-17 18:08:37 +00:00
dependabot[bot] 9a122b32f0 chore(deps): bump github.com/bufbuild/buf in /internal/tools
Bumps [github.com/bufbuild/buf](https://github.com/bufbuild/buf) from 1.50.1 to 1.51.0.
- [Release notes](https://github.com/bufbuild/buf/releases)
- [Changelog](https://github.com/bufbuild/buf/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bufbuild/buf/compare/v1.50.1...v1.51.0)

---
updated-dependencies:
- dependency-name: github.com/bufbuild/buf
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-01 23:31:19 +00:00
dependabot[bot] 6bc3806ccc chore(deps): bump github.com/daixiang0/gci in /internal/tools
Bumps [github.com/daixiang0/gci](https://github.com/daixiang0/gci) from 0.13.5 to 0.13.6.
- [Release notes](https://github.com/daixiang0/gci/releases)
- [Commits](https://github.com/daixiang0/gci/compare/v0.13.5...v0.13.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-26 11:30:43 +00:00
Bryan Boreham fc7c2f77b3 [BUILD] Remove Go toolchain line
It doesn't reflect the version we use for CI builds, which is controlled
by `.promu.yml`.

As such, I cannot see any justification to keep this line: it isn't
necessary and it could confuse people.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2025-03-25 19:04:45 +00:00