Reputation: 305
Hikaricp , Tomcat and jdbc metrics are not being exported to DataDog
we have setup springboot app to push the metrics to datadoghq, it does export 60 metrics, however the metrics like hikaricp, tomcat and jdbc are missing.
hikaricp, tomcat and jdbc - these mertics are listed under /actuator/metrics
endpoint, but not exported to datadog.
springBootVersion = '2.3.3.RELEASE'
springCloudVersion = 'Hoxton.SR7'
implementation 'io.micrometer:micrometer-registry-datadog:latest.release'
Is there any additional settings required to push hikaricp, tomcat and jdbc metrics ?
Upvotes: 2
Views: 3441
Reputation: 305
This did the trick : Thanks to @MarkBramnik
@Bean
@Primary
CompositeMeterRegistry compositeMeterRegistry(DatadogMeterRegistry datadogMeterRegistry, LoggingMeterRegistry loggingMeterRegistry) {
CompositeMeterRegistry compositeMeterRegistry = new CompositeMeterRegistry();
compositeMeterRegistry.add(datadogMeterRegistry);
compositeMeterRegistry.add(loggingMeterRegistry);
return compositeMeterRegistry;
}
Upvotes: 3
Reputation: 42461
Usually metrics exposed to /actuator/metrics
are sent to the metrics system like datadog.
You can try to check what exactly gets sent to datadog by examining the source code of DatadogMeterRegistry
Put a breakpoint in the publish method and see what gets sent, or, alternatively set the logger of the class to "trace" so that it will print the information that gets sent to the datadog (line 131 in the linked source code).
Another possible direction to check is usage of filters (see MeterFilter) that can filter out some metrics.
Upvotes: 3