Examples of gauge()


Examples of co.cask.tigon.metrics.MetricsCollector.gauge()

  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.gauge(METRIC_CONTAINERS, containers);
    collector.gauge(METRIC_MEMORY_USAGE, memory);
    collector.gauge(METRIC_VIRTUAL_CORE_USAGE, vcores);
  }

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

Examples of co.cask.tigon.metrics.MetricsCollector.gauge()

  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.gauge(METRIC_CONTAINERS, containers);
    collector.gauge(METRIC_MEMORY_USAGE, memory);
    collector.gauge(METRIC_VIRTUAL_CORE_USAGE, vcores);
  }

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

Examples of co.cask.tigon.metrics.MetricsCollector.gauge()

    LOG.trace("Reporting resources in context {}: (containers, memory, vcores) = ({}, {}, {})",
              context, containers, memory, vcores);
    MetricsCollector collector = collectionService.getCollector(MetricsScope.SYSTEM, context, "0");
    collector.gauge(METRIC_CONTAINERS, containers);
    collector.gauge(METRIC_MEMORY_USAGE, memory);
    collector.gauge(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.