Monitoring container clusters with Prometheus

Perfect Fit


The demo environment shown in this article shows how you can monitor your Kubernetes cluster. Various metrics inform you about what is currently happening in the cluster. More fine tuning helps: You can expand the production monitoring system to include the Alert Manager and the need to think about persistent data storage. The CoreOS Prometheus operator [24] [25] takes an interesting approach; it installs production-ready Kubernetes monitoring with very little effort.


  1. Kubernetes:
  2. "Prometheus" by Michael Kraus, ADMIN , issue 40, 2017, pg. 20,
  3. Example from the Kubernetes documentation:
  4. More about relabeling:
  5. PromQL:
  6. Prometheus 2.0:
  7. Persistent volumes:
  8. Stateful sets:
  9. Minikube:
  10. Installing Minikube:
  11. Listings for the article:
  12. RBAC:
  13. Prometheus Docker image:
  14. ConfigMap:
  15. Deployments:
  16. Node exporter image:
  17. DaemonSet:
  18. Grafana:
  19. Node exporter dashboard:
  20. Kubernetes pod dashboard:
  21. Kubernetes dashboards:
  22. kube-state-metrics:
  23. kube-state-metrics documentation:
  24. Prometheus Operator:
  25. Prometheus Operator documentation:

The Author

Michael Kraus is a senior consultant for open source monitoring at ConSol in Munich, Germany. Since 2005, he has developed and managed the monitoring environments with Nagios and its successors. His main focus is integrating new components in a meaningful monitoring environment based exclusively on open source software.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy ADMIN Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Time-series-based monitoring with Prometheus
    As Prometheus gave fire to mankind, the distributed monitoring software with the same name illuminates the admin's mind in native cloud environments, offering metrics for monitored systems and applications.
  • Grafana and time series databases
    We look at database back ends for monitoring, alerting, and trending analysis in the Grafana visualization tool.
  • Monitoring containers
    A monitoring system helps avoid unpleasant surprises during operations, but admins need to modify existing solutions to fit a containerized world.
  • Safeguard and scale containers
    Security, deployment, and updates for thousands of nodes prove challenging in practice, but with CoreOS and Kubernetes, you can orchestrate container-based web applications in large landscapes.
comments powered by Disqus