cpumeter

package
v0.0.0-...-127139c Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: GPL-2.0 Imports: 12 Imported by: 1

Documentation

Overview

Implement a capacity grpc server using cpu and ram percentages for capacity.

Index

Constants

View Source
const (
	PROC_1        string = "/proc/1/attr/current"
	NOT_CONTAINER string = "unconfined"
)
View Source
const CHECK_INTERVAL time.Duration = 30 * time.Second

Variables

This section is empty.

Functions

func Add

func Add(parentCtx context.Context, s *grpc.Server) error

func IsContainer

func IsContainer() (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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