Overview
This guide walks you through connecting Grafana to Opriven. Opriven queries Grafana and the data sources wired into it, including Prometheus, Loki, Tempo, and Pyroscope, so you do not need a separate connection for each data source.
Set up in Opriven
Go to the Grafana integration setup in the Opriven dashboard.
Setup
Choose the tab that matches your Grafana deployment.
Grafana Cloud
Self-Hosted
Prerequisites
A Grafana Cloud account with access to Loki, Tempo, or Prometheus
Permissions to view data sources and create access policies
1
Open the Grafana Cloud Portal
Go to
grafana.com/profile/org
and select your organization.
2
Access the data source instance
From the left sidebar, go to
Connections > Data Sources
and click on your Loki, Tempo, or Prometheus instance.
3
Copy your URL and username
Copy the
URL
under Connection (e.g.,
https://logs-prod-036.grafana.net
)
Copy the
User
under Authentication (a numeric ID, e.g.,
1264142
)
4
Create an access policy token
Scroll down to the
Access Policies
section
Click
Create Access Policy
Enter a name (e.g.,
Opriven
)
Under Permissions, enable all read permissions
Click
Create Token
Copy the token. It is shown only once.
5
Submit credentials to Opriven
Provide the following in the Opriven UI:
Field
Value
URL
The full URL you copied
Username
The numeric user ID
Password
The access policy token
A self-hosted instance usually lives inside your own network. Before connecting, review
Self-Hosted Observability
to make it reachable by Opriven.
Prerequisites
A self-hosted Grafana instance, reachable over HTTPS from Opriven
Permission to create a service account and token in Grafana
1
Confirm your instance URL
Note the base URL of your Grafana instance, for example
https://grafana.internal.example.com
.
2
Create a service account token
In Grafana, go to
Administration > Service Accounts > Add service account
. Assign the
Viewer
role for read-only access, then add a token.
Copy the token when it is shown. It cannot be retrieved later.
3
Submit credentials to Opriven
Provide the following in the Opriven UI:
Field
Value
Grafana URL
The base URL of your instance
Service Account Token
The Viewer-scoped token
Permissions and Access
Opriven uses read-only access: a Viewer-scoped service account token for self-hosted instances, or a read-only access policy token for Grafana Cloud. No write operations are performed.