Class RuleMetrics
java.lang.Object
io.confluent.kafka.serializers.metrics.RuleMetrics
Rule-metrics registry for
AbstractKafkaSchemaSerDe.
Owns the lazy registration of one Sensor (with a single
CumulativeCount metric) per outcome / per rule tuple, and one
gauge per rule tuple for the last-success timestamp. Metrics are
registered against a PluginMetrics obtained via the
Monitorable hook, so they ride
the Kafka client's KIP-714 telemetry pipeline and are removed when the
host plugin (the serializer/deserializer) closes.
Tag set per metric: rule_type, rule_mode
(invocation mode), subject, rule_name, plus
action on action metrics. config (key/value
serializer) and class (simple class name) are added
automatically by PluginMetricsImpl.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrecordAction(Rule rule, RuleMode mode, String subject, String action) voidrecordExecution(Rule rule, RuleMode mode, String subject) voidrecordFailure(Rule rule, RuleMode mode, String subject) voidrecordSkipped(Rule rule, RuleMode mode, String subject) voidrecordSuccess(Rule rule, RuleMode mode, String subject)
-
Constructor Details
-
RuleMetrics
public RuleMetrics(org.apache.kafka.common.metrics.PluginMetrics pluginMetrics)
-
-
Method Details
-
recordExecution
-
recordSuccess
-
recordFailure
-
recordSkipped
-
recordAction
-