Business
How to Start Grafana on Minikube: A Step-by-Step Guide

Minikube is a popular tool for running Kubernetes locally, and Grafana is widely used for monitoring and observability. This guide walks you through deploying Grafana on Minikube, making it easy to monitor and visualize data.
Prerequisites
Before starting, ensure you have the following installed:
- Minikube (latest version).
- kubectl (Kubernetes CLI).
- Basic understanding of Kubernetes and Helm (optional but helpful).
Step 1: Start Minikube
- Open a terminal and start Minikube:
bash
CopyEdit
minikube start
- Confirm the Minikube cluster is running:
bash
CopyEdit
kubectl cluster-info
Step 2: Enable Minikube Add-ons (Optional)
For a better experience, enable the Ingress add-on:
bash
CopyEdit
minikube addons enable ingress
Step 3: Deploy Grafana
You can deploy Grafana using Helm or Kubernetes manifests.
Option A: Using Helm
- Add the Grafana Helm repository:
bash
CopyEdit
helm repo add grafana https://grafana.github.io/helm-charts
helm repo update
- Install Grafana:
bash
CopyEdit
helm install grafana grafana/grafana –namespace grafana –create-namespace
- Verify the installation:
bash
CopyEdit
kubectl get all -n grafana
Option B: Using Kubernetes Manifests
If you don’t use Helm, you can apply YAML manifests:
- Create a namespace for Grafana:
bash
CopyEdit
kubectl create namespace grafana
- Apply a Grafana deployment:
bash
CopyEdit
kubectl apply -f https://raw.githubusercontent.com/grafana/grafana/main/deploy/kubernetes/grafana-deployment.yaml -n grafana
- Confirm the pods are running:
bash
CopyEdit
kubectl get pods -n grafana
Step 4: Expose Grafana Service
To access Grafana, expose the service using a NodePort or port-forwarding.
Using NodePort
- Edit the Grafana service to use NodePort:
bash
CopyEdit
kubectl edit svc grafana -n grafana
Change the type field to NodePort.
- Find the NodePort:
bash
CopyEdit
kubectl get svc -n grafana
- Access Grafana in your browser:
text
CopyEdit
http://<Minikube_IP>:<NodePort>
Find the Minikube IP using:
bash
CopyEdit
minikube ip
Using Port-Forward
Alternatively, use kubectl port-forward:
bash
CopyEdit
kubectl port-forward svc/grafana 3000:3000 -n grafana
Access Grafana at http://localhost:3000.
Step 5: Log in to Grafana
The default credentials for Grafana are:
- Username: admin
- Password: admin
You’ll be prompted to change the password upon first login.

Step 6: Configure Grafana
- Add data sources like Prometheus or Loki to Grafana for visualization.
- Create dashboards for monitoring your Kubernetes cluster or other resources.
Conclusion
Starting Grafana on Minikube is straightforward with the right tools and setup. Whether you use Helm or manifests, you can quickly deploy Grafana to monitor and visualize your data. Take advantage of Minikube’s local Kubernetes environment to experiment with Grafana’s features and improve your monitoring capabilities.
FAQs
Can I install Prometheus along with Grafana on Minikube?
Yes, Prometheus can be installed using Helm or manifests, and it pairs seamlessly with Grafana.
How do I access Grafana externally on Minikube?
You can expose the Grafana service as a NodePort or configure an Ingress resource.
What is the default port for Grafana?
The default port for Grafana is 3000.
How do I troubleshoot if Grafana doesn’t start?
Check the pod logs using:
bash
CopyEdit
kubectl logs <grafana-pod-name> -n grafana
Is Grafana free to use?
Yes, Grafana is open-source and free to use, though it also offers premium features and enterprise editions.
-
Business12 months ago
Sepatuindonesia.com | Best Online Store in Indonesia
-
Tech4 months ago
How to Use a Temporary Number for WhatsApp
-
Technology7 months ago
Top High Paying Affiliate Programs
-
Tech2 days ago
Understanding thejavasea.me Leaks Aio-TLP: A Comprehensive Guide
-
Technology4 months ago
Leverage Background Removal Tools to Create Eye-catching Videos
-
Instagram2 years ago
Free Instagram Follower Without Login
-
Tech11 months ago
Automating Your Window Treatments: The Advantages of Auto Blinds
-
Tech12 months ago
Unleash Your Potential: How Mecha Headsets Improve Productivity and Focus