How to Install Grafana Using Helm Chart

In this article, we’ll explore How to Install Grafana Using Helm Chart | how to deploy Grafana, a powerful open-source analytics and monitoring platform, using Helm on a Kubernetes cluster. Helm streamlines the installation process, allowing for quick and efficient deployment of Grafana, enabling seamless monitoring and visualization of your Kubernetes environment.

Prerequisites

  • AWS Account with Ubuntu 22.04 LTS EC2 Instance
  • Minikube, kubectl and Helm Installed

Install Minikube and kubectl by following the official documentation for your operating system:

Minikube Installation Guide

Install Minikube on Ubuntu 22.04 LTS

  • Helm Installed:

Install Helm by following the official documentation:

Helm Installation Guide

Step #1:Adding Grafana Helm Repository

Integrate the official Grafana Helm repository into your Helm configuration by executing the following command.

helm repo add grafana https://grafana.github.io/helm-charts
How to Install Grafana Using Helm Chart 1

Run the following command to verify the repository was added.

helm repo list
How to Install Grafana Using Helm Chart 2

Step #2:Helm Repositories Update

Keep your local Helm repositories current to access the latest available charts. Execute the following command:

helm repo update
How to Install Grafana Using Helm Chart 3

Step #3:Install Grafana using Helm Chart

Deploy Grafana onto your cluster with the default configuration by running the following command

helm install grafana grafana/grafana
How to Install Grafana Using Helm Chart 4

Output:

How to Install Grafana Using Helm Chart 5

Step #4:Get Grafana admin password

To get the Grafana admin password, run the command as follows

kubectl get secret --namespace default grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo
How to Install Grafana Using Helm Chart 6

Step #5:Verification of Grafana Deployment

Ensure the Grafana deployment is success by running the following command

kubectl get pods

Confirm that the Grafana pod is running and has reached the “Running” state.

How to Install Grafana Using Helm Chart 7

Step #6:Grafana Service port forward

For checking services, run following command

kubectl get svc
How to Install Grafana Using Helm Chart 8

Expose the Grafana dashboard as a service using the kubectl port forward command.

kubectl port-forward --address 0.0.0.0 svc/grafana 3000:80
How to Install Grafana Using Helm Chart 9

Step #7:Access Grafana on Browser

To access the application on Browser write the ip address:port number in url.

you van see the Grafana login page.

default username is admin and put the password which is got from step #4.

How to Install Grafana Using Helm Chart 10

Now that Grafana is set up, you can start making charts and graphs with your data. You can configure data sources and create dashboards to visualize your data. Grafana supports various data sources, including databases, cloud services, and monitoring systems.

How to Install Grafana Using Helm Chart 11

Conclusion:

By utilizing Helm for Grafana deployment on Kubernetes, you’ve simplified the installation process and gained flexibility in configuration management. This guide equips you with the knowledge to swiftly set up Grafana, empowering you to harness its robust monitoring and analytics capabilities within your Kubernetes infrastructure.

Related Articles:

How to Install Grafana on Windows

Reference:

Deploy Grafana using Helm Charts Grafana Official page

Prasad Hole

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Share via
Copy link
Powered by Social Snap