@Tags(value={"ganglia","stats"}) @CapabilityDescription(value="Reports metrics to Ganglia so that Ganglia can be used for external monitoring of the application. Metrics reported include JVM Metrics (optional); the following 5-minute NiFi statistics: FlowFiles Received, Bytes Received, FlowFiles Sent, Bytes Sent, Bytes Read, Bytes Written, Total Task Duration; and the current values for FlowFiles Queued, Bytes Queued, and number of Active Threads.") public class StandardGangliaReporter extends AbstractReportingTask
| Modifier and Type | Field and Description |
|---|---|
private com.yammer.metrics.reporting.GangliaReporter |
gangliaReporter |
static PropertyDescriptor |
HOSTNAME |
private AtomicReference<ProcessGroupStatus> |
latestStatus |
static String |
METRICS_GROUP |
private com.yammer.metrics.core.MetricsRegistry |
metricsRegistry |
static PropertyDescriptor |
PORT |
static PropertyDescriptor |
SEND_JVM_METRICS |
| Constructor and Description |
|---|
StandardGangliaReporter() |
| Modifier and Type | Method and Description |
|---|---|
private long |
calculateProcessingNanos(ProcessGroupStatus status) |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
void |
onConfigure(ConfigurationContext config) |
void |
onTrigger(ReportingContext context) |
getControllerServiceLookup, getIdentifier, getLogger, getName, getNodeTypeProvider, getSchedulingPeriod, init, initialize, setComponentInfocustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStatefulgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatepublic static final PropertyDescriptor HOSTNAME
public static final PropertyDescriptor PORT
public static final PropertyDescriptor SEND_JVM_METRICS
public static final String METRICS_GROUP
private com.yammer.metrics.core.MetricsRegistry metricsRegistry
private com.yammer.metrics.reporting.GangliaReporter gangliaReporter
private final AtomicReference<ProcessGroupStatus> latestStatus
protected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponent@OnScheduled public void onConfigure(ConfigurationContext config) throws InitializationException
InitializationExceptionpublic void onTrigger(ReportingContext context)
private long calculateProcessingNanos(ProcessGroupStatus status)
Copyright © 2023 Apache NiFi Project. All rights reserved.