Skip to content

Releases: depado/ginprom

v1.8.1

21 Feb 18:34
16eff21
Compare
Choose a tag to compare

What's Changed

  • fix(deps): update module github.com/prometheus/client_golang to v1.18.0 by @renovate in #65
  • feat: add custom histograms by @sralloza in #70

Full Changelog: v1.8.0...v1.8.1

v1.8.0

27 Nov 15:41
5b6bce4
Compare
Choose a tag to compare

What's Changed

  • chore(deps): update golang docker tag to v1.20.4 by @renovate in #43
  • fix(deps): update module github.com/prometheus/client_golang to v1.15.1 by @renovate in #44
  • fix(deps): update module github.com/stretchr/testify to v1.8.3 by @renovate in #45
  • fix(deps): update module github.com/stretchr/testify to v1.8.4 by @renovate in #46
  • fix(deps): update module github.com/gin-gonic/gin to v1.9.1 by @renovate in #47
  • chore(deps): update golang docker tag to v1.20.5 by @renovate in #50
  • support custom promhttp.HandlerOpts by @jmank88 in #48
  • fix(deps): update module github.com/prometheus/client_golang to v1.16.0 by @renovate in #51
  • chore(deps): update golang docker tag to v1.20.6 by @renovate in #52
  • chore(deps): update golang docker tag to v1.20.7 by @renovate in #53
  • chore(deps): update golang docker tag to v1.21.0 by @renovate in #54
  • chore(deps): update golang docker tag to v1.21.1 by @renovate in #55
  • fix(deps): update module github.com/prometheus/client_golang to v1.17.0 by @renovate in #56
  • chore(deps): update golang docker tag to v1.21.2 by @renovate in #57
  • chore(deps): update golang docker tag to v1.21.3 by @renovate in #58
  • chore(deps): bump golang.org/x/net from 0.10.0 to 0.17.0 by @dependabot in #59
  • chore(deps): update golang docker tag to v1.21.4 by @renovate in #60
  • feat: add support for custom labels in the counter metric by @sralloza in #62

New Contributors

Full Changelog: v1.7.11...v1.8.0

v1.7.11

25 Apr 09:55
18484e5
Compare
Choose a tag to compare
Various improvements (#42)

* doc: add README sections for HandlerNameFunc and RequestPathFunc options

* refactor: extract options in their own file

* refactor: type options for better readability

* feat: push coverage to 100%

v1.7.10

18 Apr 13:19
9f1d545
Compare
Choose a tag to compare
Add new RequestPathFunc feature to customize request path (#41)

* feat: new RequestPathFunc to retrieve request path and corresponding option on *Prometheus

Recording metrics for routes not registered on the instrumented root *gin.Router currently requires defining a side-middleware mimicking the *Prometheus internals, that is, declaring counters, histograms and summaries for the metrics one wants to record, and "manually" handling them inside the middleware.
With RequestPathFunc, one can monitor calls to unregistered routes by setting RequestPathFunc to some function that returns a default value if the request path is undefined.

Even finer-grained monitoring is made possible by this commit, e.g. recording a metric with the (*http.Request).RequestURI rather than the (*gin.Context).Fullpath() return value.

* feat: add test for new feature RequestPathFunc

v1.7.9

12 Apr 14:03
9398269
Compare
Choose a tag to compare
Fix behavior when adding a custom Gauge or Counter with a custom Regi…

…stry (#39)

* fix: ensure AddCustomGauge and AddCustomCounter register the Gauge and Value in the correct registry

Before that, the AddCustomGauge and AddCustomCounter would both register the respective Gauge and Counter in the default prometheus Registry, even if a custom one was set.
Also, since this commit introduced a new simple mustRegister method on *Prometheus, it seemed logical to use it in the register function.

* feat: add tests to check that custom counters and gauges are registered in the correct registry

v1.7.8

11 Apr 14:16
a01318c
Compare
Choose a tag to compare
chore(deps): update golang docker tag to v1.20.3 (#37)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

v1.7.7

28 Mar 09:23
Compare
Choose a tag to compare

Added the HandlerNameFunc option to customize the behavior of the handler label.
Thanks to @mlevieux for the PR 👍

Added the ability to register custom counters.

v1.7.6

05 Feb 23:15
Compare
Choose a tag to compare
fix(ci): golangci latest version

v1.7.5: Merge pull request #28 from TankerHQ/deps

24 Jan 14:49
c06dff6
Compare
Choose a tag to compare

v1.7.4

08 Mar 14:56
Compare
Choose a tag to compare

Full Changelog: v1.7.3...v1.7.4