Grafana
Grafana is a comprehensive observability and analytics platform used for visualizing, monitoring, and analyzing metrics, logs, and data from multiple sources. It provides powerful dashboarding capabilities that enable organizations to create interactive visualizations and gain insights into their infrastructure, applications, and business metrics. This integration enables querying and managing Grafana's configuration, organizational structure, access controls, and monitoring resources.
| Category | Observability |
| Direction | Query source |
| Sign-in | API Key, Basic Authentication |
| Query languages | SQLite |
| Tables | 9 |
| Query templates | 22 |
| Website | grafana.com |
Before you start
Huntbase can sign in to Grafana with any of these methods: API Key, Basic Authentication. Pick one, create the credential in Grafana, then keep it to hand for the Connect step.
API Key
Grafana API token (or service account token) supplied as the auth value.
- In Grafana, click Administration in the left-side menu, then Users and access › Service accounts › Add service account.
- Enter a Display name and click Create.
- Assign the Viewer role with the role picker.
- Click Add service account token, enter a name, optionally click Set expiration date, then click Generate token. Copy the token. It is shown only once.
Permissions:
- Viewer
- Service account tokens have no expiration date by default. Grafana recommends setting one.
For the vendor's own instructions, see Grafana service accounts documentation.
Use a dedicated, read-only credential for Huntbase where the product allows it. Huntbase only needs to read.
Connect Grafana
- Go to Connections and click New connection, or click New connection on the Grafana product page.
- On Product, pick Grafana and choose the Owner.
- On Details, give the connection a Name and, optionally, a Description.
- On Connect, fill in the settings and credentials described below.
- On Verify, review the summary and click Create & check.
For everything else on the setup page — saving a draft, I'll do this later, and what each check result means — see Connections.
Settings
Where your Grafana lives:
| Field | Required | Notes |
|---|---|---|
| Grafana URL | Yes | The root URL of your Grafana server, such as http://localhost:3000. |
Credentials
Choose a Method, enter a Credential label (for example Production), then fill in the fields for that method.
API Key
| Field | Required | Notes |
|---|---|---|
| Authentication | Yes | Either a service account token, or username:password for basic authentication. Secret — not shown again after you save it. |
Basic Authentication
| Field | Required | Notes |
|---|---|---|
| Authentication | Yes | Either a service account token, or username:password for basic authentication. Secret — not shown again after you save it. |
Query it
Once connected, Grafana can serve these languages in a query tab, and Scout can use it when you ask in Auto:
| Language | Use it for |
|---|---|
| SQLite | SQL over the 9 tables listed below, alongside every other connected source. |
Example: SQLite
List all orgs — Explore the various organizations within your Grafana setup to understand their settings and configurations.
select
*
from
grafana_org;
Grafana ships with 22 query templates. Find them in Library › Queries — see Query templates.
Tables
Grafana adds 9 tables. Browse their columns from Schema in the query bar's ⋯ menu.
All 9 tables
| Table | Contains |
|---|---|
grafana_alert_rule | Alert rules in the Grafana installation. |
grafana_dashboard | Dashboards in the Grafana installation. |
grafana_datasource | Data sources in the Grafana installation. |
grafana_folder | Folders in the Grafana installation. |
grafana_folder_permission | Permissions for a given Folder in the Grafana installation. |
grafana_org | Orgs in the Grafana installation. |
grafana_team | Teams in the Grafana installation. |
grafana_team_member | Members for a given Team in the Grafana installation. |
grafana_user | Users in the Grafana installation. |
Next steps
- Connections — health, credentials and settings after you connect
- Query languages — syntax, parameters and time ranges
- Chatting with Scout — ask questions without writing a query
- All integrations — the rest of the catalog