We followed this guide to setup Datadog (with some adjustments to only enable logging).
We also enabled logging for nginx-ingress-controller after seeing it referenced here:
The nginx logs do appear in Datadog, which is great - however, they come through with the source set to controller:
We would like them to instead come through with the source matching the integration name: nginx-ingress-controller (the integration name from the Datadog docs) to benefit from the Datadog’s automatic setup for integrations.
How do we set the source of nginx-ingress-controller to nginx-ingress-controller?
From what I can follow, Datadog says here: Kubernetes log collection that I should be able to some how set a Pod label like tags.datadoghq.com/service: "<SERVICE>"
In our specific case, I believe setting this to nginx-ingress-controller (the name of the Datadog integration) will lead to Datadog auto formatting the nginx logs for us.
If possible, I’m looking for a way to add this pod label in Qovery.