package
0.0.0-20220715145414-72eeae7f3492
Repository: https://github.com/cockroachlabs/metrics-exporter.git
Documentation: pkg.go.dev

# Functions

CreateMetricsReader instantiates a new Reader.
CreateMetricsWriter instantiates a MetricsWriter.
NewCollector creates a new collector for retrieving sql activity from the internal CRDB tables.
ReadConfig reads yaml configuration from a file.
TranslateHistogram translates the HDR Histogram into a Log10 linear histogram.

# Structs

BucketConfig defines the config parameters for each histogram bucket * Bins: the number of linear buckets for each log10 bucket * Startns: The lower range in nanoseconds.
Collector queries the database to collect custom metrics.
Config has the configuration for the metrics-exporter * Bucket: Log10 Bucket Configuration * Port: Port that the export is listening to * Tls: optional Tls configuration * Url: CockroachDB Prometheus endpoint.
Custom provides the configuration to retrieve custom metrics.
MetricsReader reads the metrics from a CockroachDB endpoint (/_status/var).
MetricsWriter write metrics, after transforming them based on the configuration supplied.
TLSClientContext is the context for TLS connections.
TLSConfig Configuration * Ca: CA certificate file location * Certificate: X.509 certificate for the server * Host: Host name associated with X.509 certificate.