Class Monitoring
java.lang.Object
org.apache.beam.io.requestresponse.Monitoring
- All Implemented Interfaces:
Serializable
Configures
Metrics 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.Builderbuilder()abstract BooleanCount invocations ofBackOff.nextBackOffMillis().abstract BooleanCountCacheread failures.abstract BooleanCount associated non-null values resulting fromCachereads.abstract BooleanCount associated null values resulting fromCachereads.abstract BooleanCount number of attempts to read from theCache.abstract BooleanCountCachewrite failures.abstract BooleanCount number of attempts to write to theCache.abstract BooleanCountCachewrite successes.abstract BooleanCount invocations ofCaller.call(RequestT).abstract BooleanCount failures resulting fromCall's successfulCallerinvocation.abstract BooleanCount incoming request elements processed byCall'sDoFn.abstract BooleanCount outgoing responses resulting fromCall's successfulCallerinvocation.abstract BooleanCount invocations ofSetupTeardown.setup().abstract BooleanCount whenCallShouldBackoff.isTrue()is found true.abstract BooleanCount invocations ofSleeper.sleep(long).abstract BooleanCount invocations ofSetupTeardown.teardown().abstract Monitoring.BuilderTurns 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 successfulCallerinvocation. -
getCountCalls
Count invocations ofCaller.call(RequestT). -
getCountFailures
Count failures resulting fromCall's successfulCallerinvocation. -
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 fromCachereads. -
getCountCacheReadNonNulls
Count associated non-null values resulting fromCachereads. -
getCountCacheReadFailures
CountCacheread failures. -
getCountCacheWriteRequests
Count number of attempts to write to theCache. -
getCountCacheWriteSuccesses
CountCachewrite successes. -
getCountCacheWriteFailures
CountCachewrite 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
-