All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wavefront.metrics.ExpectedAgentMetric Maven / Gradle / Ivy

package com.wavefront.metrics;

import com.yammer.metrics.core.MetricName;

/**
 * There are some metrics that need to have well known names.
 *
 * @author Andrew Kao ([email protected])
 */
public enum ExpectedAgentMetric {
  ACTIVE_LISTENERS(new MetricName("listeners", "", "active")),
  LISTENERS_BIND_ERRORS(new MetricName("listeners", "", "bind-errors")),
  BUFFER_BYTES_LEFT(new MetricName("buffer", "", "bytes-left")),
  BUFFER_BYTES_PER_MINUTE(new MetricName("buffer", "", "fill-rate")),
  CURRENT_QUEUE_SIZE(new MetricName("buffer", "", "task-count")),
  RDNS_CACHE_SIZE(new MetricName("listeners", "", "rdns-cache-size"));

  public MetricName metricName;

  public String getCombinedName() {
    return metricName.getGroup() + "." + metricName.getName();
  }

  ExpectedAgentMetric(MetricName metricName) {
    this.metricName = metricName;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy