On the Service Discovery page, you can view the default service discoveries that are provided by Managed Service for Prometheus of Application Real-Time Monitoring Service (ARMS). You can also add a custom service to configure collection rules for Managed Service for Prometheus.

Prerequisites

A Prometheus instance for ECS is created. For more information, see Create a Prometheus instance to monitor an ECS instance.

Limits

The ECS service discovery feature is available only for Prometheus instances for ECS.

Procedure

  1. Log on to the ARMS console.
  2. In the left-side navigation pane, choose Prometheus Service > Prometheus Instances.
  3. Click the name of the Prometheus instance to which you want to connect.

Manage the default service discoveries

The service discovery feature is built into Managed Service for Prometheus. When you connect an ECS instance to Managed Service for Prometheus, the default service discoveries are automatically enabled. You are charged for using the feature. The following two default service discoveries are supported:
  • exporter-service-discovery: Adds related components on the Integration Center page based on the configured rules. For more information about Integration Center, see Integration center.
  • vpc-ecs-service-discovery: Automatically discovers the collection services provided by Elastic Compute Service (ECS) based on the configured rules.
wi

View the default service discoveries

  1. In the left-side navigation pane, click Service Discovery. Then, click the Configurations tab.
  2. Click the Default Service Discovery tab to view the default service discoveries provided by Managed Service for Prometheus.

What to do next

On the Default Service Discovery tab, you can perform the following operations:
  • View details of a default service discovery: Click Details in the Actions column to view the YAML configuration file.
  • Disable a default service discovery: Turn off the switch in the Actions column.
  • Enable a default service discovery: Turn on the switch in the Actions column.
    Important The service discovery feature is built into Managed Service for Prometheus. When you connect an ECS instance to Managed Service for Prometheus, the default service discoveries are automatically enabled. After you enable the service discovery feature, you are charged for the metric collection. For more information, see Why am I charged additional fees when I use Prometheus Service? . If you do not need to collect metric data, you can disable the feature.
  • For vpc-ecs-service-discovery, click Details in the Actions column to modify the metrics_path and port parameters in the YAML configuration file. After you modify the parameters, click Confirm.

Manage custom services

You can add custom services to collect metrics based on your configurations.

Important You are charged for the metric collection of the custom services. For more information about billing, see Billing overview.

Add a custom service

  1. In the left-side navigation pane, click Service Discovery. Then, click the Configurations tab.
  2. Click the Custom Service tab, and then click Add in the upper-right corner.
  3. In the dialog box that appears, configure the parameters and click OK.
    rl
    ParameterDescription
    NameThe name of the custom service.
    IPThe IP addresses of the metrics.
    Port NumberThe port number of the metrics.
    Collection PathThe path of the metrics.
    Collection IntervalThe interval at which metrics are collected.
    StatusSpecifies whether to enable or disable metric collection for the service. By default, the switch is turned on.
    After you complete the configurations, the service discovery is displayed on the Custom Service tab.

What to do next

On the Custom Service tab, you can perform the following operations:
  • Modify a service discovery: Click Edit in the Actions column.
  • Delete a service discovery: Click Delete in the Actions column. If you delete a service discovery, the metric data is no longer collected and billed.