Grafana Integration
Connect Grafana to enable the AI agent to query dashboards, metrics, and alerts during investigations.Capabilities
Once connected, the AI agent can:| Capability | Description |
|---|---|
| Query Metrics | Fetch data from configured data sources |
| View Dashboards | Access dashboard panels and visualizations |
| Check Alerts | Review alert rules and their current state |
| Search Annotations | Find annotations marking events |
Prerequisites
- A Grafana instance (Cloud or self-hosted)
- A Service Account with API access
- Viewer or higher permissions
Setup
1
Create a Service Account
- Log in to your Grafana instance
- Navigate to Administration → Service accounts
- Click Add service account
- Name it (e.g., “AccelOS Integration”)
- Assign the Viewer role
2
Generate API Token
- In the service account, click Add token
- Give it a name and set expiration (or no expiration)
- Copy the generated token immediately
3
Add Integration in AccelOS
- Go to Integrations in AccelOS
- Click Grafana
- Enter a name (e.g., “Production Grafana”)
4
Configure Credentials
Enter the following:
- URL: Your Grafana URL (e.g.,
https://your-org.grafana.net) - API Token: The service account token you created
5
Test and Save
Click Test Connection to verify, then Save.
Required Permissions
The service account needs:| Permission | Why It’s Needed |
|---|---|
| Viewer role | Basic read access to dashboards and data |
| Data source access | Query underlying data sources |
For self-hosted Grafana, ensure the service account has access to the specific data sources you want to query.
Grafana Cloud vs Self-Hosted
Grafana Cloud
Use your Grafana Cloud URL:Self-Hosted Grafana
Use your Grafana server URL:Example Queries
Once connected, you can ask the AI agent:Troubleshooting
401 Unauthorized
401 Unauthorized
Connection Refused (Self-Hosted)
Connection Refused (Self-Hosted)
- Verify the Grafana URL is correct
- Check firewall rules allow access from AccelOS
- Ensure Grafana is running and accessible
No Dashboards Found
No Dashboards Found
- Verify the service account has Viewer permissions
- Check folder permissions for dashboards