Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 966 Bytes

annotations.md

File metadata and controls

22 lines (16 loc) · 966 Bytes

Enabling Annotation Emission

If interested in filtering or aggregating by Kubernetes Annotations when using the Allocation API, you will need to enable annotation emission. This will configure your Kubecost installation to generate the kube_pod_annotations and kube_namespace_annotations metrics as listed here.

You can enable it in your values.yaml:

kubecostMetrics:
  emitPodAnnotations: true
  emitNamespaceAnnotations: true

Or enable it via your helm install or helm upgrade command:

helm upgrade -i kubecost kubecost/cost-analyzer \
  --namespace kubecost \
  --set kubecostMetrics.emitNamespaceAnnotations=true \
  --set kubecostMetrics.emitPodAnnotations=true

Note: These flags can be set independently. Setting one of these to true and the other to false will omit one and not the other.