Deploying Prometheus
Our Prometheus deployment will be done using a Helm chart that installs kube-prometheus, which installs and builds upon the Prometheus Operator by providing a convenient set of defaults. We’ll begin by briefly going over what you’re going to be deploying so that you understand it instead of blindly applying it because someone in a book told you to.
Prometheus Operator overview
The Prometheus Operator is a project that was originally started by Prometheus maintainer Frederic Branczyk to make it simpler to deploy and manage multiple Prometheus instances in a Kubernetes cluster. Consequently, it abstracts away some pieces of Prometheus behind various Kubernetes Custom Resource Definitions (CRDs).
The main CRDs to be aware of with the Prometheus Operator are Prometheus
, ServiceMonitor
, PrometheusRule
, and Alertmanager
.
Prometheus
and Alertmanager
are straightforward, but PrometheusRule
and ServiceMonitor
are key abstractions. PrometheusRule...