Versions in this module Expand all Collapse all v0 v0.3.0 Jan 21, 2020 Changes in this version + func NewDatabaseCollector(db dbStats, opts DatabaseCollectorOpts) *databaseCollector + type DatabaseCollectorOpts struct + Prefix string + type DriverCollector struct + DriverName string + ExecutionFailedCounter prometheus.Counter + ExecutionSuccessfulCounter prometheus.Counter + ExecutionTotalCounter prometheus.Counter + QueryFailedCounter prometheus.Counter + QuerySuccessfulCounter prometheus.Counter + QueryTotalCounter prometheus.Counter + TransactionCommitFailedCounter prometheus.Counter + TransactionCommitSuccessfulCounter prometheus.Counter + TransactionCommitTotalCounter prometheus.Counter + TransactionRollbackFailedCounter prometheus.Counter + TransactionRollbackSuccessfulCounter prometheus.Counter + TransactionRollbackTotalCounter prometheus.Counter + func NewDriverCollector(driver driver.Driver, opts DriverCollectorOpts) *DriverCollector + func Register(options DriverCollectorOpts) (*DriverCollector, error) + func Wrap(d driver.Driver, options DriverCollectorOpts) *DriverCollector + func (collector *DriverCollector) Collect(metrics chan<- prometheus.Metric) + func (collector *DriverCollector) Describe(descs chan<- *prometheus.Desc) + func (d *DriverCollector) Open(name string) (driver.Conn, error) + type DriverCollectorOpts struct + DriverName string + Prefix string