Provisioning Kubernetes
Let’s dive into setting Prometheus up! But first, we need to set up some infrastructure so that we can run Prometheus.
Throughout this book, I’ll be running Prometheus on Linode using LKE. However, the same principles can be transferred to other Kubernetes environments (AKS, EKS, Minikube, and so on). Additionally, since we’ll be using the Prometheus Operator – which abstracts away some pieces of Prometheus – I’ll mention how to do things when running the Prometheus stack directly on Linux too.
To begin, you can register for a Linode account and get $100/60-day credit by going to https://www.linode.com/mastering-prometheus.
Configuring the linode-cli
With your Linode account created, we’ll install the Linode CLI to handle creating our Kubernetes infrastructure via the command line.
Presuming you have Python 3 installed, the Linode CLI can be installed via pip
:
$ pip install linode-cli
At this...