public static Result index() {
    if (_metricRegistry != null) {
      return ok(Json.toJson(_metricRegistry));
    } else {
      return ok(Json.toJson(METRICS_NOT_ENABLED));
    }
  }
The endpoint /metrics
Endpoint can be queried if metrics is enabled.

@return Will return all the metrics in Json format.
app/controllers/MetricsController.java