All Products
Search
Document Center

Realtime Compute for Apache Flink:Discard or restore metrics

Last Updated:Mar 26, 2026

Realtime Compute for Apache Flink provides the Prometheus service for workspaces. To reduce monitoring costs, you can disable the Prometheus service for an entire workspace or discard individual metrics for specific deployments. Discarded metrics can be restored based on your business requirements.

Prerequisites

Before you begin, make sure that you have:

  • A workspace with Managed Service for Prometheus enabled

  • (If using a RAM user or RAM role) Permissions to access Application Real-Time Monitoring Service (ARMS). For details, see Overview

Disable or enable the Prometheus service

Important

Disabling the Prometheus service uninstalls the Prometheus instance for the workspace and discards all metrics in that workspace.

  1. In the Realtime Compute for Apache Flink console, 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 in the ARMS console. The instance name appears in the upper-left corner of the page.

    image.png

  2. Click the image.png icon in the upper-left corner to go to the Managed Service for Prometheus page.

  3. Find the Prometheus instance and, in the Actions column, click Uninstall to disable the service or Install to enable it.

  4. Click OK.

Discard a metric

Discarding a metric removes it from collection for the selected deployment. You can restore a discarded metric based on your business requirements.

  1. In the Realtime Compute for Apache Flink console, 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 in the ARMS console.

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

  3. On the Metrics tab, find the metric to discard. Search by metric name, or use the keyword flink to list all metrics for Flink job deployments.

  4. In the Actions column for the target metric, click Discard.

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

Restore a metric

  1. In the Realtime Compute for Apache Flink console, 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 in the ARMS console.

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

  3. Click Manage Discarded Metrics.

  4. In the Manage Discarded Metrics dialog box, delete the metric entry to restore it.

    Image 181.png

  5. Click OK.

What's next