Services show up as app-z1234abcd in Datadog
In Datadog,kube_service, container_name and similar tags carry the Kubernetes names Qovery generates, such as app-z1a2b3c4d, not the names you gave your services. Dashboards are hard to read, and filtering by team or environment is not possible.
Fix: add Unified Service Tagging labels
Attach the Datadog standard labels to your services with Labels & Annotations:-
Go to Organization Settings, then Labels & Annotations, and add a label group with:
Add your own labels too, for example
team: payments. - Assign the label group to the service.
- Redeploy the service. Labels are applied at deployment.
service, env and version tags on the metrics, logs and traces of the service. See Unified Service Tagging.
Label groups apply to applications, cron jobs, lifecycle jobs and databases. For a Helm service, set the labels in the values of the chart.
Alternative: turn environment variables into tags
The Datadog agent can also copy environment variables of a container into tags. This was the usual workaround before labels were available, and it still works. In the values of your Datadog Helm service:SERVICE_DISPLAY_NAME and TEAM variables on your services, redeploy them, then redeploy the Datadog service. These tags are attached to containers, not to pods, so pod-level views in Datadog do not show them.
Logs are missing or the deployment fails after adding a Datadog log annotation
You added a Datadog autodiscovery annotation to a service, for example:Logs are missing or untagged
The Datadog agent reads the annotation after the pod starts. A mistake in it changes what the agent collects, not how the pod is scheduled or becomes ready. Check these points in the annotation group:- The key names the container. The part between
ad.datadoghq.com/and.logsmust be the name of the container in the pod, not the name of the service in Qovery. Get it withkubectl get pod <pod-name> -n <namespace> -o jsonpath='{.spec.containers[*].name}'. - The value is valid JSON. It must be a JSON array, with double quotes around every key and string. A trailing comma or single quotes make it invalid.
- The scope is right. Datadog reads autodiscovery annotations on pods. Set the scope of the annotation group to pods.
The deployment fails
The agent does not take part in the rollout, so look for the cause in the deployment itself. Open the deployment logs and the Kubernetes events of the service, and read the first error line. If it mentions the annotation, Kubernetes rejected its key: a key is an optional prefix, a/, and a name of at most 63 characters made of letters, digits, -, _ and ..
Uninstall the Datadog agent
How you remove the agent depends on how it was installed. Installed as a Qovery Helm service (the method in the Datadog guide): stop the Datadog Helm service, then delete it (three-dot menu, Remove helm). Deleting a Helm service removes all the Kubernetes resources created by the chart. From the CLI:qovery helm stop -n <datadog-service> --watch, then qovery helm delete -n <datadog-service> --watch. These commands use the organization, project and environment selected with qovery context set; run it first, or add --organization, --project and --environment. See Delete a Helm service.
Installed by hand with Helm or kubectl: connect to the cluster (see Connect to your cluster) and remove it the same way:
DD_* variables of your services, then redeploy them.