-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use VM hostname for logs, traces and metrics #129
Conversation
c1cf122
to
b1bb120
Compare
Hi @NouemanKHAL, We came across this merge request since it might be related to an issue that we are currently debugging regarding the newest update of the Datadog buildpack in our cloud foundry installation. As a background:
Now to the issue: After updating the buildpack (which included this change), the logs and metrics of those containers don't only get tagged with the application tags but additionally with tags configured for the Cluster Monitoring. We assume this happened since this MR sets the hostname of the logs to the hostname of our Diego Cells. The container/application logs are assigned to be logs of the infrastructure host instead of the container instance. Since the tags of our cloud foundry containers and the tags configured for the cluster agent configuration get joined, we don't have unique tags anymore (e. g. the billing assignment tag gets assigned twice: once coming from the infrastructure host mentioning the platform team -> This issue affects our billing and some more logic that relies on the uniqueness of tags. Is there a specific reason for this change or is it possible to add a switch to enable/disable this hostname identification? We will also open a Datadog ticket that links to this MR. Best regards |
Hi, We did consider containers being seen as host a bug, which is the reason that change. Presumably you don't have We can introduce a flag to change the buildpack behavior if that solves your issue. Thanks. |
Hi, We understand that containers showing up as hosts is a bug. We would also prefer to have our cloud foundry containers show up as "containers running on a host" (which currently is not the case - neither with this change nor without). We did not set It would be great if the Cloud Foundry containers would get recognized as containers running on a host. However, unlike k8s, this does not seem to be supported for Cloud Foundry. The best solution would be to fix the handling of containers for cloud foundry. |
It is supported, but it's possible there is an issue in your setup. Do you mind opening a ticket so we can track this down? Thanks. |
Thanks for the update! We've updated the ticket referencing this PR to figure out potential issues in our setup. |
Send traces, logs and metrics using the Host VM's hostname and tagging them accordingly with their application_name, instance_index...