code: public void recordMetrics(String processName, JsonObject metricsData) {
      for (Map.Entry<String, JsonElement> entry : metricsData.entrySet()) {
        metrics.count(processName + "." + entry.getKey(),
                      Math.round(entry.getValue().getAsFloat()));
      }
    }
docs: This methods logs the received metrics into the underlying {@link Metrics} object.
  This method should be invoked every time metrics are received from a SQL Compiler process.
  
  @param processName Name of the process which sent these metrics
  @param metricsData The metrics sent by the process in a JSON format