derpmetrics

package
v2.33.3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DERPExpvarCollector

type DERPExpvarCollector struct {
	// contains filtered or unexported fields
}

DERPExpvarCollector exports a DERP server's expvar stats as properly typed Prometheus metrics.

func NewDERPExpvarCollector

func NewDERPExpvarCollector(server *derp.Server) *DERPExpvarCollector

NewDERPExpvarCollector creates a Prometheus collector that reads stats from a DERP server's expvar on each scrape.

func (*DERPExpvarCollector) Collect

func (c *DERPExpvarCollector) Collect(ch chan<- prometheus.Metric)

Collect reads the DERP server's expvar stats and emits them as Prometheus metrics. Called on each /metrics scrape.

func (*DERPExpvarCollector) Describe

func (c *DERPExpvarCollector) Describe(ch chan<- *prometheus.Desc)

Jump to

Keyboard shortcuts

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