builtins

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

Package builtins marshals internal (non-plugin) metric collectors (e.g. procfs, wmi, etc.)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builtins

type Builtins struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Builtins defines the internal metric collector manager

func New

func New(ctx context.Context) (*Builtins, error)

New creates a new builtins manager

func (*Builtins) Flush

func (b *Builtins) Flush(id string) *cgm.Metrics

Flush returns current metrics for all collectors

func (*Builtins) IsBuiltin

func (b *Builtins) IsBuiltin(id string) bool

IsBuiltin determines if an id is a builtin or not

func (*Builtins) Run

func (b *Builtins) Run(ctx context.Context, id string) error

Run triggers internal collectors to gather metrics

Directories

Path Synopsis
generic
Package generic provides more cross-platform support for collecting basic system metrics
Package generic provides more cross-platform support for collecting basic system metrics
linux/procfs
Package procfs builtin linux-specific collector for /proc filesystem (replaces old nad shell plugins)
Package procfs builtin linux-specific collector for /proc filesystem (replaces old nad shell plugins)
windows/nvidia
Package nvidia collects GPU metrics using nvidia-smi.exe
Package nvidia collects GPU metrics using nvidia-smi.exe

Jump to

Keyboard shortcuts

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