megaease / easemesh

A service mesh implementation for connecting, control, and observe services in spring-cloud.
https://megaease.com/easemesh
Apache License 2.0
508 stars 61 forks source link

Support query service instance registered in the registry via emctl #72

Closed zhao-kun closed 3 years ago

zhao-kun commented 3 years ago

emctl should provide subcommand to query service instance, the output looks like:

SERVICE                      TENANT        INSTANCE                                            CANARY           STATUS 
-------------------------------------------------------------------------------------------------------------
vets-service        spring-petclinic   vets-service-79b955b989-22b4q          lv1                     ON_LINE
vets-service        spring-petclinic   vets-service-79b955b989-42b4q                                    ON_LINE
vets-service        spring-petclinic   vets-service-79b955b989-32b4g                                    OUT_OF_SERVICE

When users query service instance, they can specify a (or many) condition(s) to filter result, conditions:

  1. service name, filter by services' name.
  2. tenant, filter by tenant name.
  3. canary, filter by canary version.
  4. status, filter by service instance status.