You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Sachin Sharma <sa...@gmail.com> on 2025/12/08 19:55:36 UTC

Flink k8s autoscaling with azul zing jvm

Hi Everyone,

We are trying to use the k8s operator for autoscaling the flink application
and we are using Flink 1.19 version with k8s operator 1.12 and we are using
azul zing jvm. However, in *RestApiMetricsCollector* we are using below
metrics for scaling and azul zing doesn't emit
Status.JVM.Memory.Metaspace.Used. Is there any fix available for this?

private static final Map<String, FlinkMetric> COMMON_TM_METRIC_NAMES =
 Map.of(
 "Status.JVM.Memory.Heap.Max", HEAP_MEMORY_MAX,
 "Status.JVM.Memory.Heap.Used", HEAP_MEMORY_USED,
 "Status.Flink.Memory.Managed.Used", MANAGED_MEMORY_USED,
 "Status.JVM.Memory.Metaspace.Used", METASPACE_MEMORY_USED);

Thanks & Regards,
Sachin Sharma