public class SourceStatsManager extends ComponentStatsManager
| Modifier and Type | Field and Description |
|---|---|
static String |
LAST_INVOCATION |
static String |
PULSAR_SOURCE_METRICS_PREFIX |
static String |
RECEIVED_TOTAL |
static String |
RECEIVED_TOTAL_1min |
static String |
SOURCE_EXCEPTIONS_TOTAL |
static String |
SOURCE_EXCEPTIONS_TOTAL_1min |
protected org.apache.pulsar.common.util.RateLimiter |
sourceExceptionRateLimiter |
protected org.apache.pulsar.common.util.RateLimiter |
sysExceptionRateLimiter |
static String |
SYSTEM_EXCEPTIONS_TOTAL
Declare metric names
|
static String |
SYSTEM_EXCEPTIONS_TOTAL_1min |
static String |
WRITTEN_TOTAL |
static String |
WRITTEN_TOTAL_1min |
collectorRegistry, EMPTY_QUEUE, exceptionMetricsLabelNames, metricsLabelNames, metricsLabels, scheduledFuture, USER_METRIC_PREFIX| Constructor and Description |
|---|
SourceStatsManager(FunctionCollectorRegistry collectorRegistry,
String[] metricsLabels,
ScheduledExecutorService scheduledExecutorService) |
| Modifier and Type | Method and Description |
|---|---|
double |
getAvgProcessLatency() |
double |
getAvgProcessLatency1min() |
double |
getLastInvocation() |
com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation> |
getLatestSinkExceptions() |
com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation> |
getLatestSourceExceptions() |
com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation> |
getLatestSystemExceptions() |
com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation> |
getLatestUserExceptions() |
double |
getTotalProcessedSuccessfully() |
double |
getTotalProcessedSuccessfully1min() |
double |
getTotalRecordsReceived() |
double |
getTotalRecordsReceived1min() |
double |
getTotalSysExceptions() |
double |
getTotalSysExceptions1min() |
double |
getTotalUserExceptions() |
double |
getTotalUserExceptions1min() |
void |
incrSinkExceptions(Throwable ex) |
void |
incrSourceExceptions(Throwable ex) |
void |
incrSysExceptions(Throwable ex) |
void |
incrTotalProcessedSuccessfully() |
void |
incrTotalReceived() |
void |
incrUserExceptions(Throwable ex) |
void |
processTimeEnd() |
void |
processTimeStart() |
void |
reset() |
void |
setLastInvocation(long ts) |
close, getExceptionInfo, getStatsAsString, getStatsManagerpublic static final String PULSAR_SOURCE_METRICS_PREFIX
public static final String SYSTEM_EXCEPTIONS_TOTAL
public static final String SOURCE_EXCEPTIONS_TOTAL
public static final String LAST_INVOCATION
public static final String RECEIVED_TOTAL
public static final String WRITTEN_TOTAL
public static final String SYSTEM_EXCEPTIONS_TOTAL_1min
public static final String SOURCE_EXCEPTIONS_TOTAL_1min
public static final String RECEIVED_TOTAL_1min
public static final String WRITTEN_TOTAL_1min
protected final org.apache.pulsar.common.util.RateLimiter sysExceptionRateLimiter
protected final org.apache.pulsar.common.util.RateLimiter sourceExceptionRateLimiter
public SourceStatsManager(FunctionCollectorRegistry collectorRegistry, String[] metricsLabels, ScheduledExecutorService scheduledExecutorService)
public void reset()
reset in class ComponentStatsManagerpublic void incrTotalReceived()
incrTotalReceived in class ComponentStatsManagerpublic void incrTotalProcessedSuccessfully()
incrTotalProcessedSuccessfully in class ComponentStatsManagerpublic void incrSysExceptions(Throwable ex)
incrSysExceptions in class ComponentStatsManagerpublic void incrUserExceptions(Throwable ex)
incrUserExceptions in class ComponentStatsManagerpublic void incrSourceExceptions(Throwable ex)
incrSourceExceptions in class ComponentStatsManagerpublic void incrSinkExceptions(Throwable ex)
incrSinkExceptions in class ComponentStatsManagerpublic void setLastInvocation(long ts)
setLastInvocation in class ComponentStatsManagerpublic void processTimeStart()
processTimeStart in class ComponentStatsManagerpublic void processTimeEnd()
processTimeEnd in class ComponentStatsManagerpublic double getTotalProcessedSuccessfully()
getTotalProcessedSuccessfully in class ComponentStatsManagerpublic double getTotalRecordsReceived()
getTotalRecordsReceived in class ComponentStatsManagerpublic double getTotalSysExceptions()
getTotalSysExceptions in class ComponentStatsManagerpublic double getTotalUserExceptions()
getTotalUserExceptions in class ComponentStatsManagerpublic double getLastInvocation()
getLastInvocation in class ComponentStatsManagerpublic double getAvgProcessLatency()
getAvgProcessLatency in class ComponentStatsManagerpublic double getTotalProcessedSuccessfully1min()
getTotalProcessedSuccessfully1min in class ComponentStatsManagerpublic double getTotalRecordsReceived1min()
getTotalRecordsReceived1min in class ComponentStatsManagerpublic double getTotalSysExceptions1min()
getTotalSysExceptions1min in class ComponentStatsManagerpublic double getTotalUserExceptions1min()
getTotalUserExceptions1min in class ComponentStatsManagerpublic double getAvgProcessLatency1min()
getAvgProcessLatency1min in class ComponentStatsManagerpublic com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation> getLatestUserExceptions()
getLatestUserExceptions in class ComponentStatsManagerpublic com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation> getLatestSystemExceptions()
getLatestSystemExceptions in class ComponentStatsManagerpublic com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation> getLatestSourceExceptions()
getLatestSourceExceptions in class ComponentStatsManagerpublic com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation> getLatestSinkExceptions()
getLatestSinkExceptions in class ComponentStatsManagerCopyright © 2017–2021 Apache Software Foundation. All rights reserved.