src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/web/NamenodeAnalyticsMethods.java
@GET
  @Path("/metrics")
  @Produces({MediaType.APPLICATION_JSON})
  public Response metrics() {
    try {
      before();
      final UsageMetrics usageMetrics = (UsageMetrics) context.getAttribute(NNA_USAGE_METRICS);
      return Response.ok(usageMetrics.getUserMetricsJson(), MediaType.APPLICATION_JSON).build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
/**
   * METRICS endpoint is meant to return information on the users and the amount of queries they are
   * making.
   */
METRICS endpoint is meant to return information on the users and the amount of queries they are
making.
METRICS endpoint is meant to return information on the users and the amount of queries they are making .
@GET
  @Path("/metrics")
  @Produces({MediaType.APPLICATION_JSON})
  public Response metrics() {
    try {
      before();
      final UsageMetrics usageMetrics = (UsageMetrics) context.getAttribute(NNA_USAGE_METRICS);
      return Response.ok(usageMetrics.getUserMetricsJson(), MediaType.APPLICATION_JSON).build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
@ GET @ Path ( "/metrics" ) @ Produces ( { MediaType . APPLICATION_JSON } ) public Response metrics ( ) { try { before ( ) ; final UsageMetrics usageMetrics = ( UsageMetrics ) context . getAttribute ( NNA_USAGE_METRICS ) ; return Response . ok ( usageMetrics . getUserMetricsJson ( ) , MediaType . APPLICATION_JSON ) . build ( ) ; } catch ( Exception ex ) { return handleException ( ex ) ; } finally { after ( ) ; } }
METRICS endpoint is meant to return information on the users and the amount of queries they are
 making.
METRICS endpoint is meant to return information on the users and the amount of queries they are making .