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) )
nolint: golint
Variables ¶
View Source
var PgpoolSemver semver.Version
Functions ¶
Types ¶
type ColumnMapping ¶
type ColumnMapping struct {
// contains filtered or unexported fields
}
User-friendly representation of a OpenTelemetry descriptor map
type Exporter ¶
type Exporter struct { *otlpmetrichttp.Exporter DB *sql.DB // contains filtered or unexported fields }
Exporter collects Pgpool-II stats from the given server and exports them using the OpenTelemetry metrics package.
func NewCustomExporter ¶
func (*Exporter) Export ¶
func (e *Exporter) Export(ctx context.Context, res *metricdata.ResourceMetrics) error
Export implements the export.MetricExporter interface.
func (*Exporter) SetMetrics ¶
func (e *Exporter) SetMetrics()
SetMeter initializes the gauge metric using the provided meter.
type MetricMap ¶
type MetricMap struct {
// contains filtered or unexported fields
}
Stores the OpenTelemetry 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.