Sitemap

Raspberry Pi (k3s) Monitoring: Prometheus + Grafana, the Pi-friendly way

5 min read3 days ago
Press enter or click to view image in full size

Why this guide?

Running a full monitoring stack on a Raspberry Pi is totally doable — as long as you keep it lean. This guide installs kube-prometheus-stack (Prometheus, Alertmanager, exporters) with Grafana, tuned for tiny hardware.

What you’ll get

  • Prometheus scraping your k3s cluster
  • Grafana dashboards (admin/admin by default)
  • Light resource footprint (safe for a Pi)
  • Easy uninstall/cleanup at the end

0) Prereqs

  • k3s running on your Pi (kubectl get nodes works)
  • Your non-root user (e.g., yisusvii) has kubeconfig at ~/.kube/config
  • Helm 3 installed
curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash

Tip: if helm or kubectl complains about localhost:8080, copy /etc/rancher/k3s/k3s.yaml to ~/.kube/config, chown it to your user, and replace 127.0.0.1 with your Pi’s LAN IP (e.g., 192.168.50.10).

1) Add the Helm repo and create a namespace

kubectl create namespace monitoring
helm repo add prometheus-community…
YISUSVII

Written by YISUSVII

Staff Site Reliability Engineer, Sr Cloud Specialist, Party and Dog Lover, Dreamer & Storytaller

No responses yet

Write a response