instr

package
v0.0.0-...-e1e1857 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package instr provides the instrumentation facility for metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	RemoteWriteRequests        *prometheus.CounterVec
	RemoteWriteRequestDuration prometheus.Histogram
	QueryResponses             *prometheus.CounterVec
	QueryResponseDuration      prometheus.Histogram
	MetricValueDifference      prometheus.Histogram
	CustomQueryExecuted        *prometheus.CounterVec
	CustomQueryErrors          *prometheus.CounterVec
	CustomQueryRequestDuration *prometheus.HistogramVec
	CustomQueryLastDuration    *prometheus.GaugeVec
}

func RegisterMetrics

func RegisterMetrics(reg *prometheus.Registry) Metrics

Jump to

Keyboard shortcuts

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