Where this fits in K8s strategy
Prometheus collects metrics data for health, performance and behaviour of K8s cluster via pull HTTP request
Why it’s important
Do you really want to have an app in production K8s without knowing how it’s doing on your infrastructure?
We’ll get into How to boost Prometheus in a minute, but let’s first review the basics.
Prometheus pulls metrics
Kubernetes can become complicated fast. That’s why the concept of “Observability” is getting more attention. This consists of monitoring, tracing and logging what’s going on.
Prometheus is fast becoming a popular tool for the monitoring needs of K8s projects. It follows a schedule to pull detailed metrics from pods, nodes and more.
What kind of metrics?
Before we get into Prometheus tactics, let’s uncover what metrics it can collect:
Measures values that only increase in value.
Examples: requests, tasks completed, errors.
Measures values that can go up or down.
Examples: memory usage, temperature.
Shows frequency of a variable as a bar graph.
Use case: number of requests done vs. time
It’s a metric type. But too tricky to explain here.
Read this if you still want to know.
How to setup Prometheus
Install guide: Prometheus
Follow this 5-step guide to get Prometheus up and running on your cluster.