Tamir Sagi created FLINK-32062:
----------------------------------
Summary: Expose MetricGroup in FlinkResourceListener interface to
allow users to create custom metrics
Key: FLINK-32062
URL: https://issues.apache.org/jira/browse/FLINK-32062
Project: Flink
Issue Type: Improvement
Components: Kubernetes Operator
Reporter: Tamir Sagi
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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)