{ "kind": "Dashboard", "apiVersion": "dashboard.grafana.app/v2beta1", "metadata": { "name": "test-v2alpha1-groupby-adhoc-vars" }, "spec": { "annotations": [], "cursorSync": "", "elements": {}, "layout": { "kind": "RowsLayout", "spec": { "rows": [] } }, "links": [], "preload": false, "tags": [], "timeSettings": { "from": "", "to": "", "autoRefresh": "", "autoRefreshIntervals": null, "hideTimepicker": false, "fiscalYearStartMonth": 0 }, "title": "Test: V2alpha1 dashboard with group by and adhoc variables", "variables": [ { "kind": "GroupByVariable", "group": "prometheus", "datasource": { "name": "gdev-prometheus" }, "spec": { "name": "", "current": { "text": "text7", "value": "value7" }, "options": null, "multi": false, "label": "Group By Variable", "hide": "dontHide", "skipUrlSync": false, "description": "A group by variable" } }, { "kind": "AdhocVariable", "group": "prometheus", "datasource": { "name": "datasource-3" }, "spec": { "name": "adhocVar", "baseFilters": [ { "key": "key1", "operator": "=", "value": "value1", "condition": "AND" }, { "key": "key2", "operator": "=", "value": "value2", "condition": "OR" } ], "filters": [ { "key": "key3", "operator": "=", "value": "value3", "condition": "AND" } ], "defaultKeys": [ { "text": "defaultKey1", "value": "defaultKey1", "group": "defaultGroup1", "expandable": true } ], "label": "Adhoc Variable", "hide": "dontHide", "skipUrlSync": false, "description": "An adhoc variable", "allowCustomValue": true } } ] }, "status": { "conversion": { "failed": false, "storedVersion": "v2alpha1" } } }