@PublicEvolving public interface SourceReaderMetricGroup extends OperatorMetricGroup
SourceReader
.
You should only update the metrics in the main operator thread.
Modifier and Type | Method and Description |
---|---|
Counter |
getNumRecordsInErrorsCounter()
The total number of record that failed to consume, process, or emit.
|
void |
setPendingBytesGauge(Gauge<Long> pendingBytesGauge)
Sets an optional gauge for the number of bytes that have not been fetched by the source.
|
void |
setPendingRecordsGauge(Gauge<Long> pendingRecordsGauge)
Sets an optional gauge for the number of records that have not been fetched by the source.
|
getIOMetricGroup
addGroup, addGroup, addGroup, counter, counter, counter, counter, gauge, gauge, getAllVariables, getMetricIdentifier, getMetricIdentifier, getScopeComponents, histogram, histogram, meter, meter
Counter getNumRecordsInErrorsCounter()
void setPendingBytesGauge(Gauge<Long> pendingBytesGauge)
Note that not every source can report this metric in an plausible and efficient way.
void setPendingRecordsGauge(Gauge<Long> pendingRecordsGauge)
Note that not every source can report this metric in an plausible and efficient way.
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.