nodeCPUUsagePercentage

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MetricName Metric name to query from prometheus
	MetricNameSum = "node:node_num_cpu:sum"
	MetricNameAvg = "node:node_cpu_utilisation:avg1m"
	// NodeLabel Node label name in the metric
	NodeLabel = "node"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity struct {
	PrometheusEntity InternalPromth.Entity

	NodeName string
	Samples  []metric.Sample
}

Entity node cpu usage percentage entity

func NewEntityFromPrometheusEntity

func NewEntityFromPrometheusEntity(e InternalPromth.Entity) Entity

NewEntityFromPrometheusEntity New entity with field value assigned from prometheus entity

func (*Entity) NodeMetric

func (e *Entity) NodeMetric() DaoMetric.NodeMetric

NodeMetric Build NodeMetric base on entity properties

Jump to

Keyboard shortcuts

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