Documentation ¶
Index ¶
Constants ¶
View Source
const ( DISCARD columnUsage = iota // Ignore this column LABEL columnUsage = iota // Use this column as a label COUNTER columnUsage = iota // Use this column as a counter GAUGE columnUsage = iota // Use this column as a gauge MAPPEDMETRIC columnUsage = iota // Use this column with the supplied mapping of text values DURATION columnUsage = iota // This column should be interpreted as a text duration (and converted to milliseconds) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnMapping ¶
type ColumnMapping struct {
// contains filtered or unexported fields
}
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter collects PgBouncer stats from the given server and exports them using the prometheus metrics package.
func NewExporter ¶
func (*Exporter) Collect ¶
func (e *Exporter) Collect(ch chan<- prometheus.Metric)
Collect implements prometheus.Collector.
func (*Exporter) Describe ¶
func (e *Exporter) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector.
type MetricMap ¶
type MetricMap struct {
// contains filtered or unexported fields
}
Stores the prometheus metric description which a given column will be mapped to by the collector
type MetricMapNamespace ¶
type MetricMapNamespace struct {
// contains filtered or unexported fields
}
Groups metric maps under a shared set of labels
Click to show internal directories.
Click to hide internal directories.