All Products
Search
Document Center

Realtime Compute for Apache Flink:Discard or restore metrics

Last Updated:Jan 02, 2024

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.

Precautions

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.

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. On the Fully Managed Flink tab, find the workspace that you want to manage and choose More > 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. On the Fully Managed Flink tab, find the workspace that you want to manage and choose More > Monitoring Indicator Configuration in the Actions column.

      After you click Monitoring Indicator Configuration, you are redirected to the Service Discovery page for the Prometheus instance that corresponds to the workspace in the ARMS console. 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. Discard the metric.

    1. In the left-side navigation pane of the page that appears, 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 deployments in the console of fully managed Flink.

  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. On the Fully Managed Flink tab, find the workspace that you want to manage and choose More > Monitoring Indicator Configuration in the Actions column.

      After you click Monitoring Indicator Configuration, you are redirected to the Service Discovery page for the Prometheus instance that corresponds to the workspace in the ARMS console. 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. Restore the metric.

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

    2. In the upper-right corner of the Metrics tab, click Manage Discarded Metrics.

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

    4. Click OK.

References

  • You can view the metrics of a deployment to check whether the deployment data is normal. For more information, see Metrics.

  • You can view metrics in the console of fully managed Flink or configure parameters to report metrics to other platforms. For more information, see Report metrics of fully managed Flink to other platforms.

  • You can configure alert rules for deployments that are running in the console of fully managed Flink. For more information, see Configure alert rules.