Skip to content

Commit 376206d

Browse files
authoredJan 14, 2025
Merge pull request #6279 from devtron-labs/pg-descriptor-fix
fix: remove unused variable causing double register in prometheus
2 parents ba6b6fb + ab1d13e commit 376206d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed
 

Diff for: ‎internal/middleware/instrument.go

-5
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ var (
3232
}, []string{"path", "method", "status"})
3333
)
3434

35-
var PgQueryDuration = promauto.NewHistogramVec(prometheus.HistogramOpts{
36-
Name: "pg_query_duration_seconds",
37-
Help: "Duration of PG queries",
38-
}, []string{"label"})
39-
4035
var CdDuration = promauto.NewHistogramVec(prometheus.HistogramOpts{
4136
Name: "cd_duration_seconds",
4237
Help: "Duration of CD process",

0 commit comments

Comments
 (0)