Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MetricsGauges available MetricsGauges = make(map[string]*prometheus.GaugeVec) // MetricsCounters available MetricsCounters = make(map[string]*prometheus.CounterVec) )
View Source
var DB *sql.DB
DB object used for queries
View Source
var MetricsPort string
MetricsPort metrics are served on
Functions ¶
func ConnectToDB ¶
ConnectToDB - connect to a MySQL instance
func StartMetrics ¶
func StartMetrics()
StartMetrics initializes and handles metrics Prometheus endpoint
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.