Class SinkStatsManager
java.lang.Object
org.apache.pulsar.functions.instance.stats.ComponentStatsManager
org.apache.pulsar.functions.instance.stats.SinkStatsManager
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringDeclare metric names.static final Stringstatic final Stringstatic final StringFields inherited from class org.apache.pulsar.functions.instance.stats.ComponentStatsManager
collectorRegistry, emptyQueue, EXCEPTION_METRICS_LABEL_NAMES, METRICS_LABEL_NAMES, metricsLabels, scheduledFuture, USER_METRIC_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionSinkStatsManager(FunctionCollectorRegistry collectorRegistry, String[] metricsLabels, ScheduledExecutorService scheduledExecutorService) -
Method Summary
Modifier and TypeMethodDescriptiondoubledoubledoublecom.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation>com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation>com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation>com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation>doubledoubledoubledoubledoubledoubledoubledoublevoidvoidvoidvoidvoidvoidvoidprocessTimeEnd(long startTime) voidreset()voidsetLastInvocation(long ts) Methods inherited from class org.apache.pulsar.functions.instance.stats.ComponentStatsManager
close, getExceptionInfo, getStatsAsString, getStatsManager
-
Field Details
-
PULSAR_SINK_METRICS_PREFIX
- See Also:
-
SYSTEM_EXCEPTIONS_TOTAL
Declare metric names.- See Also:
-
SINK_EXCEPTIONS_TOTAL
- See Also:
-
LAST_INVOCATION
- See Also:
-
RECEIVED_TOTAL
- See Also:
-
WRITTEN_TOTAL
- See Also:
-
SYSTEM_EXCEPTIONS_TOTAL_1min
- See Also:
-
SINK_EXCEPTIONS_TOTAL_1min
- See Also:
-
RECEIVED_TOTAL_1min
- See Also:
-
WRITTEN_TOTAL_1min
- See Also:
-
-
Constructor Details
-
SinkStatsManager
public SinkStatsManager(FunctionCollectorRegistry collectorRegistry, String[] metricsLabels, ScheduledExecutorService scheduledExecutorService)
-
-
Method Details
-
reset
public void reset()- Specified by:
resetin classComponentStatsManager
-
incrTotalReceived
public void incrTotalReceived()- Specified by:
incrTotalReceivedin classComponentStatsManager
-
incrTotalProcessedSuccessfully
public void incrTotalProcessedSuccessfully()- Specified by:
incrTotalProcessedSuccessfullyin classComponentStatsManager
-
incrSysExceptions
- Specified by:
incrSysExceptionsin classComponentStatsManager
-
incrUserExceptions
- Specified by:
incrUserExceptionsin classComponentStatsManager
-
incrSourceExceptions
- Specified by:
incrSourceExceptionsin classComponentStatsManager
-
incrSinkExceptions
- Specified by:
incrSinkExceptionsin classComponentStatsManager
-
setLastInvocation
public void setLastInvocation(long ts) - Specified by:
setLastInvocationin classComponentStatsManager
-
processTimeEnd
public void processTimeEnd(long startTime) - Specified by:
processTimeEndin classComponentStatsManager
-
getTotalProcessedSuccessfully
public double getTotalProcessedSuccessfully()- Specified by:
getTotalProcessedSuccessfullyin classComponentStatsManager
-
getTotalRecordsReceived
public double getTotalRecordsReceived()- Specified by:
getTotalRecordsReceivedin classComponentStatsManager
-
getTotalSysExceptions
public double getTotalSysExceptions()- Specified by:
getTotalSysExceptionsin classComponentStatsManager
-
getTotalUserExceptions
public double getTotalUserExceptions()- Specified by:
getTotalUserExceptionsin classComponentStatsManager
-
getLastInvocation
public double getLastInvocation()- Specified by:
getLastInvocationin classComponentStatsManager
-
getAvgProcessLatency
public double getAvgProcessLatency()- Specified by:
getAvgProcessLatencyin classComponentStatsManager
-
getTotalProcessedSuccessfully1min
public double getTotalProcessedSuccessfully1min()- Specified by:
getTotalProcessedSuccessfully1minin classComponentStatsManager
-
getTotalRecordsReceived1min
public double getTotalRecordsReceived1min()- Specified by:
getTotalRecordsReceived1minin classComponentStatsManager
-
getTotalSysExceptions1min
public double getTotalSysExceptions1min()- Specified by:
getTotalSysExceptions1minin classComponentStatsManager
-
getTotalUserExceptions1min
public double getTotalUserExceptions1min()- Specified by:
getTotalUserExceptions1minin classComponentStatsManager
-
getAvgProcessLatency1min
public double getAvgProcessLatency1min()- Specified by:
getAvgProcessLatency1minin classComponentStatsManager
-
getLatestUserExceptions
public com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation> getLatestUserExceptions()- Specified by:
getLatestUserExceptionsin classComponentStatsManager
-
getLatestSystemExceptions
public com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation> getLatestSystemExceptions()- Specified by:
getLatestSystemExceptionsin classComponentStatsManager
-
getLatestSourceExceptions
public com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation> getLatestSourceExceptions()- Specified by:
getLatestSourceExceptionsin classComponentStatsManager
-
getLatestSinkExceptions
public com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation> getLatestSinkExceptions()- Specified by:
getLatestSinkExceptionsin classComponentStatsManager
-