compat

package
v0.0.0-...-edcf33a Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPU

type CPU struct{}

CPU converts node_exporter cpu labels from 0-indexed to 1-indexed with prefix

func (CPU) Decorate

func (CPU) Decorate(mfs []*dto.MetricFamily)

Decorate executes the decorator against the give metrics

func (CPU) Name

func (c CPU) Name() string

Name is the name of this decorator

type Disk

type Disk struct{}

Disk converts node_exporter disk metrics from bytes to sectors

func (Disk) Decorate

func (Disk) Decorate(mfs []*dto.MetricFamily)

Decorate converts bytes to sectors

func (Disk) Name

func (d Disk) Name() string

Name is the name of this decorator

type Names

type Names struct{}

Names converts node_exporter metric names to sonar names

func (Names) Decorate

func (Names) Decorate(mfs []*dto.MetricFamily)

Decorate decorates the provided metrics for compatibility

func (Names) Name

func (n Names) Name() string

Name is the name of this decorator

Jump to

Keyboard shortcuts

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