gohai

package
v0.100.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

package gohai provides system information like cpu, memory in a format that is expected by the datadog intake

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPayload

func NewPayload(logger *zap.Logger) gohai.Payload

NewPayload builds a payload of every metadata collected with gohai except processes metadata. Parts of this are based on datadog-agent code https://github.com/DataDog/datadog-agent/blob/94a28d9cee3f1c886b3866e8208be5b2a8c2c217/pkg/metadata/internal/gohai/gohai.go#L27-L32

func NewProcessesPayload

func NewProcessesPayload(hostname string, logger *zap.Logger) *gohai.ProcessesPayload

NewProcessesPayload builds a payload of processes metadata collected from gohai.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL