metric

package
v4.2.502+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Metric name to query from prometheus
	ContainerCpuUsagePercentageMetricName = "namespace_pod_name_container_name:container_cpu_usage_seconds_total:sum_rate"

	// Label name in prometheus metric
	ContainerCpuUsagePercentageLabelNamespace     = "namespace"
	ContainerCpuUsagePercentageLabelPodName       = "pod_name"
	ContainerCpuUsagePercentageLabelContainerName = "container_name"
)
View Source
const (
	// Metric name to query from prometheus
	ContainerMemoryUsageBytesMetricName = "container_memory_usage_bytes"

	// Label name in prometheus metric
	ContainerMemoryUsageBytesLabelNamespace     = "namespace"
	ContainerMemoryUsageBytesLabelPodName       = "pod_name"
	ContainerMemoryUsageBytesLabelContainerName = "container_name"
)
View Source
const (
	// Metric name to query from prometheus
	NodeCpuUsagePercentageMetricNameSum = "node:node_num_cpu:sum"
	NodeCpuUsagePercentageMetricNameAvg = "node:node_cpu_utilisation:avg1m"

	// Label name in prometheus metric
	NodeCpuUsagePercentageLabelNode = "node"
)
View Source
const (
	// Metric name to query from prometheus
	NodeMemoryBytesAvailableMetricName = "node:node_memory_bytes_available:sum"

	// Label name in prometheus metric
	NodeMemoryBytesAvailableLabelNode = "node"
)
View Source
const (
	// Metric name to query from prometheus
	NodeMemoryBytesTotalMetricName = "node:node_memory_bytes_total:sum"

	// Label name in prometheus metric
	NodeMemoryBytesTotalLabelNode = "node"
)
View Source
const (
	// Metric name to query from prometheus
	NodeMemoryBytesUsageMetricName = ""

	// Label name in prometheus metric
	NodeMemoryBytesUsageLabelNode = "node"
)
View Source
const (
	// Metric name to query from prometheus
	NodeMemoryUtilizationMetricName = "node:node_memory_utilisation_2:"

	// Label name in prometheus metric
	NodeMemoryUtilizationLabelNode = "node"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerCpuUsagePercentageEntity

type ContainerCpuUsagePercentageEntity struct {
	PrometheusEntity InternalPromth.Entity

	Namespace     string
	PodName       string
	ContainerName string
	Samples       []metric.Sample
}

Entity Container cpu usage percentage entity

func NewContainerCpuUsagePercentageEntity

func NewContainerCpuUsagePercentageEntity(e InternalPromth.Entity) ContainerCpuUsagePercentageEntity

NewEntityFromPrometheusEntity New entity with field value assigned from prometheus entity

func (*ContainerCpuUsagePercentageEntity) ContainerMetric

ContainerMetric Build ContainerMetric base on entity properties

type ContainerMemoryUsageBytesEntity

type ContainerMemoryUsageBytesEntity struct {
	PrometheusEntity InternalPromth.Entity

	Namespace     string
	PodName       string
	ContainerName string
	Samples       []metric.Sample
}

Entity Container memory usage bytes entity

func NewContainerMemoryUsageBytesEntity

func NewContainerMemoryUsageBytesEntity(e InternalPromth.Entity) ContainerMemoryUsageBytesEntity

NewEntityFromPrometheusEntity New entity with field value assigned from prometheus entity

func (*ContainerMemoryUsageBytesEntity) ContainerMetric

ContainerMetric Build ContainerMetric base on entity properties

type NodeCpuUsagePercentageEntity

type NodeCpuUsagePercentageEntity struct {
	PrometheusEntity InternalPromth.Entity

	NodeName string
	Samples  []metric.Sample
}

Entity node cpu usage percentage entity

func NewNodeCpuUsagePercentageEntity

func NewNodeCpuUsagePercentageEntity(e InternalPromth.Entity) NodeCpuUsagePercentageEntity

NewEntityFromPrometheusEntity New entity with field value assigned from prometheus entity

func (*NodeCpuUsagePercentageEntity) NodeMetric

NodeMetric Build NodeMetric base on entity properties

type NodeMemoryBytesAvailableEntity

type NodeMemoryBytesAvailableEntity struct {
	PrometheusEntity InternalPromth.Entity

	NodeName string
	Samples  []metric.Sample
}

Entity Node memory available entity

func NewNodeMemoryBytesAvailableEntity

func NewNodeMemoryBytesAvailableEntity(e InternalPromth.Entity) NodeMemoryBytesAvailableEntity

NewEntityFromPrometheusEntity New entity with field value assigned from prometheus entity

func (*NodeMemoryBytesAvailableEntity) NodeMetric

NodeMetric Build NodeMetric base on entity properties

type NodeMemoryBytesTotalEntity

type NodeMemoryBytesTotalEntity struct {
	PrometheusEntity InternalPromth.Entity

	NodeName string
	Samples  []metric.Sample
}

Entity Node total memory entity

func NewNodeMemoryBytesTotalEntity

func NewNodeMemoryBytesTotalEntity(e InternalPromth.Entity) NodeMemoryBytesTotalEntity

NewEntityFromPrometheusEntity New entity with field value assigned from prometheus entity

func (*NodeMemoryBytesTotalEntity) NodeMetric

NodeMetric Build NodeMetric base on entity properties

type NodeMemoryBytesUsageEntity

type NodeMemoryBytesUsageEntity struct {
	PrometheusEntity InternalPromth.Entity

	NodeName string
	Samples  []metric.Sample
}

Entity Node memory usage bytes entity

func NewNodeMemoryBytesUsageEntity

func NewNodeMemoryBytesUsageEntity(e InternalPromth.Entity) NodeMemoryBytesUsageEntity

NewEntityFromPrometheusEntity New entity with field value assigned from prometheus entity

func (*NodeMemoryBytesUsageEntity) NodeMetric

NodeMetric Build NodeMetric base on entity properties

type NodeMemoryUtilizationEntity

type NodeMemoryUtilizationEntity struct {
	PrometheusEntity InternalPromth.Entity

	NodeName string
	Samples  []metric.Sample
}

Entity Node memory usage bytes entity

func NewNodeMemoryUtilizationEntity

func NewNodeMemoryUtilizationEntity(e InternalPromth.Entity) NodeMemoryUtilizationEntity

NewEntityFromPrometheusEntity New entity with field value assigned from prometheus entity

func (*NodeMemoryUtilizationEntity) 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