You can use the health inspection component to periodically check the connectivity of your monitored services. This component helps you obtain the health status of the monitored services, and identify and handle exceptions at the earliest opportunity.
Prerequisites
The services that you want to monitor are connected to Managed Service for Prometheus. For more information, see the following topics:Limits
- You can install the health inspection component only in a Prometheus instance for Container Service or a Prometheus instance for ECS.
- For a Prometheus instance for ECS, you can create only a custom inspection or a cloud service inspection.
Procedure
- Log on to the ARMS console.
- In the left-side navigation pane, choose .
- Click the name of the Prometheus instance instance that you want to manage to go to the Integration Center page.
Enable the health inspection feature
- If you have not installed the health inspection component, perform the following steps:
On the Integration Center page, find the Blackbox component in the uninstalled section and click Install.
NoteThe installed components are displayed in the Installed section of the Integration Center page. Click the component. In the panel that appears, you can view information such as targets, metrics, dashboard, alerts, service discovery configurations, and exporters. For more information, see Integration center.
- If you have installed the health inspection component, perform the following steps:
On the Integration Center page, find the Blackbox component in the Installed section and click Add. In the Integrate Health Inspection panel, create a custom inspection, a cloud service inspection, or an ACK service inspection.
Create a custom inspection
- In the Integrate Health Inspection panel, select Custom Inspection and set the inspection parameters.
Parameter Description Checkpoint The checkpoint of the inspection task. Enter an IP address or a domain name. For example, you can set the value to 192.168.xx.xx or www.aliyun.com. Health Check Type The type of the inspection task. - HTTP
- Ping
- TCP
Frequency The interval at which the inspection task is run. Valid values: - Every 10s
- Every 30s
- Every 60s
- Every 120s
- Click Confirm. The Health Check tab appears. You can view the inspection tasks that you have created.
In the Installed section of the Integration Center page, you can click the Blackbox card. In the Health Inspection panel, you can view inspections, agents, targets, metrics, and dashboards. For more information, see Integration center.
Create a cloud service inspection
- In the Access Health Inspection panel, click Cloud Service Inspection and select the Alibaba Cloud service to which you want to import data. Note Managed Service for Prometheus allows you to import the data of ApsaraDB for Redis and ApsaraDB RDS.
- Click Confirm. The Health Check tab appears. You can view the inspection tasks that you have created.
In the Installed section of the Integration Center page, you can click the Blackbox card. In the Health Inspection panel, you can view inspections, agents, targets, metrics, and dashboards. For more information, see Integration center.
Create an ACK service inspection
- In the Integrate Health Inspection panel, select Health Inspection for ACK and select the service data that you want to import. Note ACK service inspection supports only the following endpoint types:
- Internal endpoint: TCP and ping
- External endpoint: TCP, ping, and HTTP
- Click Confirm. The Health Check tab appears. You can view the inspection tasks that you have created.
In the Installed section of the Integration Center page, you can click the Blackbox card. In the Health Inspection panel, you can view inspections, agents, targets, metrics, and dashboards. For more information, see Integration center.
Manage an inspection
View the dashboard of an inspection
In the Installed section of the Integration Center page, click the Blackbox card. On the Dashboards tab, click the name of the dashboard to go to the dashboard page to view the health metrics of the Prometheus instance.
Modify an inspection
Delete an inspection
You can delete checkpoints that you no longer need on the Health Check tab. You can delete one or more checkpoints at a time.