This section describes how to set up Allocate your DPS costs in Kubernetes-based deployments.
Cost Allocation is supported for different Kubernetes deployment models.
Use Kubernetes Metadata Enrichment to configure
When configuring metadata enrichment, set the Target to dt.cost.costcenter
or dt.cost.product
as is appropriate.
For more information, see Kubernetes Metadata Enrichment.
Kubernetes Metadata Enrichment settings do not apply to Kubernetes clusters that have a cluster-specific rule set.
To configure the data enrichment on the Kubernetes cluster level, go to Kubernetes > [Kubernetes Cluster] > Settings > Enrichment rules.
Use Dynakube custom resources to configure
Pass the configuration via the args
parameter in the DynaKube parameters for Dynatrace Operator.
The code block provides a snippet from the configuration file to show the usage of --set-host-tag=dt.cost.costcenter=<cost-center>
and --set-host-tag=dt.cost.product=<product>
.
spec:apiUrl: https://<environment-id>.live.dynatrace.com/apioneAgent:cloudNativeFullStack:args:- --set-host-tag=dt.cost.costcenter=it_services- --set-host-tag=dt.cost.product=fin_app
Use dedicated pod annotations to configure Cost Allocation on a Kubernetes Platform Monitoring + Application observability deployment.
You can enrich your data using dedicated pod annotations, for example by creating the following annotations at the pod level:
metadata:annotations:metadata.dynatrace.com/dt.cost.costcenter: it_servicesmetadata.dynatrace.com/dt.cost.product: fin_app
To add or modify global enrichment settings:
To remove global enrichment settings: