In this chapter, we will be using a Kubernetes-based environment to generate all the metrics we need to test the PromQL examples that are covered in this chapter. Using the Prometheus Operator, the setup of this environment is quite simple; go through the following steps to get yourself up and running:
- To start the Kubernetes test environment, we first must ensure there's no instance of minikube running:
minikube status
minikube delete
- Start a new minikube instance with the following specifications:
minikube start \
--cpus=2 \
--memory=3072 \
--kubernetes-version="v1.14.0" \
--vm-driver=virtualbox
When the previous command finishes, a new Kubernetes environment should be ready to be used.
For our Kubernetes test environment, we'll be building upon the lessons we learned about in Chapter 5, Running a Prometheus Server...