code: private void handleGetAllMetricName(final int executorId, final HttpServletRequest req,
        final HashMap<String, Object> ret) throws IOException {
      final Map<String, Object> result;
      try {
        result =
            this.execManagerAdapter.callExecutorStats(executorId,
                ConnectorParams.STATS_GET_ALLMETRICSNAME,
                (Pair<String, String>[]) null);
  
        if (result.containsKey(ConnectorParams.RESPONSE_ERROR)) {
          ret.put("error", result.get(ConnectorParams.RESPONSE_ERROR).toString());
        } else {
          ret.put("metricList", result.get("data"));
        }
      } catch (final ExecutorManagerException e) {
        logger.error(e.getMessage(), e);
        ret.put("error", "Failed to fetch metric names for executor : "
            + executorId);
      }
    }
docs: Get all metrics tracked by the given executor