Skip to content

Commit ab1d13e

Browse files
committed
remove unused variable causing double register in prometheus
1 parent ba6b6fb commit ab1d13e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

internal/middleware/instrument.go

Lines changed: 0 additions & 5 deletions
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)