Microservices Observability in a Kubernetes World: Metrics
74%
Installing Prometheus
This section focuses on installing Prometheus in our cluster. It can be installed on an external machine or cluster, but for simplicity, we use the same cluster where our microservices are running. Each approach has its pros and cons, and the choice depends on your specific use case.
In the next parts, we will use the Prometheus Operator.
ℹ️ Operators are defined as software extensions to Kubernetes that use custom resources to manage applications, their components, and most importantly, their entire lifecycle.
Create a working directory and navigate into it:
cd $HOME && mkdir -p monitoring && cd monitoring
Clone the Prometheus Operator repository:
# Clone the Prometheus Operator repository
git clone \
https://github.com/prometheus-operator/kube-prometheus.git
# Navigate into the kube-prometheus directory
cd kube-prometheus
# Git checkout a stable release
git checkout release-0.16
Cloud-Native Microservices With Kubernetes - 2nd Edition
A Comprehensive Guide to Building, Scaling, Deploying, Observing, and Managing Highly-Available Microservices in KubernetesEnroll now to unlock all content and receive all future updates for free.
