Help Center> ServiceStage> User Guide> Component Management> Component Advanced Setting> Configuring Custom Monitoring of a Component
Updated on 2023-07-14 GMT+08:00

Configuring Custom Monitoring of a Component

ServiceStage allows you to obtain custom metrics when components are deployed using CCE. You can use this method to report custom component running metrics.

Precautions

  • Currently, only Gauge metrics of Prometheus can be obtained.
  • Before setting custom metric monitoring for an application component, you must understand Prometheus and provide the GET API for obtaining custom metric data in your application component so that ServiceStage can obtain custom metric data using this API.

Procedure

  1. Choose Advanced Settings > O&M Monitoring.
  2. On the O&M Policy tab, configure the custom monitoring by referring to the following table.

    Parameter

    Description

    Mandatory

    Report Path

    URL provided by the exporter for ServiceStage to obtain custom metric data.

    Example: /metrics

    Yes

    Report Port

    Port provided by the exporter for ServiceStage to obtain custom metric data.

    Example: 8080

    Yes

    Monitoring Metrics

    Name of the custom metric provided by the exporter.

    Example: ["cpu_usage","mem_usage"]

    • If this parameter is not set, ServiceStage collects data of all custom metrics.
    • If you set this parameter, for example, to ["cpu_usage","mem_usage"], ServiceStage collects the data of the specified cpu_usage and mem_usage metrics.

    No

    After the configuration and deployment are complete, you can view the monitoring metric data on the AOM console. For details, see Metric Monitoring.