Monitoring Metrics

Metrics are important monitoring data for service running. Go-chassis collects metrics in Promethues exporter mode and exports them. In addition to system metrics, such as QPS, latency, requests, CPU, and memory, the system also supports collection of user-defined service metrics, such as the number of login users, online users, and transactions.

  1. Enable the metric function. For details, see Metrics.
  2. When deploying a Go-chassis application component in a container on ServiceStage, configure parameters in O&M Policy. Report Path is the path configured in step 1. If the path is not configured, the default path is /metrics. Report Port is the listening port of the application, as shown in the following figure.

  3. After the configuration and deployment are complete, you can view detailed metrics on AOM. On the AOM page, choose View Management > Metric Monitoring.
  4. In the Select Metrics area, select and view the desired metrics.

    In addition to viewing service metrics, you can view instance metrics.