grafana_bak/pkg/services/store/kind/dashboard/testdata/all-selected-multi-datasource-variable.json
2025-04-01 10:38:02 +09:00

230 lines
5.0 KiB
JSON

{
"annotations": {
"list": [
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 209,
"iteration": 1656533909544,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "sqlite-datasource",
"uid": "${sqllite}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 0
},
"id": 7,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"repeat": "sqllite",
"repeatDirection": "h",
"targets": [
{
"datasource": {
"type": "sqlite-datasource",
"uid": "${sqllite}"
},
"queryText": "\n SELECT CAST(strftime('%s', 'now', '-1 minute') as INTEGER) as time, 4 as value\n WHERE time >= 1234 and time < 134567\n ",
"queryType": "table",
"rawQueryText": "SELECT CAST(strftime('%s', 'now', '-1 minute') as INTEGER) as time, 4 as value \nWHERE time >= $__from / 1000 and time < $__to / 1000",
"refId": "A",
"timeColumns": [
"time",
"ts"
]
}
],
"title": "Panel Title",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 8
},
"id": 3,
"panels": [],
"repeat": "sqllite",
"repeatDirection": "h",
"title": "Row title",
"type": "row"
},
{
"datasource": {
"type": "sqlite-datasource",
"uid": "${sqllite}"
},
"fieldConfig": {
"defaults": {
"custom": {
"align": "auto",
"displayMode": "auto",
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 8,
"y": 9
},
"id": 1,
"options": {
"footer": {
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true
},
"pluginVersion": "9.1.0-pre",
"targets": [
{
"datasource": {
"type": "sqlite-datasource",
"uid": "${sqllite}"
},
"queryText": "select * from user",
"queryType": "table",
"rawQueryText": "select * from user",
"refId": "A",
"timeColumns": [
"time",
"ts"
]
}
],
"title": "usersss!",
"type": "table"
}
],
"schemaVersion": 36,
"tags": [],
"templating": {
"list": [
{
"allValue": "",
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"hide": 0,
"includeAll": true,
"multi": true,
"name": "sqllite",
"options": [],
"query": "sqlite-datasource",
"queryValue": "",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "datasource"
}
]
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "ds-variables",
"uid": "7BzWolqnk",
"version": 36,
"weekStart": ""
}