Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MetricName Metric name to query from prometheus MetricName = "node:node_memory_utilisation_2:" // 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 memory usage bytes 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
Click to show internal directories.
Click to hide internal directories.