collector

package
v1.0.0-rc.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Namespace = "cgroup"
)

Variables

View Source
var (
	CgroupRoot = kingpin.Flag("path.cgroup.root", "Root path to cgroup fs").Default(defCgroupRoot).String()

	ProcRoot = kingpin.Flag("path.proc.root", "Root path to proc fs").Default(defProcRoot).String()
)

Functions

This section is empty.

Types

type CgroupMetric

type CgroupMetric struct {
	// contains filtered or unexported fields
}

type Collector

type Collector interface {
	// Get new metrics and expose them via prometheus registry.
	Describe(ch chan<- *prometheus.Desc)
	Collect(ch chan<- prometheus.Metric)
}

func NewCgroupCollector

func NewCgroupCollector(cgroupV2 bool, paths []string, logger log.Logger) Collector

func NewCgroupV1Collector

func NewCgroupV1Collector(paths []string, logger log.Logger) Collector

func NewCgroupV2Collector

func NewCgroupV2Collector(paths []string, logger log.Logger) Collector

type Exporter

type Exporter struct {
	// contains filtered or unexported fields
}

func NewExporter

func NewExporter(paths []string, logger log.Logger, cgroupv2 bool) *Exporter

func (*Exporter) Collect

func (e *Exporter) Collect(ch chan<- prometheus.Metric)

func (*Exporter) Describe

func (e *Exporter) Describe(ch chan<- *prometheus.Desc)

Jump to

Keyboard shortcuts

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