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
- Choose Advanced Settings > O&M Monitoring.
- 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot