Commit Graph

1743 Commits

Author SHA1 Message Date
github-actions[bot] a330ac5cee
Merge pull request #1502 from prometheus/dependabot/go_modules/golang.org/x/net-0.23.0
build(deps): bump golang.org/x/net from 0.22.0 to 0.23.0
2024-04-19 13:09:53 +00:00
dependabot[bot] 4d3dba3ab1
build(deps): bump golang.org/x/net from 0.22.0 to 0.23.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.22.0...v0.23.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-19 13:05:53 +00:00
github-actions[bot] 7fb219118a
Merge pull request #1501 from prometheus/dependabot/go_modules/tutorial/whatsup/golang.org/x/net-0.23.0
build(deps): bump golang.org/x/net from 0.20.0 to 0.23.0 in /tutorial/whatsup
2024-04-19 13:05:18 +00:00
dependabot[bot] 991fecad9f
build(deps): bump golang.org/x/net in /tutorial/whatsup
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.20.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.20.0...v0.23.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-19 13:01:36 +00:00
oftenoccur d038ab96c0
chore: fix function name in comment (#1497)
Signed-off-by: oftenoccur <ezc5@sina.com>
2024-04-11 14:53:09 +02:00
github-actions[bot] 6b857f1b8d
Merge pull request #1498 from prometheus/dependabot/go_modules/github.com/prometheus/common-0.52.3
Bump github.com/prometheus/common from 0.48.0 to 0.52.3
2024-04-11 10:36:41 +00:00
dependabot[bot] 5a00ae4179
Bump github.com/prometheus/common from 0.48.0 to 0.52.3
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.48.0 to 0.52.3.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](https://github.com/prometheus/common/compare/v0.48.0...v0.52.3)

---
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-04-11 10:32:51 +00:00
Arthur Silva Sens e133e49029
Merge pull request #1389 from prometheus/fix-lint-issue
gocollector: Add regex option to allow collection of debug runtime metrics
2024-04-08 11:45:23 -03:00
Arthur Silva Sens 0f500036fc
gocollector: Add regex option to allow collection of debug runtime metrics
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2024-04-08 11:42:03 -03:00
Arthur Silva Sens c586fcc216
Merge pull request #1483 from prometheus/simplify-basemetrics
chore: Refactor how base metrics are added to Sched metrics
2024-04-08 09:41:04 -03:00
Max Lowther 6fdffbf334
fix: remove redundant go module in middleware example (#1492)
* remove extra go module

Signed-off-by: Max Lowther <lowther.max@gmail.com>

* sort imports

Signed-off-by: Max Lowther <lowther.max@gmail.com>

---------

Signed-off-by: Max Lowther <lowther.max@gmail.com>
2024-04-08 09:32:51 +02:00
Sachin Sahu 76fa980794
feat: metrics generation workflow (#1481)
* Scripts to check new Go version

Signed-off-by: Sachin Sahu <sachinksahu.431@gmail.com>

* Changes to test workflow

Signed-off-by: Sachin Sahu <sachinksahu.431@gmail.com>

* Update workflow to run based on Go release cycle

Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>

* Revert deleted files for testing workflow

Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>

* Revert deleted file for testing workflow

Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>

* Fix linting issue

Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>

* Update cron schedule to per month

Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>

* Update bash file

Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>

* Keep latest 3 Go versions in supported_go_versions

Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>

---------

Signed-off-by: Sachin Sahu <sachinksahu.431@gmail.com>
Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>
2024-04-04 08:25:38 +02:00
Arthur Silva Sens e3bea8af78
Merge pull request #1489 from SachinSahu431/update-go-yml
ci: Remove hardcoded supported Go versions from go.yml
2024-04-02 10:24:04 -03:00
Sachin Sahu 1fc81cf736 Modify go.yml file
Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>
2024-04-02 13:10:47 +00:00
Sachin Sahu cd45345437 ci: Remove hardcoded supported Go versions from go.yml
Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>
2024-04-02 05:10:59 +00:00
github-actions[bot] e38b67e77a
Merge pull request #1486 from prometheus/dependabot/go_modules/github.com/prometheus/procfs-0.13.0
Bump github.com/prometheus/procfs from 0.12.0 to 0.13.0
2024-04-01 09:47:24 +00:00
dependabot[bot] 17dafc8498
Bump github.com/prometheus/procfs from 0.12.0 to 0.13.0
Bumps [github.com/prometheus/procfs](https://github.com/prometheus/procfs) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/prometheus/procfs/releases)
- [Commits](https://github.com/prometheus/procfs/compare/v0.12.0...v0.13.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-01 09:43:57 +00:00
github-actions[bot] af02258d86
Merge pull request #1485 from prometheus/dependabot/go_modules/golang.org/x/sys-0.18.0
Bump golang.org/x/sys from 0.17.0 to 0.18.0
2024-04-01 09:43:27 +00:00
dependabot[bot] 838b8e5ccb
Bump golang.org/x/sys from 0.17.0 to 0.18.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.17.0 to 0.18.0.
- [Commits](https://github.com/golang/sys/compare/v0.17.0...v0.18.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-04-01 09:40:09 +00:00
Arthur Silva Sens ec6ba13cc3
chore: Refactor how base metrics are added to Sched metrics
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2024-03-30 17:17:09 -03:00
Igor Drozdov 93cf5d4f5f
Implement Unwrap() for responseWriterDelegator (#1480)
If the ResponseWriter implements any of the following methods,
the ResponseController will call them as appropriate:

Flush()
FlushError() error // alternative Flush returning an error
Hijack() (net.Conn, *bufio.ReadWriter, error)
SetReadDeadline(deadline time.Time) error
SetWriteDeadline(deadline time.Time) error
EnableFullDuplex() error

If the ResponseWriter doesn't implement the methods,
the ResponseController will call Unwrap() method until it
finds a ResponseWriter in the chain

This commit implements Unwrap() method to simply return the
wrapped ResponseWriter

Signed-off-by: Igor Drozdov <ihardrozdov@gmail.com>
2024-03-28 14:42:34 +01:00
Sachin Sahu 50ab457fb7
Auto-update Go Collector Metrics for new Go versions (#1476)
* Autogenerate go_collector_<version>_test.go files

Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>

* Add latest Go version

Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>

* nit: Script to check new Go version

Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>

* Rename file, fix linting issue

Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>

---------

Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>
2024-03-26 12:42:34 +00:00
Arthur Silva Sens 26e3055e51
Merge pull request #1472 from prometheus/i5242
Add LintDuplicateMetric to promlint
2024-03-24 11:03:00 +01:00
Hrishikesh Barman 25074625b7 Add LintDuplicateMetric to promlint
Signed-off-by: Hrishikesh Barman <hrishikeshbman@gmail.com>
2024-03-16 12:12:08 +00:00
github-actions[bot] 7882668df7
Merge pull request #1469 from prometheus/dependabot/go_modules/tutorial/whatsup/google.golang.org/protobuf-1.33.0
Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in /tutorial/whatsup
2024-03-13 23:37:17 +00:00
github-actions[bot] 6b37369dc8
Merge pull request #1467 from prometheus/dependabot/go_modules/examples/middleware/google.golang.org/protobuf-1.33.0
Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in /examples/middleware
2024-03-13 23:34:12 +00:00
dependabot[bot] 4549547075
Bump google.golang.org/protobuf in /tutorial/whatsup
Bumps google.golang.org/protobuf from 1.32.0 to 1.33.0.

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-13 23:33:56 +00:00
dependabot[bot] 76e6dfd41b
Bump google.golang.org/protobuf in /examples/middleware
Bumps google.golang.org/protobuf from 1.32.0 to 1.33.0.

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-13 23:30:42 +00:00
github-actions[bot] c5f9c3fbb2
Merge pull request #1466 from prometheus/dependabot/go_modules/google.golang.org/protobuf-1.33.0
Bump google.golang.org/protobuf from 1.32.0 to 1.33.0
2024-03-13 23:29:50 +00:00
dependabot[bot] 4f5e328d87
Bump google.golang.org/protobuf from 1.32.0 to 1.33.0
Bumps google.golang.org/protobuf from 1.32.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-13 23:26:18 +00: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