Documentation ¶
Overview ¶
Package metricslog provides Prometheus implementations for metrics. Individual metrics are mapped to their Prometheus counterparts, and (depending on the constructor used) may be automatically registered in the global Prometheus metrics registry.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter implements Counter, via a Prometheus CounterVec.
func NewCounter ¶
func NewCounter(cv *metricslog.CounterVec) *Counter
NewCounter wraps the CounterVec and returns a usable Counter object.
func NewCounterFrom ¶
func NewCounterFrom(opts metricslog.CounterOpts, logOpts metricslog.CounterLogOpts, labelNames []string) *Counter
NewCounterFrom constructs and registers a Prometheus CounterVec, and returns a usable Counter object.
type Gauge ¶
type Gauge struct {
// contains filtered or unexported fields
}
Gauge implements Gauge, via a Prometheus GaugeVec.
func NewGauge ¶
func NewGauge(gv *metricslog.GaugeVec) *Gauge
NewGauge wraps the GaugeVec and returns a usable Gauge object.
func NewGaugeFrom ¶
func NewGaugeFrom(opts metricslog.GaugeOpts, logOpts metricslog.GaugeLogOpts, labelNames []string) *Gauge
NewGaugeFrom construts and registers a Prometheus GaugeVec, and returns a usable Gauge object.
type Histogram ¶
type Histogram struct {
// contains filtered or unexported fields
}
Histogram implements Histogram via a Prometheus HistogramVec. The difference between a Histogram and a Summary is that Histograms require predefined quantile buckets, and can be statistically aggregated.
func NewHistogram ¶
func NewHistogram(hv *metricslog.HistogramVec) *Histogram
NewHistogram wraps the HistogramVec and returns a usable Histogram object.
func NewHistogramFrom ¶
func NewHistogramFrom(opts metricslog.HistogramOpts, logOpts metricslog.HistogramLogOpts, labelNames []string) *Histogram
NewHistogramFrom constructs and registers a Prometheus HistogramVec, and returns a usable Histogram object.
type Summary ¶
type Summary struct {
// contains filtered or unexported fields
}
Summary implements Histogram, via a Prometheus SummaryVec. The difference between a Summary and a Histogram is that Summaries don't require predefined quantile buckets, but cannot be statistically aggregated.
func NewSummary ¶
func NewSummary(sv *metricslog.SummaryVec) *Summary
NewSummary wraps the SummaryVec and returns a usable Summary object.
func NewSummaryFrom ¶
func NewSummaryFrom(opts metricslog.SummaryOpts, logOpts metricslog.SummaryLogOpts, labelNames []string) *Summary
NewSummaryFrom constructs and registers a Prometheus SummaryVec, and returns a usable Summary object.
Directories ¶
Path | Synopsis |
---|---|
client_golang
|
|
metricslog
Package metricslog is the core instrumentation package.
|
Package metricslog is the core instrumentation package. |
client_model
|
|
common
|
|
expfmt
Package expfmt contains tools for reading and writing Prometheus metrics.
|
Package expfmt contains tools for reading and writing Prometheus metrics. |
model
Package model contains common data structures that are shared across Prometheus components and libraries.
|
Package model contains common data structures that are shared across Prometheus components and libraries. |
promlog
Package promlog defines standardised ways to initialize Go kit loggers across Prometheus components.
|
Package promlog defines standardised ways to initialize Go kit loggers across Prometheus components. |
Package procfs provides functions to retrieve system, kernel and process metrics from the pseudo-filesystem proc.
|
Package procfs provides functions to retrieve system, kernel and process metrics from the pseudo-filesystem proc. |
bcache
Package bcache provides access to statistics exposed by the bcache (Linux block cache).
|
Package bcache provides access to statistics exposed by the bcache (Linux block cache). |
nfs
Package nfs implements parsing of /proc/net/rpc/nfsd.
|
Package nfs implements parsing of /proc/net/rpc/nfsd. |
sysfs
Package sysfs provides functions to retrieve system and kernel metrics from the pseudo-filesystem sys.
|
Package sysfs provides functions to retrieve system and kernel metrics from the pseudo-filesystem sys. |
xfs
Package xfs provides access to statistics exposed by the XFS filesystem.
|
Package xfs provides access to statistics exposed by the XFS filesystem. |