Annotations
This feature is only available in Standard Control Plane.
Annotations let you specify which Pods to observe (create metrics for).
To enable it, specify enableAnnotations=true
in Retina's Standard Control Plane helm installation or ConfigMap.
You can then add the annotation retina.sh: observe
to either:
- individual Pods
- Namespaces (to observe all the Pods in the namespace).
Note 1: If you enable Annotations, you cannot use the MetricsConfiguration
CRD to specify which Pods to observe.
Note 2: Currently the DNS plugin does not consider annotations when generating DNS metrics, so it generates metrics for all pods.