Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dingmeng-xue authored Nov 2, 2023
1 parent 417620c commit 0838d13
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions hystrix-turbine-sample/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,14 @@ You can now play with your Circuit Breaker Dashboard.
### Using private test endpoints

Hystrix metrics streams are also accessible from test-endpoint. As a backend service, we didn't assign a public end-point for `recommendation-service`. You can get endpoint through below command
Hystrix metrics streams are also accessible from test-endpoint. As a backend service, `recommendation-service` doesn't need a public end-point. You can get endpoint using command below.
```bash
echo $(az spring test-endpoint list -g ${RESOURCE_GROUP} --app recommendation-service -n ${SPRING_APPS_SERVICE} --app recommendation-service --query "primaryTestEndpoint" -o tsv)
```

Let's show its metrics with test-endpoint at `https://primary:<KEY>@<SERVICE-NAME>.test.azuremicroservices.io/recommendation-service/default/actuator/hystrix.stream`.

If you need to show its metrics, you need to get full path using command below.
```bash
echo $(az spring test-endpoint list -g ${RESOURCE_GROUP} --app recommendation-service -n ${SPRING_APPS_SERVICE} --app recommendation-service --query "primaryTestEndpoint" -o tsv)/actuator/hystrix.stream
```

As a web app, Hystrix dashboard should also be working on test endpoint. However, it is not working properly for two reasons: First, using test endpoint will change the base URL from `/` to `/<APP-NAME>/<DEPLOYMENT-NAME>`. Second, the web app is using absolute path for static resource. To get it worked on test endpoint, you might need to manually edit the `<base>`in the front-end files.
As a web app, Hystrix dashboard should also be working on test endpoint. However, it is not working properly for two reasons: First, using test endpoint will change the base URL from `/` to `/<APP-NAME>/<DEPLOYMENT-NAME>`. Second, the web app is using absolute path for static resource. To get it worked on test endpoint, you might need to manually edit the `<base>`in the front-end files.

0 comments on commit 0838d13

Please sign in to comment.