pyflink.metrics package¶
Module contents¶
-
class
pyflink.metrics.
MetricGroup
[source]¶ Bases:
abc.ABC
A MetricGroup is a named container for metrics and further metric subgroups.
Instances of this class can be used to register new metrics with Flink and to create a nested hierarchy based on the group names.
A MetricGroup is uniquely identified by it’s place in the hierarchy and name.
New in version 1.11.0.
-
add_group
(name: str, extra: str = None) → pyflink.metrics.metricbase.MetricGroup[source]¶ Creates a new MetricGroup and adds it to this groups sub-groups.
If extra is not None, creates a new key-value MetricGroup pair. The key group is added to this group’s sub-groups, while the value group is added to the key group’s sub-groups. In this case, the value group will be returned and a user variable will be defined.
New in version 1.11.0.
-
counter
(name: str) → pyflink.metrics.metricbase.Counter[source]¶ Registers a new Counter with Flink.
New in version 1.11.0.
-
distribution
(name: str) → pyflink.metrics.metricbase.Distribution[source]¶ Registers a new Distribution with Flink.
New in version 1.11.0.
-
-
class
pyflink.metrics.
Metric
[source]¶ Bases:
object
Base interface of a metric object.
New in version 1.11.0.
-
class
pyflink.metrics.
Counter
(inner_counter)[source]¶ Bases:
pyflink.metrics.metricbase.Metric
Counter metric interface. Allows a count to be incremented/decremented during pipeline execution.
New in version 1.11.0.
-
class
pyflink.metrics.
Meter
(inner_counter)[source]¶ Bases:
pyflink.metrics.metricbase.Metric
Meter Metric interface.
Metric for measuring throughput.
New in version 1.11.0.