Query Application Metrics
Last updated
Last updated
Open Web Terminal then run this command to query application metrics. You can also query metrics of other microservices as well by just change rest-villains
hostname to other service hostnames i.e. rest-fights
.
However, this way is not practical and really hard to understand what each metric value means. So, we'll do something better by using OpenShift platform monitoring.
Go to Observe menu.
Click on Metrics tab.
Click Select query drop-down list menu then select Custom query.
Open Web Terminal and run following command to simulate load test to the Fight microservice.
Let the curl
command runs aside. Enter fillowing query in the Expression input text, then change zoom to 5m
, and then check Stacked option.
Click on the Expression input text then keep pressing Enter
button on keyboard. You shold see the histogram moving.
Click on Web Terminal window then press Ctrl + C button on keyboard to stop curl
command.
How to query application metrics manually.
How to use OpenSHift built-in monitoring tool to query application metrics.