Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMetric ¶
func GetMetric(name string) (prometheus.Metric, error)
GetMetric returns the metric whose Description best matches the supplied name.
func NewEngine ¶
NewEngine creates an engine that performs database metrics evaluation every evalInterval. The engine runs predefined queries that returns a BIGINT as the metric value which is then set as a value to Prometheus metric.
Note: Make sure to call this only when the database is TimescaleDB. Plain Postgres will cause evaluation errors.
Types ¶
Click to show internal directories.
Click to hide internal directories.