{ "annotations": { "list": [ { "builtIn": 1, "datasource": { "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations \u0026 Alerts", "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "links": [], "panels": [ { "content": "## Data center = $datacenter\n\n### server = $server\n\n#### pod = $pod", "datasource": { "apiVersion": "v1", "type": "grafana-testdata-datasource", "uid": "testdata-type-uid" }, "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "gridPos": { "h": 9, "w": 12, "x": 0, "y": 0 }, "id": 4, "mode": "markdown", "targets": [ { "datasource": { "apiVersion": "v1", "type": "grafana-testdata-datasource", "uid": "testdata-type-uid" }, "refId": "A", "scenarioId": "random_walk" } ], "title": "Panel Title", "type": "text" }, { "datasource": { "type": "grafana-testdata-datasource" }, "fieldConfig": { "defaults": { "color": { "fixedColor": "rgb(31, 120, 193)", "mode": "fixed" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 9, "w": 4, "x": 12, "y": 0 }, "id": 6, "links": [ { "targetBlank": true, "title": "Drilldown detail dashboard", "url": "d/O6GmNPvWk/dashboard-tests-nested-template-variables-drilldown?orgId=1\u0026${__all_variables}\u0026${__url_time_range}" } ], "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.1.0", "targets": [ { "datasource": { "type": "grafana-testdata-datasource" }, "refId": "A", "scenarioId": "random_walk" } ], "title": "Panel drilldown link test", "type": "stat" }, { "datasource": { "apiVersion": "v1", "type": "grafana-testdata-datasource", "uid": "testdata-type-uid" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": {}, "links": [ { "targetBlank": true, "title": "Go to drilldown", "url": "/d/O6GmNPvWk/dashboard-tests-nested-template-variables-drilldown?orgId=1\u0026${__all_variables}\u0026${__url_time_range}" } ], "mappings": [], "max": 100, "min": 0, "nullValueMode": "connected", "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 9, "w": 4, "x": 16, "y": 0 }, "id": 8, "options": { "orientation": "horizontal", "reduceOptions": { "calcs": [ "mean" ], "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true }, "pluginVersion": "7.1.0-pre", "targets": [ { "datasource": { "apiVersion": "v1", "type": "grafana-testdata-datasource", "uid": "testdata-type-uid" }, "refId": "A", "scenarioId": "random_walk" } ], "title": "React gauge datalink", "type": "gauge" }, { "datasource": { "apiVersion": "v1", "type": "grafana-testdata-datasource", "uid": "testdata-type-uid" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": {}, "links": [ { "targetBlank": true, "title": "Go to drilldown", "url": "/d/O6GmNPvWk/dashboard-tests-nested-template-variables-drilldown?orgId=1\u0026${__all_variables}\u0026${__url_time_range}" } ], "mappings": [], "max": 100, "min": 0, "nullValueMode": "connected", "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 9, "w": 4, "x": 20, "y": 0 }, "id": 9, "options": { "displayMode": "basic", "orientation": "vertical", "reduceOptions": { "calcs": [ "mean" ], "values": false }, "showUnfilled": true }, "pluginVersion": "7.1.0-pre", "targets": [ { "datasource": { "apiVersion": "v1", "type": "grafana-testdata-datasource", "uid": "testdata-type-uid" }, "refId": "A", "scenarioId": "random_walk" } ], "title": "React gauge datalink", "type": "bargauge" }, { "datasource": { "uid": "CsvData" }, "fieldConfig": { "defaults": { "custom": {}, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "server" }, "properties": [ { "id": "links", "value": [ { "title": "filter", "url": "http://localhost:3000/d/-Y-tnEDWk/templating-nested-template-variables?var-datacenter=${__data.fields[datacenter]}\u0026var-server=${__value.raw}" } ] } ] } ] }, "gridPos": { "h": 6, "w": 24, "x": 0, "y": 9 }, "id": 11, "options": { "showHeader": true }, "pluginVersion": "7.1.0-pre", "targets": [ { "data": [ { "fields": [ { "config": {}, "name": "datacenter", "type": "string", "values": [ "A", "B", "C" ] }, { "config": {}, "name": "server", "type": "string", "values": [ "AA", "BB", "CC" ] } ] } ], "datasource": { "uid": "CsvData" }, "refId": "A" } ], "title": "Data links that filter update variables on current dashboard", "type": "table" }, { "aliasColors": {}, "autoMigrateFrom": "graph", "bars": false, "dashLength": 10, "dashes": false, "datasource": { "type": "grafana-testdata-datasource" }, "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 13, "w": 24, "x": 0, "y": 15 }, "hiddenSeries": false, "id": 2, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "dataLinks": [] }, "percentage": false, "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "alias": "$datacenter.$server.$pod", "datasource": { "type": "grafana-testdata-datasource" }, "refId": "A", "scenarioId": "random_walk" } ], "thresholds": [], "timeRegions": [], "title": "Panel Title", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "timeseries", "xaxis": { "mode": "time", "show": true, "values": [] }, "yaxes": [ { "format": "short", "logBase": 1, "show": true }, { "format": "short", "logBase": 1, "show": true } ], "yaxis": { "align": false } } ], "refresh": "", "schemaVersion": 42, "tags": [ "gdev", "templating" ], "templating": { "list": [ { "current": { "selected": true, "text": "A", "value": [ "A" ] }, "datasource": { "type": "grafana-testdata-datasource" }, "definition": "*", "hide": 0, "includeAll": true, "multi": true, "name": "datacenter", "options": [], "query": "*", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tagsQuery": "", "type": "query", "useTags": false }, { "current": { "selected": true, "text": "AA", "value": [ "AA" ] }, "datasource": { "type": "grafana-testdata-datasource" }, "definition": "$datacenter.*", "hide": 0, "includeAll": true, "multi": true, "name": "server", "options": [], "query": "$datacenter.*", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tagsQuery": "", "type": "query", "useTags": false }, { "current": { "selected": true, "text": "All", "value": [ "$__all" ] }, "datasource": { "type": "grafana-testdata-datasource" }, "definition": "$datacenter.$server.*", "hide": 0, "includeAll": true, "multi": true, "name": "pod", "options": [], "query": "$datacenter.$server.*", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": { "refresh_intervals": [ "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ] }, "timezone": "", "title": "Templating - Nested Template Variables", "uid": "-Y-tnEDWk", "weekStart": "" }