Red Hat OpenShift Workshop For Developers
  • OpenShift Workshop For Developers
    • Getting Started
  • Application Containerization
    • Building Application
    • Application Packaging
    • Running Application Container
    • Externalize Application Configurations
  • Deployment On OpenShift
    • Database Deployment Via Web Console
    • Build And Deploy Application Using S2I
    • Configure Application With ConfigMap
    • Simple Application Scaling
  • Monitoring And Logging
    • View Application Logs
    • Application Monitoring
  • Scaling
    • Resources Allocation For Application
    • Scale Application Automatically
  • Resiliency
    • Application Health Checks
    • Self Healing
Powered by GitBook
On this page
  1. Monitoring And Logging

Application Monitoring

PreviousView Application LogsNextResources Allocation For Application

Last updated 2 years ago

  1. Open a web terminal by click on the prompt icon at the top right corner of web console, then select your project, and click Start.

  2. Run following command to simulate load testing.

    while(true); do curl -o /dev/null http://quarkus-todo-app:8080/todo.html; sleep 0.2; done;

    Example Output

    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                    Dload  Upload   Total   Spent    Left  Speed
    100  2589  100  2589    0     0   842k      0 --:--:-- --:--:-- --:--:--  842k
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                    Dload  Upload   Total   Spent    Left  Speed
    100  2589  100  2589    0     0  1264k      0 --:--:-- --:--:-- --:--:-- 1264k
  3. Select the quarkus-todo-app node, then go to Observe tab on the right panel. And then click View dashboard link.

  4. You should be able to see resources consumption, throughput, bandwidth etc. for your application.

  5. Go back to the Web Terminal and cancel the load testing script by pressing Ctrl+C on keyboard.

Open Web Terminal
Run command
Open metrics dashboard
Open metrics dashboard
Cancel the command