metrics
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package metrics contains shared types and underlying methods for servinglocalapi metrics. This is primarily consumed by containerboot and k8s-proxy.
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcRegisterMetricsHandlers¶
registerMetricsHandlers registers a simple HTTP metrics handler at /metrics, forwardingrequests to tailscaled's /localapi/v0/usermetrics API.
In 1.78.x and 1.80.x, it also proxies debug paths to tailscaled's debugendpoint if configured to ease migration for a breaking change serving usermetrics instead of debug metrics on the "metrics" port.
Types¶
This section is empty.