java utility to collect metrics in datadog