matiasvillaverde

Agent-first CLI to control Grafana and Grafana Cloud

15
0
100% credibility
Found Mar 08, 2026 at 15 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Go
AI Summary

A user-friendly command-line tool for querying Grafana dashboards, runtime data like logs and metrics, alerting rules, and generating incident summaries with structured output.

How It Works

1
๐Ÿ” Discover the Tool

You hear about a handy companion for your Grafana setup that lets you check dashboards and investigate issues right from your computer.

2
๐Ÿ“ฅ Get It Ready

Download the simple program and place it where your computer can always find it, like adding a favorite app.

3
๐Ÿ” Connect Securely

Sign in once with your Grafana details, and it remembers everything safely using your computer's secure storage.

4
โœ… Check Your Setup

Run a quick check to see what features are ready, like dashboards, logs, and alerts.

5
๐Ÿ“Š Explore Your Data

Search dashboards by name, pull recent logs for errors, or summarize metrics and traces in seconds.

6
๐Ÿ•ต๏ธ Investigate Issues

Describe a problem like 'latency spike' and get a smart summary with key insights across your data.

๐ŸŽ‰ Get Answers Fast

You quickly spot the issue, understand what's happening, and feel confident moving forward with clear results.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 15 to 15 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is grafana-cli?

Grafana-cli is an agent-first CLI tool built in Go for controlling Grafana and Grafana Cloud stacks from the grafana cli github repo. It solves grafana cli command not found headaches by offering discoverable commands for auth, dashboards, alerting, runtime queries (PromQL, LogQL, TraceQL), incidents, OnCall schedules, and SLOs. Users get compact JSON outputs, agent envelopes, and a schema endpoint to map the full command surface without docs.

Why is it gaining traction?

In an agent-first organization github world, its machine-readable schema (`grafana schema`) lets AI agents like Claude explore commands dynamically, with token-aware designs minimizing LLM costs. Structured flags like `--jq`, `--agent`, and `--read-only` make it a grafana cli tool superior to raw curl or grafana client python wrappers plagued by timeouts. It proxies common tasks like grafana cli reset admin password via raw API, plus runtime aggregates across signals.

Who should use this?

SREs investigating spikes with `incident analyze --goal "checkout latency"` or `runtime logs query '{app="checkout"} |= "error"'`. DevOps scripting Grafana Cloud stacks, listing datasources for grafana clickhouse, or automating OnCall without grafana cli proxy hassles. AI workflow builders chaining agent plans for observability loops.

Verdict

Promising hackathon WIP (15 stars, 1.0% credibility score) with 100% test coverage and auto-releases, but light on docs and maturityโ€”expect rough edges. Try via `go install` if agent-driven Grafana control fits; skip for production until broader Cloud features land.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.