Documentation ¶
Overview ¶
Package usermetric provides a container and handler for user-facing metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMultiLabelMapWithRegistry ¶ added in v1.76.0
func NewMultiLabelMapWithRegistry[T comparable](m *Registry, name string, promType, helpText string) *metrics.MultiLabelMap[T]
NewMultiLabelMapWithRegistry creates and register a new MultiLabelMap[T] variable with the given name and returns it. The variable is registered with the userfacing metrics package.
Note that usermetric are not protected against duplicate metrics name. It is the caller's responsibility to ensure that the name is unique.
Types ¶
type Gauge ¶
type Gauge struct {
// contains filtered or unexported fields
}
Gauge is a gauge metric with no labels.
type Registry ¶ added in v1.76.0
type Registry struct {
// contains filtered or unexported fields
}
Registry tracks user-facing metrics of various Tailscale subsystems.
func (*Registry) Handler ¶ added in v1.76.0
func (r *Registry) Handler(w http.ResponseWriter, req *http.Request)
Handler returns a varz.Handler that serves the userfacing expvar contained in this package.
Click to show internal directories.
Click to hide internal directories.