# Functions
GetLabel returns desired label from the given metric, or "" if not present.
NewContainerMetadataEnricher returns an Enricher configured for container events.
NewContainerMetrics creates an empty ContainerMetrics object.
NewContainerStore creates an empty ContainerStore object.
NewFloat64Metrics returns a Float64Metric given a float64 value.
NewMetricsRepo creates an empty MetricsRepo object.
NewNodeMetrics creates an empty NodeMetrics object.
NewNodeStore creates an empty NodeStore object.
NewPodId returns a new PodId object given a Namespace and a Pod name.
NewPodStore creates an empty PodStore object.
NewResourceMetadataEnricher returns an Enricher configured for kubernetes resource events.
# Structs
ContainerMetrics contains all the metrics for a Container.
ContainerStore contains the name of a container and its metrics.
Float64Metric is a wrapper for a float64 primitive type.
MetricsRepo contains a set of (nodeName, NodeStore) for each Node in the cluster.
NodeMetrics contains all the metrics for a Node.
NodeStore contains the name of the node, the metrics for a Node and a set of (podId, PodStore) entries for each Pod under that Node.
PodId defines a composite key for a Pod in NodeStore.
PodStore contains the PodId of that Pod and a set of (containerName, ContainerStore) entries for each Container under a Pod.
# Interfaces
Enricher takes Kubernetes events and enrich them with k8s metadata.