Registry / observability / contrib-instrumentation-host

contrib-instrumentation-host

JSON →
library0.69.0gogounverified

Package host provides conventional host metric instruments specified by OpenTelemetry, offering an alternative to the OpenTelemetry Collector hostmetrics receiver for recording system metrics without an agent.

go get go.opentelemetry.io/contrib/instrumentation/host
INSTALL
IMPORT
SIG · CONTRIB-INSTRUMENT
C
contrib-instrumentation-host
observabilitygov0.69.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

host
go.opentelemetry.io/contrib/instrumentation/host

Starts host metric collection with OpenTelemetry.

package main import ( "context" "go.opentelemetry.io/contrib/instrumentation/host" "go.opentelemetry.io/otel" ) func main() { ctx := context.Background() meter := otel.Meter("example") err := host.Start(ctx, host.WithMeterProvider(meter)) if err != nil { panic(err) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.69.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
OpenAI (training)
1
Resources
contrib-instrumentation-host — go get contrib-instrumentation-host · libregistry