Class Monitoring
java.lang.Object
org.apache.beam.io.requestresponse.Monitoring
- All Implemented Interfaces:
Serializable
Configures
Metric
s throughout various features of RequestResponseIO
. By default,
all monitoring is turned off.
Cache metrics are not yet supported. See https://github.com/apache/beam/issues/29888
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Monitoring.Builder
builder()
abstract Boolean
Count invocations ofBackOff.nextBackOffMillis()
.abstract Boolean
CountCache
read failures.abstract Boolean
Count associated non-null values resulting fromCache
reads.abstract Boolean
Count associated null values resulting fromCache
reads.abstract Boolean
Count number of attempts to read from theCache
.abstract Boolean
CountCache
write failures.abstract Boolean
Count number of attempts to write to theCache
.abstract Boolean
CountCache
write successes.abstract Boolean
Count invocations ofCaller.call(RequestT)
.abstract Boolean
Count failures resulting fromCall
's successfulCaller
invocation.abstract Boolean
Count incoming request elements processed byCall
'sDoFn
.abstract Boolean
Count outgoing responses resulting fromCall
's successfulCaller
invocation.abstract Boolean
Count invocations ofSetupTeardown.setup()
.abstract Boolean
Count whenCallShouldBackoff.isTrue()
is found true.abstract Boolean
Count invocations ofSleeper.sleep(long)
.abstract Boolean
Count invocations ofSetupTeardown.teardown()
.abstract Monitoring.Builder
Turns on all monitoring.Turns on all monitoring except for cache related metrics.
-
Constructor Details
-
Monitoring
public Monitoring()
-
-
Method Details
-
builder
-
getCountRequests
Count incoming request elements processed byCall
'sDoFn
. -
getCountResponses
Count outgoing responses resulting fromCall
's successfulCaller
invocation. -
getCountCalls
Count invocations ofCaller.call(RequestT)
. -
getCountFailures
Count failures resulting fromCall
's successfulCaller
invocation. -
getCountSetup
Count invocations ofSetupTeardown.setup()
. -
getCountTeardown
Count invocations ofSetupTeardown.teardown()
. -
getCountBackoffs
Count invocations ofBackOff.nextBackOffMillis()
. -
getCountSleeps
Count invocations ofSleeper.sleep(long)
. -
getCountShouldBackoff
Count whenCallShouldBackoff.isTrue()
is found true. -
getCountCacheReadRequests
Count number of attempts to read from theCache
. -
getCountCacheReadNulls
Count associated null values resulting fromCache
reads. -
getCountCacheReadNonNulls
Count associated non-null values resulting fromCache
reads. -
getCountCacheReadFailures
CountCache
read failures. -
getCountCacheWriteRequests
Count number of attempts to write to theCache
. -
getCountCacheWriteSuccesses
CountCache
write successes. -
getCountCacheWriteFailures
CountCache
write failures. -
withEverythingCounted
Turns on all monitoring. The purpose of this method is, when used withtoBuilder()
and other setters, to turn everything on except for a few select counters. -
withEverythingCountedExceptedCaching
Turns on all monitoring except for cache related metrics. -
toBuilder
-