Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MetricName Metric name to query from prometheus MetricName = "container_memory_usage_bytes" // NamespaceLabel Namespace label name in the metric NamespaceLabel = "namespace" // PodLabelName pod label name in the metric PodLabelName = "pod_name" // ContainerLabel container label name in the metric ContainerLabel = "container_name" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entity ¶
type Entity struct { PrometheusEntity prometheus.Entity Namespace string PodName string ContainerName string Samples []metric.Sample }
Entity Container memory usage bytes entity
func NewEntityFromPrometheusEntity ¶
func NewEntityFromPrometheusEntity(e prometheus.Entity) Entity
NewEntityFromPrometheusEntity New entity with field value assigned from prometheus entity
func (*Entity) ContainerMetric ¶
func (e *Entity) ContainerMetric() metric_dao.ContainerMetric
ContainerMetric Build ContainerMetric base on entity properties
Click to show internal directories.
Click to hide internal directories.