Registry / utility / datadog-datadog-agent-pkg-util-cgroups

datadog-datadog-agent-pkg-util-cgroups

JSON →
library0.71.2gogounverified

Helpers to extract information from Linux cgroups, supporting v1 and v2.

go get github.com/DataDog/datadog-agent/pkg/util/cgroups
INSTALL
IMPORT
SIG · DATADOG-DATADOG-AG
D
datadog-datadog-agent-pkg-util-cgroups
utilitygov0.71.2
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.

cgroups
github.com/DataDog/datadog-agent/pkg/util/cgroups

Reads cgroup information for a given process ID.

package main import ( "fmt" "github.com/DataDog/datadog-agent/pkg/util/cgroups" ) func main() { reader := cgroups.NewReader() cgroup, err := reader.GetCgroupForPID(1) if err != nil { panic(err) } fmt.Println(cgroup.ContainerID()) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
datadog-datadog-agent-pkg-util-cgroups — go get datadog-datadog-agent-pkg-util-cgroups · libregistry