A CLI for managing Grafana and Grafana Cloud resources, optimized for AI agent usage, supporting dashboards, alerts, SLOs, metrics, logs, and traces.
- v1.6.0
- Published at
- 6d ago
- 778
- Stars
- 62,041
- Download
- Synced at
- 6d ago
Latest release
v1.6.0Oct 13, 2026, 10:22 AMDownloads slow? Switch the source anytime above
README
Project Overview
gcx is a CLI for Grafana — Cloud, Enterprise, and OSS alike (Grafana 12+). It gives you and your AI coding agent structured access to your Grafana instance: dashboards, alerts, SLOs, metrics, logs, traces, and more.
Key Features
- Resource management: Dashboards, alerts, SLOs, metrics, logs, traces
- Dashboard operations:
gcx dashboards list,gcx dashboards search - Metric queries:
gcx metrics query - Agent skills suite: Out-of-the-box workflows for alert investigation, dashboard creation and GitOps, SLO management, and observability setup
- Login management:
gcx loginfor Grafana Cloud and self-hosted instances
Target Audience
- Grafana users and administrators
- Developers using AI coding agents
- DevOps and SRE engineers
Quick Start
- Quick install (Linux/macOS):
curl -fsSL https://raw.githubusercontent.com/grafana/gcx/main/scripts/install.sh | sh - Or via Homebrew:
brew install grafana/grafana/gcx - Login to Grafana Cloud:
gcx login prod --server https://<instance>.grafana.net - Query metrics:
gcx metrics query 'sum by (handler)(rate(grafana_http_request_duration_seconds_count[5m]))' --since 1h
Core Advantages
- Optimized for AI agent usage
- Out-of-the-box agent skills suite
- Supports Grafana Cloud, Enterprise, and OSS
- Open-source and free (Apache-2.0)
System Requirements
- OS: Cross-platform (Linux, macOS, Windows)
- Architectures: x86_64, arm64
Release history
Sort