Versions in this module Expand all Collapse all v0 v0.1.1 Mar 9, 2026 Changes in this version + var ConnectionsInUseDesc = prometheus.NewDesc(metricsSubsystem + "_connections_in_use", ...) + var ConnectionsOpenDesc = prometheus.NewDesc(metricsSubsystem + "_connections_open", "Number of open database connections.", ...) + var ErrorsMetric = prometheus.NewCounterVec(prometheus.CounterOpts{ ... }, []string{ ... }) + var QueryDurationMetric = prometheus.NewHistogramVec(prometheus.HistogramOpts{ ... }, []string{ ... }) + func RegisterMetrics() + func RegisterPlugin(db *gorm.DB) error + func RegisterPoolCollector(db *sql.DB) error + func ResetMetrics() + type PoolCollector struct + func NewPoolCollector(db *sql.DB) *PoolCollector + func (c *PoolCollector) Collect(ch chan<- prometheus.Metric) + func (c *PoolCollector) Describe(ch chan<- *prometheus.Desc)