Created
March 22, 2024 19:42
-
-
Save LarsStegman/f35402e5b215bb597d8bf6e043c04e61 to your computer and use it in GitHub Desktop.
ConfigFromQuery test dashboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "grafana", | |
"uid": "-- Grafana --" | |
}, | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", | |
"type": "dashboard" | |
} | |
] | |
}, | |
"editable": true, | |
"fiscalYearStartMonth": 0, | |
"graphTooltip": 0, | |
"id": 1, | |
"links": [], | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "datasource", | |
"uid": "-- Mixed --" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "dashed+area" | |
} | |
}, | |
"mappings": [], | |
"max": 100, | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 11, | |
"w": 24, | |
"x": 0, | |
"y": 0 | |
}, | |
"id": 1, | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"maxHeight": 600, | |
"mode": "single", | |
"sort": "none" | |
} | |
}, | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "datasource", | |
"uid": "grafana" | |
}, | |
"queryType": "randomWalk", | |
"refId": "A" | |
}, | |
{ | |
"csvContent": "H,HH\n60,85", | |
"datasource": { | |
"type": "grafana-testdata-datasource", | |
"uid": "ddgghpzndoj5sd" | |
}, | |
"refId": "B", | |
"scenarioId": "csv_content" | |
} | |
], | |
"title": "Panel Title", | |
"transformations": [ | |
{ | |
"id": "configFromData", | |
"options": { | |
"applyTo": { | |
"id": "byFrameRefID", | |
"options": "A" | |
}, | |
"configRefId": "B", | |
"mappings": [ | |
{ | |
"fieldName": "HH", | |
"handlerArguments": { | |
"threshold": { | |
"color": "#F2495C" | |
} | |
}, | |
"handlerKey": "threshold1" | |
}, | |
{ | |
"fieldName": "H", | |
"handlerArguments": { | |
"threshold": { | |
"color": "orange" | |
} | |
}, | |
"handlerKey": "threshold1" | |
} | |
] | |
} | |
} | |
], | |
"type": "timeseries" | |
} | |
], | |
"schemaVersion": 39, | |
"tags": [], | |
"templating": { | |
"list": [] | |
}, | |
"time": { | |
"from": "now-6h", | |
"to": "now" | |
}, | |
"timeRangeUpdatedDuringEditOrView": false, | |
"timepicker": {}, | |
"timezone": "browser", | |
"title": "New dashboard", | |
"uid": "bddqzahkdyozkd", | |
"version": 8, | |
"weekStart": "" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment