| 1 |
// Copyright The OpenTelemetry Authors |
| 2 |
// SPDX-License-Identifier: Apache-2.0 |
| 3 |
|
| 4 |
// Package host provides the conventional host metric instruments |
| 5 |
// specified by OpenTelemetry. Host metric events are sometimes |
| 6 |
// collected through the OpenTelemetry Collector "hostmetrics" |
| 7 |
// receiver running as an agent; this instrumentation is an |
| 8 |
// alternative for processes that want to record the same information |
| 9 |
// without an agent. |
| 10 |
// |
| 11 |
// The metric events produced are listed here with attribute dimensions. |
| 12 |
// |
| 13 |
// Name Attribute |
| 14 |
// |
| 15 |
// ---------------------------------------------------------------------- |
| 16 |
// |
| 17 |
// process.cpu.time state=user|system |
| 18 |
// system.cpu.time state=user|system|other|idle |
| 19 |
// system.memory.usage state=used|available |
| 20 |
// system.memory.utilization state=used|available |
| 21 |
// system.network.io direction=transmit|receive |
| 22 |
// |
| 23 |
// See https://github.com/open-telemetry/oteps/blob/main/text/0119-standard-system-metrics.md |
| 24 |
// for the definition of these metric instruments. |
| 25 |
package host // import "go.opentelemetry.io/contrib/instrumentation/host" |