metrics

package
v1.86.4 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package metrics contains shared types and underlying methods for serving localapi metrics. This is primarily consumed by containerboot and k8s-proxy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMetricsHandlers

func RegisterMetricsHandlers(mux *http.ServeMux, lc *local.Client, debugAddrPort string)

registerMetricsHandlers registers a simple HTTP metrics handler at /metrics, forwarding requests to tailscaled's /localapi/v0/usermetrics API.

In 1.78.x and 1.80.x, it also proxies debug paths to tailscaled's debug endpoint if configured to ease migration for a breaking change serving user metrics instead of debug metrics on the "metrics" port.

Types

This section is empty.

Jump to

Keyboard shortcuts

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