Class GangliaSink31

All Implemented Interfaces:
MetricsPlugin, MetricsSink

public class GangliaSink31 extends GangliaSink30
This code supports Ganglia 3.1
  • Field Details

    • LOG

      public final org.slf4j.Logger LOG
  • Constructor Details

    • GangliaSink31

      public GangliaSink31()
  • Method Details

    • emitMetric

      protected void emitMetric(String groupName, String name, String type, String value, org.apache.hadoop.metrics2.sink.ganglia.GangliaConf gConf, AbstractGangliaSink.GangliaSlope gSlope) throws IOException
      The method sends metrics to Ganglia servers. The method has been taken from org.apache.hadoop.metrics.ganglia.GangliaContext31 with minimal changes in order to keep it in sync.
      Overrides:
      emitMetric in class GangliaSink30
      Parameters:
      groupName - The group name of the metric
      name - The metric name
      type - The type of the metric
      value - The value of the metric
      gConf - The GangliaConf for this metric
      gSlope - The slope for this metric
      Throws:
      IOException - raised on errors performing I/O.