Overview
Grafana Cloud / self-hosted setup
Prerequisites
- Grafana instance URL (Cloud stack URL or self-hosted origin)
- Service account token with read access — see Grafana service account tokens
Option 1: Interactive CLI
Option 2: Environment variables
For prod/staging pairs, use
GRAFANA_INSTANCES — see Multi-instance integrations.
Option 3: Persistent store
Option 4: Hosted web app (OpenSRE Cloud)
- In app.tracer.cloud, go to Integrations → Grafana
- Enter a name, instance URL, and service account token
- Click Save

Verify
Self-signed or internal CA certificates
If your Grafana instance is self-hosted behind a certificate signed by an internal/private CA,opensre onboard will prompt:
- Verify SSL certificate? — answer
Noto skip TLS verification entirely (only recommended for local/lab instances). - Path to CA bundle for SSL verification — point this at a PEM file containing your internal CA certificate to keep full TLS verification while trusting your organization’s CA. This is the recommended option for a real internal Grafana deployment, since it still validates the certificate chain and hostname.
GRAFANA_VERIFY_SSL (true/false) and
GRAFANA_CA_BUNDLE (path to a PEM file) in .env.
Local Grafana Setup (Minikube example)
Steps
- Start minikube:
- Add prometheus community and podinfo helm repositories:
- Create monitoring namespace and install kube-prometheus stack:
- Create podinfo namespace and install podinfo application:
- (Optional) Check the status of the pods in the podinfo and monitoring namespaces:
- (Run in separate terminals) Port forward the podinfo service:
- (Run in separate terminals) Port forward the prometheus service:
- (Run in separate terminals) Port forward the grafana service and expose it on all network interfaces:
- Patch the kube-stack-prometheus service to allow it to scrape the podinfo service:
Credentials for Grafana
Run this command to get the Grafana admin password:admin and the password is the output of the command above.
Access
Access the:- podinfo microservices application at http://localhost:8080
- the prometheus dashboard at http://localhost:9090
- the grafana dashboard at http://localhost:3000.
Simulate load on the podinfo application
Open a new terminal and run the following command to simulate load on the podinfo application:Grafana Dashboard
Run the following queries in the Grafana dashboard to visualize the metrics:- For the number of requests to the podinfo application:
- For the average response time of the podinfo application:

Setting up Prometheus Alerts
Run this command to create a Prometheus alert for the podinfo application which triggers when the error rate is high:
Integrating with OpenSRE
-
Get the LAN IP address of your machine:
- Create a service account token in Grafana following the official documentation: How to add a token to a service account in Grafana
-
Run opensre integration add grafana and follow the prompts to enter the required information:
- Instance URL: Enter the endpoint URL for your Grafana instance (e.g.,
http://<LAN_IP_ADDRESS>:3000) - Service account token: Paste the Service Account token you created in Grafana

- Instance URL: Enter the endpoint URL for your Grafana instance (e.g.,