Grafana
Connect Grafana to the Pagerly SRE Agent to search dashboards, check firing alerts, read annotations, and query Prometheus metrics.
What the Agent Can Do
Search dashboards by keyword and link straight to the matching ones
Check which Grafana alerts are currently firing (or pending, or in no data)
Read annotations from a recent time window, optionally filtered by tag — find deployment markers and incident notes around the time of the incident
Run PromQL queries against a Prometheus datasource through Grafana's datasource proxy
Setup Instructions
Log into your Grafana instance
Go to Administration (gear icon) > Service accounts
Click Add service account, give it a name (e.g.,
Pagerly)Set the role to Viewer — the agent only reads, so Viewer is enough
Click Add service account token, then Generate token
In Pagerly, open SRE Agent Integrations, select Grafana, and paste the token and your Grafana URL
Required Credentials
API Token
Grafana service account token
glsa_...
Grafana URL
Your Grafana instance URL. A dashboard URL also works; only the base is used.
https://your-org.grafana.net
Context Prompt Tips
The agent needs a datasource's UID to query metrics, and it can't look UIDs up on its own. Find it under Connections > Data sources > your Prometheus datasource (the last part of the page URL), and put it in the context prompt:
"Our main dashboards are in the SRE folder. Prometheus datasource UID is
prom-prod. Key dashboards: api-latency, error-rates, k8s-overview. Deploys are annotated with the tagdeploy."
Docs
Last updated
Was this helpful?