Query Spring Cloud services

Updated at:

When you deploy Spring Cloud applications in Enterprise Distributed Application Service (EDAS), you need visibility into which services are registered, how many instances are running, and how services call each other. The Service Query page in the EDAS console provides a centralized view of your Spring Cloud services, their instances, and call relationships within a selected namespace.

Prerequisites

Before you begin, make sure that you have:

  • A Spring Cloud application deployed in EDAS

  • Outbound TCP access on ports 8442, 8443, and 8883 allowed in your server's security group. For configuration steps, see Add a security group rule

View the service list

  1. Log on to the EDAS console.

  2. In the left-side navigation pane, choose Traffic Management > Microservices Governance > Spring Cloud.

  3. Click Service Query.

  4. In the top navigation bar, select a region, then select a microservices namespace.

The service list displays the following columns:

ColumnDescription
Service nameThe registered name of the Spring Cloud service
Application nameThe EDAS application that provides the service
InstancesThe number of instances

Search and filter services

Enter a keyword in the search box to locate a specific service. Search is case-insensitive and supports the following fields:

Filter fieldDescription
Service nameRegistered service name
IP addressInstance IP address. For Elastic Compute Service (ECS) clusters, this is the ECS instance IP. For Kubernetes clusters, this is the pod IP
Application nameEDAS application name

View service details

  1. Log on to the EDAS console.

  2. In the left-side navigation pane, choose Traffic Management > Microservices Governance > Spring Cloud.

  3. Click Service Query.

  4. In the top navigation bar, select a region, then select a microservices namespace.

  5. Click a service name in the list.

The Service Details panel contains three sections:

Basic information

Displays core attributes of the service, such as the service name and registered instances.

View basic information in service details for Spring Cloud

Service call relationship

Shows the Service Providers and Consumers tabs, which list information such as IP and port.

View the service call relationship in service details for Spring Cloud

Metadata

Contains two sub-sections:

  • Interface Metadata -- the class to which the service belongs, the request method, and the interface of the service

    View metadata in service details for Spring Cloud

  • Metadata -- service-level metadata and EDAS-provided metadata for implementing microservice capabilities

    Metadata

Version differences

You can switch between the old and new versions of the Service Query page. The version you use determines which registries and Spring Cloud releases are supported.

CapabilityNew versionOld version
Query methodEDAS Agent--
Supported registriesEDAS registry, Microservices Engine (MSE)-hosted registry, and self-managed registries (ZooKeeper, Nacos, Eureka, Consul)EDAS registry only
Supported Spring Cloud releasesEdgware and laterDalston and later

Troubleshooting

If services appear on the old Service Query page but not on the new one, check the following:

  1. Restart your applications. The new version was released at 00:00:00 on January 20, 2020. Applications started before this date need to be restarted so that the EDAS Agent is installed automatically.

  2. Verify the Spring Cloud release. The new version requires Spring Cloud Edgware or later. See Version differences for supported releases.