Supported platforms
| Platform | Support |
|---|---|
| Grafana OSS | 9.x, 10.x |
| Grafana Enterprise | All versions |
| Grafana Cloud | All tiers |
Prerequisites
- A Grafana instance (OSS, Enterprise, or Cloud) reachable from CloudThinker.
- Admin access to create a service account under Administration → Users and access → Service Accounts.
- The Grafana instance URL.
Setup
Create service account
Click Add service account and enter:
- Name:
cloudthinker-readonly - Role: Select Viewer
Generate token
On the new service account page:
- Click Add service account token
- Enter a token name (e.g.,
cloudthinker-token) - Optionally set an expiration date
- Click Generate token
- Immediately copy the token — it won’t be shown again
Connection details
| Field | Description | Example |
|---|---|---|
| GRAFANA_URL | Your Grafana instance URL | https://your-instance.grafana.net |
| GRAFANA_SERVICE_ACCOUNT_TOKEN | The generated service account token | glsa_xxxxx... |
Required permissions
| Role | What it grants |
|---|---|
| Viewer | View dashboards, query data sources, view annotations, access folder contents |
| Editor | Viewer permissions, plus create annotations and save dashboard snapshots |
Agent capabilities
Once connected, agents can:| Capability | Description |
|---|---|
| Dashboard access | Reference existing dashboards in analysis |
| Metric queries | Query data sources through Grafana |
| Annotation reading | Access dashboard annotations for context |
| Alert status | Check Grafana alerting rules status |
Verify the connection
Example prompts
Supported data sources
CloudThinker can query through Grafana’s configured data sources:| Data source | Query support |
|---|---|
| Prometheus | PromQL queries |
| InfluxDB | InfluxQL / Flux |
| Elasticsearch | Lucene / KQL |
| CloudWatch | CloudWatch metrics |
| Loki | LogQL queries |
Troubleshooting
Connection failed
Connection failed
- Verify the Grafana URL is accessible from CloudThinker.
- Check the SSL certificate is valid.
- Ensure no proxy is blocking the connection.
- Confirm Grafana is running and reachable.
Authentication failed
Authentication failed
- Verify the service account token is correct.
- Check the token has not expired.
- Ensure the service account is active.
- Confirm no IP restrictions are set on the account.
Token expired
Token expired
- Navigate to Administration → Service Accounts.
- Select the CloudThinker service account.
- Generate a new token.
- Update the token in CloudThinker connection settings.
Cannot access dashboards
Cannot access dashboards
- Verify the service account has the Viewer role.
- Check folder permissions include the service account.
- Ensure the dashboards are not in restricted folders.
Security
- Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
- Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
- Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
- Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
- Viewer role only — never grant Editor or Admin roles to the CloudThinker service account
- Token expiration — set an expiration date and rotate the service account token every 90 days
Related
Elasticsearch Connection
Connect log data source
AWS Connection
Connect CloudWatch metrics