cgroups

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(group string, opts ...Option) (metric.Registration, error)

func Version

func Version() string

Types

type Controller

type Controller int
const (
	ControllerUndefined Controller = iota // undefined
	ControllerPids                        // pids
	ControllerCPU                         // cpu
	ControllerMemory                      // memory
	ControllerRdma                        // rdma
	ControllerIo                          // io
)

func ParseController

func ParseController(in string) (Controller, error)

func (Controller) String

func (i Controller) String() string

type Option

type Option func(*config)

Option supports configuring optional settings for runtime metrics.

func WithControllers

func WithControllers(ctrls ...Controller) Option

func WithPrefic

func WithPrefic(name string) Option

func WithProvider

func WithProvider(provider metric.MeterProvider) Option

Jump to

Keyboard shortcuts

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