Skip to main content

๐Ÿ“Š 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
  • kubectl and helm installed 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:
Export default values for customization:
NOTE: In loki.yaml, modify the grafana section:
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:
Loki UI will be available at the following internal URL:

๐Ÿ“ˆ Step 4: Install Prometheus

Prometheus UI will be available at the following internal URL:

๐Ÿ“Š Step 5: Install Grafana

Retrieve Grafana admin password:
Expose Grafana locally via port-forward:
Alternatively, expose via NodePort (not recommended for production):
Access Grafana at http://<NodeIP>:<NodePort>
You can import the following dashboards from Grafana Labs using their Dashboard IDs:

Argo Pipelines :

prometheus