The web-api service produces some application specific metrics.
Run 'scripts/show-urls.sh' to get the URL to display the unformatted metrics of this microservice as well as the URL to generate load.
Run the following commands to install the microservices:
$ cd $PROJECT_HOME $ scripts/check-prerequisites.sh $ scripts/delete-all.sh $ scripts/deploy-articles-java-jee.sh $ scripts/deploy-web-api-java-jee.sh $ scripts/deploy-authors-nodejs.sh $ scripts/deploy-web-app-vuejs.sh $ scripts/deploy-istio-ingress-v1.sh $ scripts/show-urls.sh
In order to display the metrics with the Prometheus UI, Prometheus needs to be configured first:
After this wait until the Prometheus pod has been restarted. Then run the command to forward the Prometheus port which is displayed as result of 'scripts/configure-prometheus.sh'.
The metrics are displayed in the Prometheus UI (http://localhost:9090) when you search for 'web-api' or 'articles'.
For example the amount of times /web-api/v1/getmultiple has been invoked can be displayed:
The next chart displays the the duration of the 'getmultiple' requests.