Documentation
¶
Index ¶
Constants ¶
View Source
const ( Namespace = "pgpool2" LandingPage = `` /* 166-byte string literal not displayed */ )
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) )
nolint: golint
Variables ¶
View Source
var ( ListenAddress = kingpin.Flag("web.listen-address", "Address on which to expose metrics and web interface.").Default(":9719").String() MetricsPath = kingpin.Flag("web.telemetry-path", "Path under which to expose metrics.").Default("/metrics").String() Logger = promlog.New(&promlog.Config{}) )
View Source
var PgpoolSemver semver.Version
Functions ¶
Types ¶
type ColumnMapping ¶
type ColumnMapping struct {
// contains filtered or unexported fields
}
User-friendly representation of a prometheus descriptor map
type Exporter ¶
Exporter collects Pgpool-II 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.