0% found this document useful (0 votes)
44 views

Install Grafana

This document provides steps to deploy Grafana on an EKS cluster using Helm for visualization of Prometheus metrics. It includes adding the Grafana Helm chart repository, installing Grafana with a custom YAML config file and persistence settings, retrieving the Grafana load balancer URL, and links to example Grafana dashboards for Kubernetes metrics. It also provides commands to uninstall Prometheus and Grafana.

Uploaded by

snehanshu12
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views

Install Grafana

This document provides steps to deploy Grafana on an EKS cluster using Helm for visualization of Prometheus metrics. It includes adding the Grafana Helm chart repository, installing Grafana with a custom YAML config file and persistence settings, retrieving the Grafana load balancer URL, and links to example Grafana dashboards for Kubernetes metrics. It also provides commands to uninstall Prometheus and Grafana.

Uploaded by

snehanshu12
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

1. Copy paste the following in a YAML file, name it grafana.

yaml
datasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
url: http://prometheus-server.prometheus.svc.cluster.local
access: proxy
isDefault: true

2. Grab Grafana Helm charts


helm repo add grafana https://grafana.github.io/helm-charts

3. Install Grafana
kubectl create namespace grafana

helm install grafana grafana/grafana \


--namespace grafana \
--set persistence.storageClassName="gp2" \
--set persistence.enabled=true \
--set adminPassword='EKS!sAWSome' \
--values grafana.yaml \
--set service.type=LoadBalancer

4. Check if Grafana is deployed properly


kubectl get all -n grafana

5. Get Grafana ELB url


export ELB=$(kubectl get svc -n grafana grafana -o
jsonpath='{.status.loadBalancer.ingress[0].hostname}')

echo "http://$ELB"

6. When logging in, use username "admin" and get password by running the following:
kubectl get secret --namespace grafana grafana -o jsonpath="{.data.admin-password}"
| base64 --decode ; echo

7. Grafana Dashboards for K8s:


https://grafana.com/grafana/dashboards?
dataSource=prometheus&direction=desc&orderBy=reviewsCount

8. Uninstall Prometheus and Grafana


helm uninstall prometheus --namespace prometheus
helm uninstall grafana --namespace grafana

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy