metrics

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DNSExpiration is a metric for exposing how long until a machine's DNS
	// record will be removed from Cloud DNS.
	DNSExpiration = promauto.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "autojoin_dns_expiration",
			Help: "The amount of time before a DNS record will be removed",
		},
		[]string{
			"hostname",
		},
	)

	// RequestHandlerDuration is a histogram that tracks the latency of each request handler.
	RequestHandlerDuration = promauto.NewHistogramVec(
		prometheus.HistogramOpts{
			Name: "autojoin_request_handler_duration",
			Help: "A histogram of latencies for each request handler.",
		},
		[]string{"path", "code"},
	)
)

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