Grafana for Openclaw

A specialized technical skill designed to help developers avoid common Grafana mistakes in querying, alerting, and dashboard provisioning.

ivangdavila
v1.0.0
Feb 10, 2026
4
3.2k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install grafana

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install grafana using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Grafana?

The Grafana skill for Openclaw Skills acts as a technical guardrail for engineers building complex observability layers. It focuses on the nuanced configuration requirements of Grafana, ensuring that queries are performant, variables are correctly escaped, and dashboards remain portable across different environments. By utilizing this skill within Openclaw Skills, teams can significantly reduce the time spent troubleshooting broken visualizations or misconfigured alerts.

This skill bridges the gap between basic dashboarding and professional-grade observability. It provides deep insights into PromQL best practices, such as the correct use of rate functions and range vectors, while also addressing the complexities of dashboard provisioning and data source management. Whether you are scaling a self-hosted instance or managing enterprise-level dashboards, this skill ensures your setup follows industry standards.

Grafana Use Cases

  • Troubleshooting Prometheus queries to ensure correct usage of rate and deriv functions.
  • Implementing dynamic dashboard variables that correctly handle multi-value selections and regex escaping.
  • Configuring server-side alerts that remain robust without relying on browser-side variables.
  • Automating dashboard provisioning using JSON exports and data source variables for environment portability.
  • Optimizing dashboard performance by managing high-cardinality queries and annotation load.

How Grafana Works

  1. The skill evaluates your query syntax to ensure compatibility with data source requirements, such as adding range vectors to Prometheus rate functions.
  2. It applies variable templating logic to ensure that multi-value and chained variables refresh correctly based on user input.
  3. The skill guides the configuration of display options, distinguishing between null and no-data states to provide accurate visualizations.
  4. It validates alerting logic, ensuring that conditions are evaluated on the server and that notification channels are properly mapped.
  5. Finally, it streamlines the export and import process by substituting hardcoded UIDs with dynamic data source variables.

Grafana Setup

To integrate this skill into your workflow, ensure you have the Openclaw Skills CLI installed and your Grafana environment accessible.

# Install the Grafana skill
openclaw install grafana-skill

# Configure your Prometheus or Data Source variables
export DS_PROMETHEUS="my-prometheus-ds"

# Validate your existing dashboard JSON
openclaw skills run grafana --lint ./dashboard.json

Grafana Data Schema & Taxonomy

The Grafana skill organizes observability metadata into several key functional areas:

Component Description Key Attributes
Variables Dynamic templating $__interval, ${var:csv}, $__all
Queries Data source specific rate(), range vectors, labels
Provisioning Deployment config allowEditing, DS_PROMETHEUS
Alerting Notification logic Pending, Firing, AND/OR conditions
Transforms Data processing Outer join, Reduce, Add field

Grafana Advanced Features

  • Support for $__rate_interval to automatically adapt scrape intervals to dashboard time ranges.
  • Advanced regex filtering for metric labels including negative matches and pipe-separated variable expansion.
  • Automated transformation ordering to ensure client-side calculations like joins and aggregations perform as expected.
  • Server-side alert evaluation logic that prevents common failures associated with dashboard-specific variables.
  • Seamless dashboard provisioning that maintains read-only integrity while allowing for environment-specific overrides.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*