Documentation ¶
Index ¶
Constants ¶
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" )
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" )
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" )
const ( // Metric name to query from prometheus NodeMemoryBytesAvailableMetricName = "node:node_memory_bytes_available:sum" // Label name in prometheus metric NodeMemoryBytesAvailableLabelNode = "node" )
const ( // Metric name to query from prometheus NodeMemoryBytesTotalMetricName = "node:node_memory_bytes_total:sum" // Label name in prometheus metric NodeMemoryBytesTotalLabelNode = "node" )
const ( // Metric name to query from prometheus NodeMemoryBytesUsageMetricName = "" // Label name in prometheus metric NodeMemoryBytesUsageLabelNode = "node" )
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 ¶
func (e *ContainerCpuUsagePercentageEntity) ContainerMetric() DaoMetricTypes.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 ¶
func (e *ContainerMemoryUsageBytesEntity) ContainerMetric() DaoMetricTypes.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 ¶
func (e *NodeCpuUsagePercentageEntity) NodeMetric() DaoMetricTypes.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 ¶
func (e *NodeMemoryBytesAvailableEntity) NodeMetric() DaoMetricTypes.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 ¶
func (e *NodeMemoryBytesTotalEntity) NodeMetric() DaoMetricTypes.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 ¶
func (e *NodeMemoryBytesUsageEntity) NodeMetric() DaoMetricTypes.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 ¶
func (e *NodeMemoryUtilizationEntity) NodeMetric() DaoMetricTypes.NodeMetric
NodeMetric Build NodeMetric base on entity properties