Updated on 2024-05-06 GMT+08:00

Using Dashboard

The dashboard provides some basic capabilities for monitoring microservice running. Microservices report running status data using SDKs. The reported data includes request statistics, such as the quantity, latency, and error rate, as well as governance-related status, such as the circuit breaker status.

  • Spring Cloud directly uses the dashboard without dependencies. Spring Cloud contains the configuration items listed in Table 1. These configuration items specify information such as the dashboard reporting address.
    Table 1 Common configuration items of Spring Cloud Huawei

    Item

    Description

    Default Value

    spring.cloud.servicecomb.dashboard.invocationProviderEnabled

    Request-based interface count is used.

    true

    spring.cloud.servicecomb.dashboard.governanceProviderEnabled

    Circuit breaker-based interface count is used.

    false

    spring.cloud.servicecomb.dashboard.enabled

    Whether to enable the dashboard data reporting function

    false

    spring.cloud.servicecomb.dashboard.address

    Address to which dashboard data is reported. The format is http://{ip}:{port}. Use commas (,) to separate multiple addresses.

    NOTE:

    Change the port number to 30109. For details about how to obtain the address for reporting dashboard data, see Obtaining the Configuration Center Address of a ServiceComb Engine.

    -

    Either request-based interface count or circuit breaker-based count takes effect each time.

  • When Java chassis uses the dashboard, you need to add the following dependencies to the project:
    <dependency>
      <groupId>org.apache.servicecomb</groupId>
      <artifactId>dashboard</artifactId>
    </dependency>

    If the dependencies have been directly or indirectly included in the project, you do not need to add them. Java chassis contains the configuration items listed in Table 2. These configuration items specify information such as the dashboard reporting address.

    Table 2 Common configuration items of Java chassis

    Item

    Description

    Default Value

    servicecomb.monitor.client.serverUri

    Address to which dashboard data is reported. The format is http://{ip}:{port}. Use commas (,) to separate multiple addresses.

    NOTE:

    Change the port number to 30109. For details about how to obtain the address for reporting dashboard data, see Obtaining the Configuration Center Address of a ServiceComb Engine.

    -

    servicecomb.monitor.client.enabled

    Whether to enable data reporting

    true

    servicecomb.monitor.client.interval

    Report period (ms)

    10000