Commit Graph

1616 Commits

Author SHA1 Message Date
Not Rob Pike 9f18e2fc42 remove unused now field 2024-03-12 10:56:43 -07:00
Not Rob Pike afd6f33dcd remove incorrect comment about atomic safety
indeed the ival and fval can get updated separately, but such update
is always one or the other, not both.
2024-03-11 16:31:49 -07:00
Not Rob Pike f55a4e3265 Integer-only Counters
Signed-off-by: Not Rob Pike <closeup_oblique.0o@icloud.com>
2024-03-10 12:38:10 -07:00
Arthur Silva Sens b59cfc9f6e
Merge pull request #1456 from prometheus/dependabot/github_actions/github-actions-cd65112d37
Bump the github-actions group with 2 updates
2024-03-02 16:01:55 -03:00
Arthur Silva Sens 876e942149
Merge pull request #1462 from prometheus/release-1.19
Merge Release 1.19 back to main
2024-03-02 16:01:24 -03:00
Arthur Silva Sens cad1bfa2b8
Merge pull request #1454 from prometheus/small-nits
Rephrase incompatibility with common v0.48.0
2024-03-01 14:25:28 -03:00
github-actions[bot] 8da892ea44
Merge pull request #1461 from prometheus/dependabot/go_modules/tutorial/whatsup/github.com/prometheus/client_golang-1.19.0
Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in /tutorial/whatsup
2024-03-01 09:49:37 +00:00
dependabot[bot] 324bb9ea05
Bump github.com/prometheus/client_golang in /tutorial/whatsup
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.18.0 to 1.19.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/v1.19.0/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.18.0...v1.19.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-03-01 09:46:11 +00:00
github-actions[bot] c890f5e9f8
Merge pull request #1459 from prometheus/dependabot/go_modules/golang.org/x/sys-0.17.0
Bump golang.org/x/sys from 0.16.0 to 0.17.0
2024-03-01 09:31:13 +00:00
github-actions[bot] 96d15d57d3
Merge pull request #1458 from prometheus/dependabot/go_modules/github.com/prometheus/client_model-0.6.0
Bump github.com/prometheus/client_model from 0.5.0 to 0.6.0
2024-03-01 09:31:02 +00:00
dependabot[bot] 736c206816
Bump golang.org/x/sys from 0.16.0 to 0.17.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.16.0 to 0.17.0.
- [Commits](https://github.com/golang/sys/compare/v0.16.0...v0.17.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-03-01 09:27:52 +00:00
dependabot[bot] a5b7c47389
Bump github.com/prometheus/client_model from 0.5.0 to 0.6.0
Bumps [github.com/prometheus/client_model](https://github.com/prometheus/client_model) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/prometheus/client_model/releases)
- [Commits](https://github.com/prometheus/client_model/compare/v0.5.0...v0.6.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>
2024-03-01 09:27:44 +00:00
github-actions[bot] 50211fc5e1
Merge pull request #1457 from prometheus/dependabot/go_modules/examples/middleware/github.com/prometheus/client_golang-1.19.0
Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in /examples/middleware
2024-03-01 09:08:11 +00:00
dependabot[bot] 8a9d24bc1a
Bump github.com/prometheus/client_golang in /examples/middleware
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.18.0 to 1.19.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/v1.19.0/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.18.0...v1.19.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-03-01 09:04:54 +00:00
dependabot[bot] 063bd378e4
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 [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action).


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

Updates `golangci/golangci-lint-action` from 3.7.0 to 4.0.0
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](3a91952989...3cfe3a4abb)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-01 09:04:42 +00:00
Björn Rabenstein 694854aa24
Merge pull request #1455 from foehammer127/fix/1453
feat(prometheus/testutil/promlint/validations): refine lintMetricType…
2024-02-29 18:20:47 +01:00
foehammer127 cead7c3bb2
feat(prometheus/testutil/promlint/validations): refine lintMetricTypeInName
Change the lintMetricTypeInName linter inside promlint to only trigger an error when the metric name matches the type of the metric.

Signed-off-by: foehammer127 <foehammer@disroot.org>
2024-02-29 11:10:22 -06:00
Arthur Silva Sens 0aa8c9f68b
Rephrase incompatibility with common v0.48.0
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2024-02-28 19:31:27 -03:00
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