Commit Graph

1591 Commits

Author SHA1 Message Date
Owen Williams ab363a3488 Merge remote-tracking branch 'origin/main' into owilliams/content-negotiation
Signed-off-by: Owen Williams <owen.williams@grafana.com>
2024-01-18 11:33:27 -05:00
Arthur Silva Sens d69fe9a802
Merge pull request #1426 from prometheus/dependabot/github_actions/github-actions-37565e1261
Bump the github-actions group with 3 updates
2024-01-17 17:49:31 -03:00
Arthur Silva Sens 38631c665b
chore: Move VersionCollector to collectors directory (#1427)
* collectors/version: Move to collectors directory and remove unrelated code.

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>

* examples: Add Version Collector example

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>

---------

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2024-01-15 10:07:52 +01:00
Owen Williams 59ea1b115b helpful debug 2024-01-09 13:20:21 -05:00
github-actions[bot] b7b88fa43a
Merge pull request #1425 from prometheus/dependabot/go_modules/golang.org/x/sys-0.16.0
Bump golang.org/x/sys from 0.15.0 to 0.16.0
2024-01-08 16:49:09 +00:00
dependabot[bot] f22329c034
Bump the github-actions group with 3 updates
Bumps the github-actions group with 3 updates: [actions/checkout](https://github.com/actions/checkout), [github/codeql-action](https://github.com/github/codeql-action) and [actions/setup-go](https://github.com/actions/setup-go).


Updates `actions/checkout` from 2.7.0 to 4.1.1
- [Release notes](https://github.com/actions/checkout/releases)
- [Commits](https://github.com/actions/checkout/compare/v2.7.0...v4.1.1)

Updates `github/codeql-action` from 1.1.39 to 3.23.0
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](231aa2c8a8...e5f05b81d5)

Updates `actions/setup-go` from 3.5.0 to 5.0.0
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v3.5.0...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-08 16:45:44 +00:00
dependabot[bot] 8ee2fdc899
Bump golang.org/x/sys from 0.15.0 to 0.16.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.15.0 to 0.16.0.
- [Commits](https://github.com/golang/sys/compare/v0.15.0...v0.16.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-08 16:45:35 +00:00
Alexey Michurin d9be4042d3
Simplification of middleware example (#1423)
Signed-off-by: Alexey Michurin <a.michurin@gmail.com>
2024-01-08 16:45:31 +00:00
Diogo Teles Sant'Anna 6636d6a23a
CI: Hash pin all GH actions + configure dependabot for those. (#1417)
undefined
2024-01-08 16:45:02 +00:00
Ben Kochie 185945e061
Merge pull request #1422 from prometheus/superq/version
Add version package
2024-01-08 14:38:57 +01:00
Owen Williams 4608aeeb51 update dep 2024-01-05 15:48:25 -05:00
SuperQ 3d4c27f03e
Add version package
Migrate the `version` package from `github.com/prometheus/common`
to `github.com/prometheus/client_golang` in order to break the circular
dependency.
* Make `version` a top level package because it uses `init()` to
  populate data.

Related to: https://github.com/prometheus/common/issues/58

Signed-off-by: SuperQ <superq@gmail.com>
2024-01-03 16:30:32 +01:00
github-actions[bot] 046e3203b6
Merge pull request #1420 from prometheus/dependabot/go_modules/google.golang.org/protobuf-1.32.0
Bump google.golang.org/protobuf from 1.31.0 to 1.32.0
2024-01-01 09:50:52 +00:00
dependabot[bot] 6ebfdd5d7d
Bump google.golang.org/protobuf from 1.31.0 to 1.32.0
Bumps google.golang.org/protobuf from 1.31.0 to 1.32.0.

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-01 09:47:25 +00:00
github-actions[bot] 034544a0ca
Merge pull request #1419 from prometheus/dependabot/go_modules/tutorial/whatsup/github.com/prometheus/client_golang-1.18.0
Bump github.com/prometheus/client_golang from 1.17.0 to 1.18.0 in /tutorial/whatsup
2024-01-01 09:44:08 +00:00
dependabot[bot] 9efc83a6b0
Bump github.com/prometheus/client_golang in /tutorial/whatsup
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.17.0 to 1.18.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.17.0...v1.18.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>
2024-01-01 09:42:39 +00:00
github-actions[bot] f87a86c3ad
Merge pull request #1418 from prometheus/dependabot/go_modules/examples/middleware/github.com/prometheus/client_golang-1.18.0
Bump github.com/prometheus/client_golang from 1.17.0 to 1.18.0 in /examples/middleware
2024-01-01 09:04:21 +00:00
dependabot[bot] 71f3940306
Bump github.com/prometheus/client_golang in /examples/middleware
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.17.0 to 1.18.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.17.0...v1.18.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>
2024-01-01 09:02:59 +00:00
Bartlomiej Plotka a88230e1e0
Merge pull request #1414 from prometheus/release-1.18
Merging 1.18 back to main
2023-12-28 07:10:46 +00:00
Arthur Silva Sens 0837d362b4
Merge pull request #1410 from prometheus/arthursens/cut-1.18.0
Add 1.18 changelog
2023-12-27 20:02:07 -03:00
Bartlomiej Plotka 53be91d121
Revert "change api http.client to interface"
(cherry picked from commit 2280fb19f6)

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2023-12-27 20:00:59 -03:00
Arthur Silva Sens 1a2d072480
Add 1.18 changelog
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2023-12-27 20:00:54 -03:00
Arthur Silva Sens 96f1aec289
Merge pull request #1411 from prometheus/revert-1387-main
Revert "change api http.client to interface"
2023-12-23 10:41:26 -03:00
Bartlomiej Plotka 2280fb19f6
Revert "change api http.client to interface" 2023-12-22 11:16:00 +00:00
Arthur Silva Sens 239b12347d
Merge pull request #1387 from tsipo/main
change api http.client to interface
2023-12-20 19:08:36 -03:00
github-actions[bot] 3f8bd73e9b
Merge pull request #1370 from prometheus/dependabot/go_modules/tutorial/whatsup/google.golang.org/grpc-1.56.3
Bump google.golang.org/grpc from 1.53.0 to 1.56.3 in /tutorial/whatsup
2023-12-12 22:01:51 +00:00
dependabot[bot] 5e55b312c0
Bump google.golang.org/grpc from 1.53.0 to 1.56.3 in /tutorial/whatsup
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.53.0 to 1.56.3.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.53.0...v1.56.3)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-12 21:58:26 +00:00
github-actions[bot] e96fb182c2
Merge pull request #1401 from prometheus/dependabot/go_modules/golang.org/x/sys-0.15.0
Bump golang.org/x/sys from 0.13.0 to 0.15.0
2023-12-01 09:37:23 +00:00
dependabot[bot] 2a8fc90b9b
Bump golang.org/x/sys from 0.13.0 to 0.15.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.13.0 to 0.15.0.
- [Commits](https://github.com/golang/sys/compare/v0.13.0...v0.15.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-01 09:34:06 +00:00
Roy Reshef 24d59e9b9b change client to interface, allow override by other implementations (e.g. github.com/hashicorp/go-retryablehttp)
Signed-off-by: Roy Reshef <rreshef@densify.com>
2023-11-22 16:52:47 -05:00
Billy Keyes 80d3f0b5b3
Normalize empty help values in CollectAndCompare (#1378)
Due to an inconsistency in the text protocol between encoding and
decoding, it was not possible to use the testutil.CollectAndCompare
function to test metrics with empty help values. To fix this, normalize
empty help values from the expected/want side of the test so that they
compare correctly with empty values on the actual/got side of the test.

Signed-off-by: Billy Keyes <bluekeyes@gmail.com>
2023-11-20 09:57:30 +00:00
Arthur Silva Sens 3f80cd1055
Add example of NewConstMetricWithCreatedTimestamp (#1375)
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2023-11-20 09:56:35 +00:00
Arthur Silva Sens e160b505d3
Bump prometheus/common to 0.45.0 (#1374)
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2023-11-20 09:55:43 +00:00
王卿 38794570f4
This way the import is more readable (#1383)
Signed-off-by: wangqing <wangqing@uniontech.com>
Co-authored-by: wangqing <wangqing@uniontech.com>
2023-11-20 09:55:08 +00:00
Arthur Silva Sens 0356577e9b
Merge pull request #1376 from prometheus/repo_sync 2023-11-03 21:19:16 -03:00
prombot f66184f2c5 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-11-03 17:48:38 +00:00
github-actions[bot] f030c3d062
Merge pull request #1373 from prometheus/dependabot/go_modules/tutorial/whatsup/github.com/prometheus/common-0.45.0
Bump github.com/prometheus/common from 0.44.0 to 0.45.0 in /tutorial/whatsup
2023-11-01 09:48:45 +00:00
dependabot[bot] 4e4691d2fc
Bump github.com/prometheus/common in /tutorial/whatsup
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.44.0 to 0.45.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](https://github.com/prometheus/common/compare/v0.44.0...v0.45.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>
2023-11-01 09:43:56 +00:00
github-actions[bot] 884bc8e242
Merge pull request #1371 from prometheus/dependabot/go_modules/github.com/prometheus/client_model-0.5.0
Bump github.com/prometheus/client_model from 0.4.1-0.20230718164431-9a2bf3000d16 to 0.5.0
2023-11-01 09:14:31 +00:00
dependabot[bot] 16b91f8f6c
Bump github.com/prometheus/client_model
Bumps [github.com/prometheus/client_model](https://github.com/prometheus/client_model) from 0.4.1-0.20230718164431-9a2bf3000d16 to 0.5.0.
- [Release notes](https://github.com/prometheus/client_model/releases)
- [Commits](https://github.com/prometheus/client_model/commits/v0.5.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-01 09:08:46 +00:00
github-actions[bot] 13a208d0b3
Merge pull request #1366 from prometheus/dependabot/go_modules/golang.org/x/net-0.17.0
Bump golang.org/x/net from 0.15.0 to 0.17.0
2023-10-19 18:36:58 +00:00
Björn Rabenstein cd8cba2ceb
histograms: Add timer to reset ASAP after bucket limiting has happened (#1367)
Fixes #1248. See issue description for all the details.

Signed-off-by: beorn7 <beorn@grafana.com>
2023-10-19 14:22:02 +01:00
dependabot[bot] 5046a13c60
Bump golang.org/x/net from 0.15.0 to 0.17.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.15.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.15.0...v0.17.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-11 22:44:18 +00:00
github-actions[bot] c3e797ebb3
Merge pull request #1365 from prometheus/dependabot/go_modules/tutorial/whatsup/golang.org/x/net-0.17.0
Bump golang.org/x/net from 0.10.0 to 0.17.0 in /tutorial/whatsup
2023-10-11 22:43:28 +00:00
dependabot[bot] 5b7580751a
Bump golang.org/x/net from 0.10.0 to 0.17.0 in /tutorial/whatsup
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.10.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.10.0...v0.17.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-11 22:40:53 +00:00
João Vilaça 60a85133ed
Add support for custom validations in promlint (#1311)
* Refactor promlint validation structure

Signed-off-by: João Vilaça <jvilaca@redhat.com>

* Add support for custom validations in promlint

Signed-off-by: João Vilaça <jvilaca@redhat.com>

* Keep backwards compatibility

Signed-off-by: João Vilaça <jvilaca@redhat.com>

---------

Signed-off-by: João Vilaça <jvilaca@redhat.com>
2023-10-10 10:38:10 +01:00
Jorge Alberto Díaz Orozco (Akiel) 486d514e63
Update dependency golang.org/x/net to v0.15.0 (#1342)
to use a version of the package not affected by [CVE-2023-3978](https://www.cve.org/CVERecord?id=CVE-2023-3978)

Other indirect upgrades
golang.org/x/sys v0.11.0 => v0.12.0
golang.org/x/text v0.9.0 => v0.13.0

Signed-off-by: Jorge Alberto Diaz Orozco (Akiel) <diazorozcoj@gmail.com>
Signed-off-by: Jorge Alberto Díaz Orozco (Akiel) <diazorozcoj@gmail.com>
2023-10-10 09:48:25 +01:00
Stephan Renatus 64e51f50df
proccess_collector: add wasip1 stub (#1350)
* proccess_collector: add wasip1 stub

This resolves build failures like this when using the wasip1 support:

    # github.com/prometheus/procfs
    ../../../go/pkg/mod/github.com/prometheus/procfs@v0.11.1/fs_statfs_type.go:25:18: undefined: syscall.Statfs_t
    ../../../go/pkg/mod/github.com/prometheus/procfs@v0.11.1/fs_statfs_type.go:26:17: undefined: syscall.Statfs

See https://go.dev/blog/wasi.

Signed-off-by: Stephan Renatus <stephan@styra.com>

* add build tags

Signed-off-by: Stephan Renatus <stephan@styra.com>

---------

Signed-off-by: Stephan Renatus <stephan@styra.com>
2023-10-10 09:46:36 +01:00
Bartlomiej Plotka d81c33f6ad
Update MAINTAINERS.md (#1362)
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
2023-10-05 14:14:58 +01:00
PrometheusBot 1803eb906e
Update common Prometheus files (#1361)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-10-05 14:08:54 +01:00