All Products
Search
Document Center

Realtime Compute for Apache Flink:Discard or restore metrics

Last Updated:Nov 11, 2025

Realtime Compute for Apache Flink provides the Prometheus service for workspaces. If you no longer require the Prometheus service for a workspace or a metric for deployments in fully managed Flink, you can disable the Prometheus service or discard the metric. This helps reduce monitoring costs. You can restore the metric that you discard based on your business requirements. This topic describes how to disable and enable the Prometheus service and how to discard and restore a metric.

Important notes

  • If you use a RAM user or RAM role to access fully managed Flink, the RAM user or RAM role must have the permissions to access Application Real-Time Monitoring Service (ARMS). For more information, see Overview.

  • This feature is available for workspaces that has enabled Managed Service for Prometheus.

Disable or enable the Prometheus service

Important

You can uninstall a Prometheus instance to disable the Prometheus service for a workspace. After you disable the Prometheus service for a workspace, all metrics in the workspace are discarded.

  1. Find the Prometheus instance that corresponds to the workspace.

    1. Log on to the Realtime Compute for Apache Flink console.

    2. Find your workspace and select image > Monitoring Indicator Configuration in the Actions column to go to the ARMS console.

      image.png

    3. Click the image.png icon in the upper-left corner of the Service Discovery page to go to the Managed Service for Prometheus page. The name in the upper-left corner of the Service Discovery page is the name of the Prometheus instance that corresponds to the workspace.

  2. Disable or enable the Prometheus service.

    1. Find the desired Prometheus instance and click Uninstall in the Actions column to disable the Prometheus service or click Install in the Actions column to enable the Prometheus service.

    2. In the message that appears, click OK.

Discard a metric

You can discard specific metrics for deployments of a workspace.

  1. Find the desired Prometheus instance that corresponds to the workspace.

    1. Log on to the Realtime Compute for Apache Flink console.

    2. Find your workspace and select image > Monitoring Indicator Configuration in the Actions column.

      You are redirected to the Service Discovery page for the Prometheus instance corresponding to your Flink workspace in the ARMS console.

  2. Discard the metric.

    1. In the left-side navigation pane, click Service Discovery.

    2. On the Metrics tab, find the desired metric.

      You can directly search for the name of the metric. You can also search for the flink keyword to obtain all metrics for Flink job deployments.

  3. Select the metric that you want to discard and click Discard in the Actions column.

  4. In the Manage Discarded Metrics dialog box, confirm the metric name and click OK.

Restore a metric

  1. Find the Prometheus instance that corresponds to the workspace.

    1. Log on to the Realtime Compute for Apache Flink console.

    2. Find your workspace and select image > Monitoring Indicator Configuration in the Actions column.

      You are redirected to the Service Discovery page for the Prometheus instance corresponding to your Flink workspace in the ARMS console.

  2. Restore the metric.

    1. In the left-side navigation pane of the page that appears, click Service Discovery.

    2. Click Manage Discarded Metrics.

    3. In the Manage Discarded Metrics dialog box, delete the metric.Image 181.png

    4. Click OK.

References