Package co.cask.cdap.common.metrics

Examples of co.cask.cdap.common.metrics.MetricsCollector.increment()


        LOG.trace("total cluster storage = " + storageCapacity + " total used = " + totalUsed);
        collector.increment("resources.total.storage", (int) (storageCapacity / 1024 / 1024));
        collector.increment("resources.available.storage", (int) (storageAvailable / 1024 / 1024));
        collector.increment("resources.used.storage", (int) (totalUsed / 1024 / 1024));
        collector.increment("resources.used.files", (int) totalFiles);
        collector.increment("resources.used.directories", (int) totalDirectories);
      } catch (IOException e) {
        LOG.warn("Exception getting hdfs metrics", e);
      }
    }
View Full Code Here


  protected void sendMetrics(String context, int containers, int memory, int vcores) {
    LOG.trace("Reporting resources in context {}: (containers, memory, vcores) = ({}, {}, {})",
              context, containers, memory, vcores);
    MetricsCollector collector = collectionService.getCollector(MetricsScope.SYSTEM, context, "0");
    collector.increment(METRIC_CONTAINERS, containers);
    collector.increment(METRIC_MEMORY_USAGE, memory);
    collector.increment(METRIC_VIRTUAL_CORE_USAGE, vcores);
  }

  protected MetricsCollector getCollector(String context) {
View Full Code Here

  protected void sendMetrics(String context, int containers, int memory, int vcores) {
    LOG.trace("Reporting resources in context {}: (containers, memory, vcores) = ({}, {}, {})",
              context, containers, memory, vcores);
    MetricsCollector collector = collectionService.getCollector(MetricsScope.SYSTEM, context, "0");
    collector.increment(METRIC_CONTAINERS, containers);
    collector.increment(METRIC_MEMORY_USAGE, memory);
    collector.increment(METRIC_VIRTUAL_CORE_USAGE, vcores);
  }

  protected MetricsCollector getCollector(String context) {
    return collectionService.getCollector(MetricsScope.SYSTEM, context, "0");
View Full Code Here

    LOG.trace("Reporting resources in context {}: (containers, memory, vcores) = ({}, {}, {})",
              context, containers, memory, vcores);
    MetricsCollector collector = collectionService.getCollector(MetricsScope.SYSTEM, context, "0");
    collector.increment(METRIC_CONTAINERS, containers);
    collector.increment(METRIC_MEMORY_USAGE, memory);
    collector.increment(METRIC_VIRTUAL_CORE_USAGE, vcores);
  }

  protected MetricsCollector getCollector(String context) {
    return collectionService.getCollector(MetricsScope.SYSTEM, context, "0");
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.