Package org.apache.beam.sdk.metrics
@DefaultAnnotation(org.checkerframework.checker.nullness.qual.NonNull.class)
package org.apache.beam.sdk.metrics
Metrics allow exporting information about the execution of a pipeline. They are intended to be
used for monitoring and understanding the execution.
Metrics may also be queried from the PipelineResult
object.
Runners should look at MetricsContainer
for details on how
to support metrics.
-
ClassDescriptionInternal: For internal use only and not for public consumption.Internal: For internal use only and not for public consumption.A metric that reports a single long value and can be incremented or decremented.Implementation of
Counter
that delegates to the instance for the current context.Implementation ofDistribution
that delegates to the instance for the current context.Implementation ofGauge
that delegates to the instance for the current context.Implementation ofHistogram
that delegates to the instance for the current context.A metric that reports information about the distribution of reported values.The result of aDistribution
metric.A metric that reports the latest value out of reported values.The result of aGauge
metric.EmptyGaugeResult
, representing no values reported.A metric that reports information about the histogram of reported values.Util class for building/parsing labeledMetricName
.Builder class for a labeledMetricName
.Standard collection of metrics used to record source and sinks information for lineage tracking.Lineage metrics resource types.Marker interface for all user-facing metrics.Implements matching for metrics filters.Metrics are keyed by the step name they are associated with and the name of the metric.The name of a metric consists of aMetricName.getNamespace()
and aMetricName.getName()
.The name of a metric.The results of a query for metrics.MetricResult<T>The results of a single current metric.Methods for interacting with the metrics of a pipeline that has been executed.TheMetrics
is a utility class for producing various kinds of metrics for reporting properties of an executing pipeline.Holds the metrics for a single step.Manages and provides the metrics container associated with each thread.Set theMetricsContainer
for the associatedMetricsEnvironment
.Simple POJO representing a filter for querying metrics.Builder for creating aMetricsFilter
.Extension ofPipelineOptions
that definesMetricsSink
specific options.ADefaultValueFactory
that obtains the class of theNoOpMetricsSink
if it exists on the classpath, and throws an exception otherwise.Interface for all metric sinks.A no-op implementation of Counter.A no-op implementation of Histogram.Standard Sink Metrics.StandardSource
Metrics.A metric that reports set of unique string values.The result of aStringSet
metric.EmptyStringSetResult
, representing no values reported and is immutable.