Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
Description
The operator supports pluggable FlinkResourceListener which provides the events & deployment status. However, such interface does not expose MetricManager/any way to create custom meters.
Which means that if users would like to create custom metrics per deployments(failures rate, scaling counter, any other metric per events) there is no way to attach it via operator metric system.
There are some basic metrics created per namespace in
org.apache.flink.kubernetes.operator.metrics.FlinkDeploymentMetrics
My suggestion is to expose either operator metric manager or another entity which provides a way to create meters(and internally registers them via MetricManager) in FlinkResourceListener interface.