MetricsPlugin, MetricsSinkpublic class GangliaSink31 extends GangliaSink30
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 |
|---|---|
GangliaSink31() |
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
appendPrefix, init, putMetricsemitToGangliaHosts, flush, getGangliaConfForMetric, getHostName, getMetricsServers, isSupportSparseMetrics, xdr_int, xdr_stringprotected 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
emitMetric in class GangliaSink30groupName - 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.