Permalink
Browse files

Added current_time to metrics json

  • Loading branch information...
1 parent 4c63d6e commit 9392caf10cdfb995b4ce95bf6c72b94ddd41180f @mjg123 committed Jul 8, 2011
View
1 metrics-servlet/src/main/java/com/yammer/metrics/reporting/MetricsServlet.java
@@ -307,6 +307,7 @@ private void writeVmMetrics(JsonGenerator json, boolean showFullSamples) throws
json.writeNumberField("daemon_thread_count", daemonThreadCount());
json.writeNumberField("thread_count", threadCount());
+ json.writeNumberField("current_time", System.currentTimeMillis());
json.writeNumberField("uptime", uptime());
json.writeNumberField("fd_usage", fileDescriptorUsage());

0 comments on commit 9392caf

Please sign in to comment.