Installation Steps
Pre-requisite: Install HELM
Step 1: Add Repositories. Add the following helm repositories by the commands below.
$ helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
$ helm repo add stable https://charts.helm.sh/stable
Step 2: Update Helm Repositories. After we add the helm repositories, we have to update the helm repo by the following command.
$ helm repo update
Step 3: Install Prometheus Kubernetes
$ helm install prometheus prometheus-community/kube-prometheus-stack
Step 4: Kubernetes Prometheus Port Forward
$ kubectl port-forward deployment/prometheus-grafana 3000
Step 5: Log in to Grafana.
Open your browser and type localhost:3000. Since you are logging in for the first time, you will have to use a default username and password. However, you can create new users and update passwords later. Use the default credentials for now
- username: admin
- password: prom-operator
Working with Prometheus and Grafana Using Helm
Pre-requisite: HELM Package Manager
Helm is a package manager for Kubernetes that allows you to install, upgrade, and manage applications on your Kubernetes cluster. With Helm, you can define, install, and upgrade your application using a single configuration file, called a Chart. Charts are easy to create, version, share, and publish, so you can collaborate with your team and the larger Kubernetes community.
There are many charts available in the Helm stable repository, which is maintained by the Helm community, and you can also find charts from other sources or create your own custom charts. Helm makes it easy to automate the deployment and management of applications on your Kubernetes cluster, so you can focus on building great software.