Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Namespace is the metrics namespace for the application.
Namespace = "promrelay"
)
Variables ¶
View Source
var BuildInfo = promauto.NewGaugeFunc( prometheus.GaugeOpts{ Namespace: Namespace, Subsystem: "build", Name: "info", Help: "A metric with a constant '1' value labeled by version, goversion, gitcommit, gitbranch, builddate from which the application was built.", ConstLabels: prometheus.Labels{ "version": buildinfo.Version, "goversion": buildinfo.GoVersion, "gitcommit": buildinfo.GitCommit, "gitbranch": buildinfo.GitBranch, "builddate": buildinfo.BuildDate, }, }, func() float64 { return 1 }, )
BuildInfo is the collector for build information of the application.
View Source
var RelayRequestDuration = promauto.NewHistogram( prometheus.HistogramOpts{ Namespace: Namespace, Subsystem: "relay", Name: "request_duration_seconds", Help: "Distribution of relay request durations in the Prometheus relay exporter.", }, )
RelayRequestDuration is the collector for the distribution of relay request durations.
View Source
var RelayRequestErrors = promauto.NewCounter( prometheus.CounterOpts{ Namespace: Namespace, Subsystem: "relay", Name: "request_errors_total", Help: "Total number of relay request errors in the Prometheus relay exporter.", }, )
RelayRequestErrors is the collector for the total number of relay request errors.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.