Skip to content

Commit dffb087

Browse files
committed
test pr
1 parent 687d724 commit dffb087

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ require (
1818
github.com/hashicorp/go-multierror v1.1.1
1919
github.com/lib/pq v1.10.9
2020
github.com/pkg/errors v0.9.1
21-
github.com/prometheus/client_golang v1.20.0
21+
github.com/prometheus/client_golang v1.20.1-0.20240819183102-3224f5959e07
2222
github.com/redis/go-redis/v9 v9.6.1
2323
github.com/spf13/viper v1.19.0
2424
github.com/stretchr/testify v1.9.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,8 @@ github.com/prometheus/client_golang v0.9.0-pre1.0.20180209125602-c332b6f63c06/go
679679
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
680680
github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
681681
github.com/prometheus/client_golang v1.1.0/go.mod h1:I1FGZT9+L76gKKOs5djB6ezCbFQP1xR9D75/vuwEF3g=
682-
github.com/prometheus/client_golang v1.20.0 h1:jBzTZ7B099Rg24tny+qngoynol8LtVYlA2bqx3vEloI=
683-
github.com/prometheus/client_golang v1.20.0/go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE=
682+
github.com/prometheus/client_golang v1.20.1-0.20240819183102-3224f5959e07 h1:zd3xGRFHNk0t0vo+qPg0+rgHsDOFJDdkxfgQJSugJyg=
683+
github.com/prometheus/client_golang v1.20.1-0.20240819183102-3224f5959e07/go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE=
684684
github.com/prometheus/client_model v0.0.0-20171117100541-99fa1f4be8e5/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
685685
github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
686686
github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=

metrics/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (p *Prometheus) Init() (err error) {
6262
p.reqDur = reqDur
6363
p.ReqCntURLLabelMappingFn = func(c *gin.Context) string { return c.Request.URL.Path }
6464
p.SkipMetricsURLFn = func(c *gin.Context) bool { return false }
65-
p.reg = prometheus.NewRegistry()
65+
p.reg = prometheus.NewPedanticRegistry()
6666

6767
collectors := []prometheus.Collector{
6868
collectors.NewProcessCollector(collectors.ProcessCollectorOpts{}),

0 commit comments

Comments
 (0)