private static void updateDeltaMetrics(String dbName, String tblName, String partitionName,
      CompactionMetricsMetricType type, int numDeltas, int deltasThreshold, IMetaStoreClient client) throws TException {
    CompactionMetricsDataStruct struct = new CompactionMetricsDataStruct();
    struct.setDbname(dbName);
    struct.setTblname(tblName);
    struct.setPartitionname(partitionName);
    struct.setType(type);
    struct.setMetricvalue(numDeltas);
    struct.setVersion(0);
    struct.setThreshold(deltasThreshold);
    if (!client.updateCompactionMetricsData(struct)) {
      LOG.warn("Compaction metric data cannot be updated because of version mismatch.");
    }
  }
Collect and publish ACID and compaction related metrics.
Everything should be behind 2 feature flags: {@link MetastoreConf.ConfVars#METRICS_ENABLED} and
{@link MetastoreConf.ConfVars#METASTORE_ACIDMETRICS_THREAD_ON}.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/metrics/AcidMetricService.java