๐ Monitoring Stack Setup with Prometheus, Loki, and Grafana on Kubernetes
This guide walks through the process of deploying a full monitoring stack (Prometheus, Loki, and Grafana) into a Kubernetes cluster using Helm.๐งพ Prerequisites
- A running Kubernetes cluster
kubectlandhelminstalled and configured- Cluster access with sufficient privileges
๐ ๏ธ Step 1: Prepare Namespace and Repositories
Create a namespace for the monitoring stack and add the required Helm repositories:๐ Step 2: Explore Loki Chart and Customize Values
Search for Loki in the Helm repo:NOTE: Inloki.yaml, modify thegrafanasection:This enables Grafana and optionally pulls the latest image tag.
๐ Step 3: Deploy Loki Stack with Helm
Install or upgrade the Loki stack using the customized values:๐ Step 4: Install Prometheus
๐ Step 5: Install Grafana
http://<NodeIP>:<NodePort>
๐ Recommended Grafana Dashboards
You can import the following dashboards from Grafana Labs using their Dashboard IDs:| Dashboard Name | Dashboard ID |
|---|---|
| Kubernetes Addons (Prometheus) | 19105 |
| Kubernetes Cluster (Global) | 15757 |
| Kubernetes Namespaces View | 15758 |
| Kubernetes Nodes View | 15759 |
| Kubernetes Pods View | 15760 |
| NVIDIA DCGM Exporter Dashboard | 12239 |
| Kubernetes Nodes | 8171 |
| Kubernetes Pod Metrics | 747 |
| Kubernetes App Metrics | 1471 |
