MetricsPlugin, MetricsSinkGangliaSink31public class GangliaSink30 extends AbstractGangliaSink
AbstractGangliaSink.GangliaConfType, AbstractGangliaSink.GangliaSlope| Modifier and Type | Field | Description |
|---|---|---|
org.slf4j.Logger |
LOG |
BUFFER_SIZE, DEFAULT_DMAX, DEFAULT_MULTICAST_ENABLED, DEFAULT_MULTICAST_TTL, DEFAULT_PORT, DEFAULT_SLOPE, DEFAULT_TMAX, DEFAULT_UNITS, EQUAL, gangliaMetricVisitor, MULTICAST_ENABLED_PROPERTY, MULTICAST_TTL_PROPERTY, SERVERS_PROPERTY, SUPPORT_SPARSE_METRICS_DEFAULT, SUPPORT_SPARSE_METRICS_PROPERTY| Constructor | Description |
|---|---|
GangliaSink30() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
appendPrefix(MetricsRecord record,
java.lang.StringBuilder sb) |
|
protected void |
emitMetric(java.lang.String groupName,
java.lang.String name,
java.lang.String type,
java.lang.String value,
org.apache.hadoop.metrics2.sink.ganglia.GangliaConf gConf,
AbstractGangliaSink.GangliaSlope gSlope) |
The method sends metrics to Ganglia servers.
|
void |
init(org.apache.commons.configuration2.SubsetConfiguration conf) |
Initialize the plugin
|
void |
putMetrics(MetricsRecord record) |
Put a metrics record in the sink
|
emitToGangliaHosts, flush, getGangliaConfForMetric, getHostName, getMetricsServers, isSupportSparseMetrics, xdr_int, xdr_stringpublic void init(org.apache.commons.configuration2.SubsetConfiguration conf)
MetricsPlugininit in interface MetricsPlugininit in class AbstractGangliaSinkconf - the configuration object for the plugin@Private public void appendPrefix(MetricsRecord record, java.lang.StringBuilder sb)
public void putMetrics(MetricsRecord record)
MetricsSinkrecord - the record to putprotected void emitMetric(java.lang.String groupName,
java.lang.String name,
java.lang.String type,
java.lang.String value,
org.apache.hadoop.metrics2.sink.ganglia.GangliaConf gConf,
AbstractGangliaSink.GangliaSlope gSlope)
throws java.io.IOException
groupName - The group name of the metricname - The metric nametype - The type of the metricvalue - The value of the metricgConf - The GangliaConf for this metricgSlope - The slope for this metricjava.io.IOException - raised on errors performing I/O.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.