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
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.
Find the Prometheus instance that corresponds to the workspace.
Log on to the Realtime Compute for Apache Flink console.
On the Fully Managed Flink tab, find the workspace that you want to manage and choose
in the Actions column to go to the ARMS console.Click the 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.
Disable or enable the Prometheus service.
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.
In the message that appears, click OK.
Discard a metric
You can discard specific metrics for deployments of a workspace.
Find the desired Prometheus instance that corresponds to the workspace.
Log on to the Realtime Compute for Apache Flink console.
On the Fully Managed Flink tab, find the workspace that you want to manage and choose
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.
Discard the metric.
In the left-side navigation pane of the page that appears, click Service Discovery.
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.
Select the metric that you want to discard and click Discard in the Actions column.
In the Manage Discarded Metrics dialog box, confirm the metric name and click OK.
Restore a metric
Find the Prometheus instance that corresponds to the workspace.
Log on to the Realtime Compute for Apache Flink console.
On the Fully Managed Flink tab, find the workspace that you want to manage and choose
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.
Restore the metric.
In the left-side navigation pane of the page that appears, click Service Discovery.
In the upper-right corner of the Metrics tab, click Manage Discarded Metrics.
In the Manage Discarded Metrics dialog box, delete the metric.
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.