Commit Graph

1598 Commits

Author SHA1 Message Date
Arthur Silva Sens 77d4003c72
Add 1.19.0 changelog (#1451)
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2024-02-27 15:33:22 +01:00
Arthur Silva Sens 14259fa70c
Merge pull request #1448 from ywwg/owilliams/content-negotiation
deps: bump prometheus/common version
2024-02-23 15:58:37 -03:00
Owen Williams 6d039205b8 deps: bump prometheus/common version
Fixes https://github.com/prometheus/client_golang/issues/1446

Signed-off-by: Owen Williams <owen.williams@grafana.com>
2024-02-23 13:28:17 -05:00
Arthur Silva Sens 353395b3b6
Remove support for go 1.19 (#1449)
* Remove support for go 1.19

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

* Replace rand.Seed, deprecated in go 1.20

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

---------

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2024-02-23 18:59:23 +01:00
Arthur Silva Sens 9dd5d2a64a
Merge pull request #1445 from kavu/add_go122_metrics_test
Add support for Go 1.22
2024-02-23 14:35:55 -03:00
Max Riveiro c906a5e91a Add support for Go 1.22
Signed-off-by: Max Riveiro <kavu13@gmail.com>
2024-02-15 20:47:39 +03:00
Arthur Silva Sens 7ac90362b0
Merge pull request #1440 from prometheus/dependabot/github_actions/github-actions-ded284d9a8
Bump the github-actions group with 2 updates
2024-02-02 13:46:53 -03:00
github-actions[bot] 8c7e30ff0d
Merge pull request #1441 from prometheus/dependabot/go_modules/tutorial/whatsup/github.com/prometheus/common-0.46.0
Bump github.com/prometheus/common from 0.45.0 to 0.46.0 in /tutorial/whatsup
2024-02-01 10:02:36 +00:00
dependabot[bot] 08769f8257
Bump github.com/prometheus/common in /tutorial/whatsup
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.45.0 to 0.46.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](https://github.com/prometheus/common/compare/v0.45.0...v0.46.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>
2024-02-01 09:59:09 +00:00
dependabot[bot] 83d5940383
Bump the github-actions group with 2 updates
Bumps the github-actions group with 2 updates: [github/codeql-action](https://github.com/github/codeql-action) and [actions/cache](https://github.com/actions/cache).


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

Updates `actions/cache` from 3 to 4
- [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...v4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-01 09:19:29 +00: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
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
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