Monitoring
API Key
Grafana REST API
Query, visualize, and alert on metrics and logs
Grafana is an open-source analytics and interactive visualization platform. Developers use the Grafana REST API to programmatically manage dashboards, data sources, alerts, and organizations, enabling automated monitoring infrastructure deployment and configuration as code workflows.
Base URL
https://your-grafana-instance.com/api
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /dashboards/uid/:uid | Get a dashboard by its unique identifier |
| POST | /dashboards/db | Create or update a dashboard in the database |
| DELETE | /dashboards/uid/:uid | Delete a dashboard by UID |
| GET | /datasources | Get all configured data sources |
| POST | /datasources | Create a new data source |
| PUT | /datasources/:id | Update an existing data source by ID |
| DELETE | /datasources/:id | Delete a data source by ID |
| GET | /alerts | Get all alerts |
| GET | /alert-notifications | Get all notification channels |
| POST | /alert-notifications | Create a new alert notification channel |
| GET | /org/users | Get users in the current organization |
| POST | /org/users | Add a user to the current organization |
| GET | /folders | Get all folders in the organization |
| POST | /folders | Create a new folder |
| GET | /search | Search for dashboards and folders |
Code Examples
curl -X GET 'https://your-grafana-instance.com/api/dashboards/uid/cIBgcSjkk' \
-H 'Authorization: Bearer glsa_HOruNAb7SOiCdshU9algkdIloRHXeGFi7'
Connect Grafana to AI
Deploy a Grafana MCP server on IOX Cloud and connect it to Claude, ChatGPT, Cursor, or any AI client. Your AI assistant gets direct access to Grafana through these tools:
create_grafana_dashboard
Create or update a Grafana dashboard with panels, queries, and visualizations based on natural language requirements
query_grafana_metrics
Query metrics from configured data sources and return time-series data for analysis
manage_alert_rules
Create, update, or delete alert rules with conditions and notification channels
configure_data_source
Add or update data source configurations for Prometheus, Elasticsearch, or other supported backends
search_dashboards
Search for dashboards by name, tag, or folder and retrieve their configuration
Deploy in 60 seconds
Describe what you need, AI generates the code, and IOX deploys it globally.
Deploy Grafana MCP Server →