NaN for tomcatServletRequest metrics export to Graphite #452
Closed
Description
We're seeing errors with Micrometer 1.0.0 exporting Tomcat metrics to Graphite, on Spring Boot 1.5.10. Here's the output from Graphite's Carbon logs:
[2018-02-21T12:27:37.437+0100] INFO [tcp] parse failed {"error": "bad message: \"services.bp.file-storage.dev.all.file-storage-4289024796-e8bq3.tomcatServletRequest.name.default.mean NaN 1519212457\\n\"", "peer": "10.149.18.190:37792"}
[2018-02-21T12:27:37.437+0100] INFO [tcp] parse failed {"error": "bad message: \"services.bp.file-storage.dev.all.file-storage-4289024796-e8bq3.tomcatServletRequest.name.default.p50 NaN 1519212457\\n\"", "peer": "10.149.18.190:37792"}
It's only for the tomcatServletRequest.name.default.p50
and tomcatServletRequest.name.default.mean
metrics. Others in the namespace export without errors.
Out configuration is:
management.metrics.export.graphite.protocol=plaintext
management.metrics.export.graphite.step=PT10S
and beyond we have a custom implementation of HierarchicalNameMapper
, that adds the prefix of storage.dev.all...
.
Is that a bug? Any idea what could be causing it?