metrics

package
v1.0.1-0...-c468f24 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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