As we discussed in a previous post, monitoring your application and its platform is basic hygiene for running a healthy software-as-a-service business

Jsonnet-based Kube-Prometheus monitoring stack | elastisys

submited by
Style Pass
2021-05-17 09:29:37

As we discussed in a previous post, monitoring your application and its platform is basic hygiene for running a healthy software-as-a-service business. But how exactly do you monitor your application? In this post, we will illustrate how to achieve that using kube-prometheus.

Kube-prometheus collects all the components necessary for monitoring a Kubernetes cluster in one package. At the core, we find the Prometheus operator that makes it easy to deploy and configure, not only Prometheus, but also Alertmanager. Add to this Grafana, some metrics collectors and a default set of dashboards and alerting rules and you have a complete monitoring solution.

There is no one-size-fits-all solution for monitoring your Kubernets cluster however. But fear not, kube-prometheus is based on Jsonnet and made in the form of a library that you build your own custom solution from. Anything and everything can be changed, replaced or added. And you won’t need to wade through Helm templates in order to do it either.

You will need a Kubernetes cluster running v1.19 or v1.20. See for example compliantkubernetes.io for how to set up a production ready cluster. If you just want something simple to test things out locally, you may use KIND or Minikube. For more details on kube-prometheus prerequisites see the documentation.

Leave a Comment