collector

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2020 License: MIT Imports: 10 Imported by: 0

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 NewExporter(connectionString string, namespace string) *Exporter

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL