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)
Click to show internal directories.
Click to hide internal directories.