Guides¶
Each guide covers one task end to end. If you're new, read Core concepts first; it takes five minutes and explains sources, families, fields and objects.
Publishing¶
-
Create a provider, register gauges, counters and strings, serve, and shut down. Options and performance.
-
LabelsandWith,Onfor per-object values, string metrics for states, and deleting series. -
GaugeFunc,CounterFunc,StringFunc, and theCollectorinterface for values computed on each read. -
Socket activation & permissions
A
.socketunit withFromActivation, socket modes and groups, and who can read your metrics. -
Publish a
client_golangregistry through a provider, and how its types map. -
Publish an OpenTelemetry SDK reader through a provider, and how names and units map.
Consuming¶
-
scrape.Scraper: options, results, errors and drops, and mapping to OpenTelemetry withotelmap. -
How each source is attributed to a unit, socket activation, and what to do when it can't be.
-
Test providers and scrapers in
go test, without systemd and without root.