This article will guide you through setting up Prometheus on a Kubernetes cluster and collect node, pods, and services metrics automatically using Kubernetes service discovery configurations.
About Prometheus
Prometheus is an open-source monitoring framework. It provides out-of-the-box monitoring capabilities for the Kubernetes container orchestration platform.
Explaining Prometheus is out of the scope of this article. If you want to know more about Prometheus, You can watch all the Prometheus-related videos from here.
If you would like to install Prometheus on a Linux VM, please see the Prometheus on Linux guide.
Prometheus Monitoring Setup on Kubernetes
I assume that you have a kubernetes cluster up and running with kubectl setup on your workstation.
Note: If you don’t have a kubernetes setup, you can set up a cluster on google cloud by following this article.
Latest Prometheus is available as a docker image in its official docker hub account. We will use that image…