I am using dropwizard codahale metrics library to send the metrics data to the graphite server. However, now i have a requirement that these metrics data are to be written to a file instead of being pushed to the graphite server. The data in these files can be later pushed to the graphite server when required.
Is there any way to achieve this? Especially the part where the metrics are to be written to an intermediate file instead of being sent to the server, in such a format, that it can be pushed to the graphite server when necessary?