'Datadog metrics are not shown in Datadog dashboard due to datadog agent crash and redeploy

I'm using the java dogstatsd client for sending metrics. The issue started when the Datadog agent crashed. Although the agent is redeployed again the metrics are stopped to be shown in the Datadog dashboard. I see my log trace after calling the statsd client but the metrics are not shown in the datadog dashboard. Is there a reconnection issue between the java dogstatsd client and datadog agent?

The Java application uses:

Gradle 6.3
springboot': '2.3.0.RELEASE
java-dogstatsd-client 3.0.0


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source