Permalink
Browse files

Added vm name and version to metrics json

  • Loading branch information...
1 parent 61d6513 commit 4c63d6e40ffdec5ae1794b7e74aae780ffd4310f @mjg123 committed Jul 8, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 metrics-servlet/src/main/java/com/yammer/metrics/reporting/MetricsServlet.java
@@ -282,6 +282,13 @@ private void writeVmMetrics(JsonGenerator json, boolean showFullSamples) throws
json.writeStartObject();
{
+ json.writeFieldName("vm");
+ json.writeStartObject();
+ {
+ json.writeStringField("name", vmName());
+ json.writeStringField("version", vmVersion());
+ }
+ json.writeEndObject();
json.writeFieldName("memory");
json.writeStartObject();
{

0 comments on commit 4c63d6e

Please sign in to comment.