Monitoring Containers

I have been having fun monitoring containers. Specifically, low level metrics and simple dashboards.

After a some research, I landed on taking Cadvisor, node-exporter, mysql-exporter, feed that to Prometheus and use Grafana to dashboard your sytem or system under test. If you want to add extra reporting for Windows based host systems then you need to use PPM (Percona). It gives a much richer MySQL metrics not to mention all the rest of the goods. PPM (Percona) a little more work to setup. All open source.

Here are some example reports for Docker Host:

Docker Containers:

Note: On Windows 10, with WSL2 integration.

Here is the sample for PPM:

Note: Requires setup of PPM. I am using it on Windows 10 as it gives richer MySQL metrics.

Here is a click on the MySQL host graph

Here is a MySQL Over Dashboard:

I’ll create a new post with some instructions on how to set it up along with some sample code.

Using Docker to build Test Execution Infrastructure

Yesterday, I was having a lot of fun building stuff. I am a big fan of Docker and now learning Podman as well. Yesterday was about using Docker, Docker-Compose, WSL2 and building a cloud-ready approach to Engineering for Quality.

This project goal is to build a sample test execution infrastructure and supporting tools using Docker, Docker-Compose.

What is the recipe?

  • System under Test – YouTube
  • Auto-Scalable UI test automation execution infrastructure – Zalenium
  • Scalable AI-powered Test Automation Dashboard, acquire, aggregate and analyze test reports to ascertain release health – Report Portal (reportportal.io)
  • Test Automation Code – Java, Selenium Webdriver, TestNg, Cucumber, Log4j2, using Cucumber Archetype (https://lnkd.in/gvbQPsg, https://lnkd.in/gWKaB25)
  • Development approach: Behavior Driven Development

Note: All components run inside a Docker Container, running on native Linux (WSL2). Developed and debugged using VS Code remote WSL debugging plugin. This allows me to connect my VS Code to my Linux WSL container. Super awesome stuff.

I will post a micro tutorial video later this week, showing all the above in action 🙂

What is next… taking this generic approach and apply it to GCP. I have already done this on Azure, so now it time to try Google.