Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added vm name and version to metrics json

  • Loading branch information...
commit 4c63d6e40ffdec5ae1794b7e74aae780ffd4310f 1 parent 61d6513
Matthew Gilliard authored
7 metrics-servlet/src/main/java/com/yammer/metrics/reporting/MetricsServlet.java
View
@@ -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();
{
Please sign in to comment.
Something went wrong with that request. Please try again.