Access Grafana via the Grafana HTTP API with managed credentials. Inspect dashboards, folders, data sources, alert rules, teams, and observability resources.
This skill uses ClawLink for hosted connection flows and credentials so you do not need to configure Grafana API access yourself.
| Step 1: Install | Step 2: Pair Account | Step 3: Connect Grafana |
|---|---|---|
| :---: | :---: | :---: |
| !Install | !Pair | App-specific connection GIF coming soon |
| Run the install command in OpenClaw | Sign in and approve the device | Open the dashboard and connect Grafana |
┌─────────────────┐ ┌──────────────┐ ┌──────────────────┐
│ OpenClaw │────▶│ ClawLink │────▶│ Grafana │
│ (User Chat) │ │ (OAuth) │ │ (HTTP API) │
└─────────────────┘ └──────────────┘ └──────────────────┘
│ │ │
│ 1. Install Plugin │ │
│ 2. Pair Device │ │
│ 3. Connect Grafana │ │
│ │ 4. Secure Token │
│ │ 5. Proxy Requests │
│ │ │
▼ ▼ ▼
┌──────────┐ ┌──────────┐ ┌──────────┐
│ SKILL │ │ Dashboard│ │ Grafana │
│ File │ │ Auth │ │ Cloud │
└──────────┘ └──────────┘ └──────────┘
Install the verified ClawLink plugin from ClawHub. After the user confirms, complete the full setup so ClawLink tools are visible in the next OpenClaw chat.
openclaw plugins install clawhub:clawlink-plugin
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart
Then tell the user: "OpenClaw has been restarted. Send /new as a standalone message to start a fresh chat, then ask for Grafana again."
# List dashboards
clawlink_call_tool --tool "grafana_list_dashboards" --params '{}'
# Get a dashboard
clawlink_call_tool --tool "grafana_get_dashboard" --params '{"uid": "YOUR_DASHBOARD_UID"}'
# List folders
clawlink_call_tool --tool "grafana_list_folders" --params '{}'
All Grafana tool calls are authenticated automatically by ClawLink using the configured Grafana credentials (API key or service account token).
No API key is required in chat. ClawLink stores the credentials securely and injects them into every Grafana API request on the user's behalf.
clawlink_begin_pairing if it is not configured yet.clawlink_list_integrations to verify the connection is active.clawlink_list_integrations
Response: Returns all connected integrations. Look for grafana in the list.
clawlink_list_tools --integration grafana
Response: Returns the live tool catalog for Grafana.
If Grafana tools are missing or the connection shows an error:
clawlink_list_integrations to verifyclawlink_list_tools --integration grafana| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
grafana_list_dashboards | List all dashboards the user can access | Read |
grafana_get_dashboard | Get a dashboard by UID | Read |
grafana_create_dashboard | Create a new dashboard | Write |
grafana_update_dashboard | Update an existing dashboard | Write |
grafana_delete_dashboard | Delete a dashboard | Write |
grafana_get_dashboard_permissions | Get permissions for a dashboard | Read |
grafana_update_dashboard_permissions | Update dashboard permissions | Write |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
grafana_list_folders | List all folders | Read |
grafana_get_folder | Get a folder by UID | Read |
grafana_create_folder | Create a new folder | Write |
grafana_update_folder | Update a folder's title or UID | Write |
grafana_delete_folder | Delete a folder | Write |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
grafana_list_datasources | List all configured data sources | Read |
grafana_get_datasource | Get a data source by ID | Read |
grafana_create_datasource | Create a new data source | Write |
grafana_update_datasource | Update a data source | Write |
grafana_delete_datasource | Delete a data source | Write |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
grafana_list_alert_rules | List all alert rules | Read |
grafana_get_alert_rule | Get a specific alert rule by UID | Read |
grafana_create_alert_rule | Create a new alert rule | Write |
grafana_update_alert_rule | Update an existing alert rule | Write |
grafana_delete_alert_rule | Delete an alert rule | Write |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
grafana_list_alert_instances | List active alert instances | Read |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
grafana_list_teams | List all teams | Read |
grafana_get_team | Get a team by ID | Read |
grafana_create_team | Create a new team | Write |
grafana_update_team | Update a team | Write |
grafana_delete_team | Delete a team | Write |
grafana_list_team_members | List members of a team | Read |
grafana_add_team_member | Add a member to a team | Write |
grafana_remove_team_member | Remove a member from a team | Write |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
grafana_get_organization | Get current organization info | Read |
grafana_list_organization_users | List users in the current organization | Read |
grafana_list_users | List all users in Grafana | Read |
grafana_get_user | Get a user by ID | Read |
clawlink_call_tool --tool "grafana_list_dashboards" \
--params '{
"limit": 50
}'
clawlink_call_tool --tool "grafana_get_dashboard" \
--params '{
"uid": "YOUR_DASHBOARD_UID"
}'
clawlink_call_tool --tool "grafana_create_dashboard" \
--params '{
"dashboard": {
"title": "Service Health Overview",
"tags": ["health", "overview"],
"timezone": "browser",
"panels": []
},
"folderUid": "YOUR_FOLDER_UID"
}'
clawlink_call_tool --tool "grafana_list_folders" \
--params '{}'
clawlink_call_tool --tool "grafana_list_datasources" \
--params '{}'
clawlink_call_tool --tool "grafana_create_alert_rule" \
--params '{
"title": "High Error Rate",
"condition": "C",
"data": [
{"refId": "A", "queryType": "prometheus"},
{"refId": "B", "queryType": "reduce"},
{"refId": "C", "queryType": "threshold"}
],
"folderUID": "YOUR_FOLDER_UID"
}'
clawlink_list_integrations to confirm Grafana is connected.clawlink_list_tools --integration grafana to see the live catalog.clawlink_search_tools with a short query and integration grafana.┌─────────────────────────────────────────────────────────────┐
│ READ OPERATIONS (Safe) │
│ list → get → call │
│ │
│ Example: List dashboards → Get details → Show results │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ WRITE OPERATIONS (Require Confirmation) │
│ describe → preview → confirm → call │
│ │
│ Example: Describe tool → Preview → User approves │
│ → Execute update │
└─────────────────────────────────────────────────────────────┘
clawlink_describe_tool first.whenToUse, askBefore, safeDefaults, examples, and followups to shape the call.clawlink_preview_tool first.clawlink_call_tool. Pass confirmation only after the preview matches the user's intent.| Status / Error | Meaning |
|---|---|
| ---------------- | --------- |
| Tool not found | The tool name does not exist in the current catalog. Verify with clawlink_list_tools --integration grafana. |
| Missing connection | Grafana is not connected. Direct the user to https://claw-link.dev/dashboard?add=grafana. |
DASHBOARD_NOT_FOUND | Dashboard does not exist. Check the UID. |
INVALID_ARGUMENT | Invalid parameter or missing required field. Review the tool schema with clawlink_describe_tool. |
UNAUTHORIZED | Grafana credentials are invalid or lack permissions. Check API key access. |
| Write rejected | User did not confirm a write action. Always confirm before executing writes. |
```bash
openclaw plugins list
```
/new as a standalone message to reload the catalog.```bash
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart
```
/new again and retry.grafana.clawlink_describe_tool to verify parameter names and types before calling.clawlink_preview_tool first.Powered by ClawLink — an integration hub for OpenClaw
共 2 个版本