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 in our Kubecost Metrics doc.
You can enable it in your values.yaml:
You can also enable it via your helm install
or helm upgrade
command:
These flags can be set independently. Setting one of these to true and the other to false will omit one and not the other.