For the complete documentation index, see llms.txt. This page is also available as Markdown.

Install Grafana

Install and configure Grafana in your Kubernetes cluster to visualize metrics collected by Prometheus, with a step-by-step guide for setup and integration.

View Metrics on the Grafana Dashboard

To visualize metrics from various sources, you can import and configure Grafana dashboards.

Step 1: Configure Grafana Override Values

Create a file named override-grafana.yaml with the following content:

grafana:
  resourcesPreset: "small"
image:
  repository: bitnamilegacy/grafana
volumePermissions:
  repository: bitnamilegacy/os-shell
  resourcesPreset: "small"

Step 2: Install Grafana using Helm

```bash
    helm repo add bitnami https://charts.bitnami.com/bitnami
    helm repo update bitnami
    helm install grafana bitnami/grafana -n grafana --create-namespace -f override-grafana.yaml
```

Open the Grafana Dashboard

Follow these steps to access and set up the Grafana dashboard:

Step 1: Decode the Grafana Admin Password

Step 2: Port-forward the Grafana Service

Step 3: Sign In and Add Prometheus as a Data Source

  1. Go to Settings > Data Sources.

  2. Click Add data source.

Add Data Source
  1. Select Prometheus as the data source type.

Step 4: Configure Prometheus Connection

To connect to Prometheus deployed in the same Kubernetes cluster, use kubeDNS to define the Prometheus service address. The format for an incluster prometheus setup is:

For example:

Step 5: Finalize Data Source Setup

  • Set Prometheus type and Prometheus version as applicable.

  • Click Save & test. You should see a success message confirming the connection.

Last updated

Was this helpful?