Home
Tableaux De Bord
Grafana Create Dashboard Example
Grafana Create Dashboard Example
Dashboards Business Intelligence Analytics Data Visualization Monitoring Grafana Metabase
Grafana Create Dashboard Example is an example object payload from Tableaux De Bord, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
Top-level fields
request response
Example Payload
{
"request": {
"method": "POST",
"url": "https://grafana.example.com/api/dashboards/db",
"headers": {
"Authorization": "Bearer glsa_xxxxxxxxxx",
"Content-Type": "application/json"
},
"body": {
"dashboard": {
"id": null,
"uid": null,
"title": "Infrastructure Overview",
"tags": ["infrastructure", "kubernetes", "monitoring"],
"timezone": "browser",
"refresh": "30s",
"time": {
"from": "now-1h",
"to": "now"
},
"schemaVersion": 38,
"panels": [
{
"id": 1,
"type": "timeseries",
"title": "CPU Usage",
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 0},
"datasource": {"type": "prometheus", "uid": "prometheus-default"},
"targets": [
{
"expr": "100 - (avg by (instance) (irate(node_cpu_seconds_total{mode='idle'}[5m])) * 100)",
"legendFormat": "{{instance}}"
}
]
},
{
"id": 2,
"type": "stat",
"title": "Active Pods",
"gridPos": {"h": 4, "w": 6, "x": 12, "y": 0},
"datasource": {"type": "prometheus", "uid": "prometheus-default"},
"targets": [
{
"expr": "count(kube_pod_status_phase{phase='Running'})",
"legendFormat": "Running Pods"
}
]
}
]
},
"folderId": 0,
"message": "Initial dashboard creation",
"overwrite": false
}
},
"response": {
"status": 200,
"body": {
"id": 42,
"uid": "rYy7mH6Vz",
"url": "/d/rYy7mH6Vz/infrastructure-overview",
"status": "success",
"version": 1,
"slug": "infrastructure-overview"
}
}
}