mirror of https://github.com/grafana/grafana
Timeline: Adds opacity & line width option (#34118)
* Timeline: Adds opacity & line width option * Updated devenv dashboards, added back original timeline modespull/34142/head^2
parent
c61a610f72
commit
953aadd6e4
@ -0,0 +1,414 @@ |
||||
{ |
||||
"annotations": { |
||||
"list": [ |
||||
{ |
||||
"builtIn": 1, |
||||
"datasource": "-- Grafana --", |
||||
"enable": true, |
||||
"hide": true, |
||||
"iconColor": "rgba(0, 211, 255, 1)", |
||||
"name": "Annotations & Alerts", |
||||
"type": "dashboard" |
||||
} |
||||
] |
||||
}, |
||||
"editable": true, |
||||
"gnetId": null, |
||||
"graphTooltip": 0, |
||||
"links": [], |
||||
"panels": [ |
||||
{ |
||||
"datasource": null, |
||||
"fieldConfig": { |
||||
"defaults": { |
||||
"color": { |
||||
"mode": "palette-classic" |
||||
}, |
||||
"custom": { |
||||
"fillOpacity": 80, |
||||
"lineWidth": 1 |
||||
}, |
||||
"mappings": [ |
||||
{ |
||||
"options": { |
||||
"CRITICAL": { |
||||
"color": "red", |
||||
"index": 3 |
||||
}, |
||||
"HIGH": { |
||||
"color": "orange", |
||||
"index": 2 |
||||
}, |
||||
"LOW": { |
||||
"color": "blue", |
||||
"index": 0 |
||||
}, |
||||
"NORMAL": { |
||||
"color": "green", |
||||
"index": 1 |
||||
} |
||||
}, |
||||
"type": "value" |
||||
} |
||||
], |
||||
"thresholds": { |
||||
"mode": "absolute", |
||||
"steps": [ |
||||
{ |
||||
"color": "green", |
||||
"value": null |
||||
}, |
||||
{ |
||||
"color": "red", |
||||
"value": 80 |
||||
} |
||||
] |
||||
} |
||||
}, |
||||
"overrides": [] |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 24, |
||||
"x": 0, |
||||
"y": 0 |
||||
}, |
||||
"id": 9, |
||||
"options": { |
||||
"alignValue": "center", |
||||
"colWidth": 0.9, |
||||
"legend": { |
||||
"calcs": [], |
||||
"displayMode": "list", |
||||
"placement": "bottom" |
||||
}, |
||||
"mode": "changes", |
||||
"rowHeight": 0.98, |
||||
"showValue": "always" |
||||
}, |
||||
"pluginVersion": "7.5.0-pre", |
||||
"targets": [ |
||||
{ |
||||
"alias": "SensorA", |
||||
"refId": "A", |
||||
"scenarioId": "csv_metric_values", |
||||
"stringInput": "LOW,HIGH,NORMAL,NORMAL,NORMAL,LOW,LOW,NORMAL,HIGH,CRITICAL" |
||||
}, |
||||
{ |
||||
"alias": "SensorB", |
||||
"hide": false, |
||||
"refId": "B", |
||||
"scenarioId": "csv_metric_values", |
||||
"stringInput": "NORMAL,LOW,LOW,CRITICAL,CRITICAL,LOW,LOW,NORMAL,HIGH,CRITICAL" |
||||
}, |
||||
{ |
||||
"alias": "SensorA", |
||||
"hide": false, |
||||
"refId": "C", |
||||
"scenarioId": "csv_metric_values", |
||||
"stringInput": "NORMAL,NORMAL,NORMAL,NORMAL,CRITICAL,LOW,NORMAL,NORMAL,NORMAL,LOW" |
||||
} |
||||
], |
||||
"title": "State changes strings", |
||||
"type": "timeline" |
||||
}, |
||||
{ |
||||
"datasource": null, |
||||
"fieldConfig": { |
||||
"defaults": { |
||||
"color": { |
||||
"mode": "thresholds" |
||||
}, |
||||
"custom": { |
||||
"fillOpacity": 70, |
||||
"lineWidth": 1 |
||||
}, |
||||
"mappings": [ |
||||
{ |
||||
"options": { |
||||
"match": "true", |
||||
"result": { |
||||
"color": "semi-dark-green", |
||||
"index": 0, |
||||
"text": "ON" |
||||
} |
||||
}, |
||||
"type": "special" |
||||
}, |
||||
{ |
||||
"options": { |
||||
"match": "false", |
||||
"result": { |
||||
"color": "red", |
||||
"index": 1, |
||||
"text": "OFF" |
||||
} |
||||
}, |
||||
"type": "special" |
||||
} |
||||
], |
||||
"thresholds": { |
||||
"mode": "absolute", |
||||
"steps": [ |
||||
{ |
||||
"color": "green", |
||||
"value": null |
||||
}, |
||||
{ |
||||
"color": "red", |
||||
"value": 80 |
||||
} |
||||
] |
||||
} |
||||
}, |
||||
"overrides": [] |
||||
}, |
||||
"gridPos": { |
||||
"h": 11, |
||||
"w": 13, |
||||
"x": 0, |
||||
"y": 8 |
||||
}, |
||||
"id": 13, |
||||
"options": { |
||||
"alignValue": "center", |
||||
"colWidth": 1, |
||||
"mode": "changes", |
||||
"rowHeight": 0.98, |
||||
"showValue": "always" |
||||
}, |
||||
"targets": [ |
||||
{ |
||||
"alias": "", |
||||
"refId": "A", |
||||
"scenarioId": "csv_metric_values", |
||||
"stringInput": "true,false,true,true,true,true,false,false" |
||||
}, |
||||
{ |
||||
"hide": false, |
||||
"refId": "B", |
||||
"scenarioId": "csv_metric_values", |
||||
"stringInput": "false,true,false,true,true,false,false,false,true,true" |
||||
}, |
||||
{ |
||||
"hide": false, |
||||
"refId": "C", |
||||
"scenarioId": "csv_metric_values", |
||||
"stringInput": "true,false,true,true" |
||||
}, |
||||
{ |
||||
"hide": false, |
||||
"refId": "D", |
||||
"scenarioId": "csv_metric_values", |
||||
"stringInput": "false,true,false,true,true" |
||||
} |
||||
], |
||||
"title": "State changes with boolean values", |
||||
"type": "timeline" |
||||
}, |
||||
{ |
||||
"datasource": null, |
||||
"description": "Should show gaps", |
||||
"fieldConfig": { |
||||
"defaults": { |
||||
"color": { |
||||
"mode": "thresholds" |
||||
}, |
||||
"custom": { |
||||
"fillOpacity": 80, |
||||
"lineWidth": 1 |
||||
}, |
||||
"mappings": [ |
||||
{ |
||||
"options": { |
||||
"match": "true", |
||||
"result": { |
||||
"color": "semi-dark-green", |
||||
"index": 0, |
||||
"text": "ON" |
||||
} |
||||
}, |
||||
"type": "special" |
||||
}, |
||||
{ |
||||
"options": { |
||||
"match": "false", |
||||
"result": { |
||||
"color": "red", |
||||
"index": 1, |
||||
"text": "OFF" |
||||
} |
||||
}, |
||||
"type": "special" |
||||
} |
||||
], |
||||
"thresholds": { |
||||
"mode": "absolute", |
||||
"steps": [ |
||||
{ |
||||
"color": "green", |
||||
"value": null |
||||
}, |
||||
{ |
||||
"color": "red", |
||||
"value": 80 |
||||
} |
||||
] |
||||
} |
||||
}, |
||||
"overrides": [] |
||||
}, |
||||
"gridPos": { |
||||
"h": 11, |
||||
"w": 11, |
||||
"x": 13, |
||||
"y": 8 |
||||
}, |
||||
"id": 12, |
||||
"options": { |
||||
"alignValue": "center", |
||||
"colWidth": 1, |
||||
"mode": "changes", |
||||
"rowHeight": 0.98, |
||||
"showValue": "always" |
||||
}, |
||||
"targets": [ |
||||
{ |
||||
"refId": "A", |
||||
"scenarioId": "csv_metric_values", |
||||
"stringInput": "true,false,true,true,true,true,false,false" |
||||
}, |
||||
{ |
||||
"hide": false, |
||||
"refId": "B", |
||||
"scenarioId": "csv_metric_values", |
||||
"stringInput": "false,true,false,true,true,false,false,false,true,true" |
||||
}, |
||||
{ |
||||
"hide": false, |
||||
"refId": "C", |
||||
"scenarioId": "csv_metric_values", |
||||
"stringInput": "true,false,null,true,true" |
||||
}, |
||||
{ |
||||
"hide": false, |
||||
"refId": "D", |
||||
"scenarioId": "csv_metric_values", |
||||
"stringInput": "false,null,null,false,true,true" |
||||
} |
||||
], |
||||
"title": "State changes with nulls", |
||||
"type": "timeline" |
||||
}, |
||||
{ |
||||
"datasource": null, |
||||
"fieldConfig": { |
||||
"defaults": { |
||||
"color": { |
||||
"mode": "continuous-GrYlRd" |
||||
}, |
||||
"custom": { |
||||
"fillOpacity": 96, |
||||
"lineWidth": 0 |
||||
}, |
||||
"decimals": 0, |
||||
"mappings": [], |
||||
"max": 30, |
||||
"min": -10, |
||||
"thresholds": { |
||||
"mode": "absolute", |
||||
"steps": [ |
||||
{ |
||||
"color": "green", |
||||
"value": null |
||||
}, |
||||
{ |
||||
"color": "red", |
||||
"value": 80 |
||||
} |
||||
] |
||||
}, |
||||
"unit": "short" |
||||
}, |
||||
"overrides": [] |
||||
}, |
||||
"gridPos": { |
||||
"h": 12, |
||||
"w": 24, |
||||
"x": 0, |
||||
"y": 19 |
||||
}, |
||||
"id": 4, |
||||
"interval": null, |
||||
"maxDataPoints": 20, |
||||
"options": { |
||||
"alignValue": "center", |
||||
"colWidth": 0.96, |
||||
"legend": { |
||||
"calcs": [], |
||||
"displayMode": "list", |
||||
"placement": "bottom" |
||||
}, |
||||
"mode": "samples", |
||||
"rowHeight": 0.98, |
||||
"showValue": "always" |
||||
}, |
||||
"pluginVersion": "7.5.0-pre", |
||||
"targets": [ |
||||
{ |
||||
"alias": "", |
||||
"csvWave": { |
||||
"timeStep": 60, |
||||
"valuesCSV": "0,0,2,2,1,1" |
||||
}, |
||||
"lines": 10, |
||||
"max": 30, |
||||
"min": -10, |
||||
"noise": 2, |
||||
"points": [], |
||||
"pulseWave": { |
||||
"offCount": 3, |
||||
"offValue": 1, |
||||
"onCount": 3, |
||||
"onValue": 2, |
||||
"timeStep": 60 |
||||
}, |
||||
"refId": "A", |
||||
"scenarioId": "random_walk", |
||||
"seriesCount": 4, |
||||
"spread": 15, |
||||
"startValue": 5, |
||||
"stream": { |
||||
"bands": 1, |
||||
"noise": 2.2, |
||||
"speed": 250, |
||||
"spread": 3.5, |
||||
"type": "signal" |
||||
}, |
||||
"stringInput": "" |
||||
} |
||||
], |
||||
"title": "\"Periodic samples\" Mode", |
||||
"type": "timeline" |
||||
} |
||||
], |
||||
"refresh": false, |
||||
"schemaVersion": 30, |
||||
"style": "dark", |
||||
"tags": [ |
||||
"gdev", |
||||
"demo" |
||||
], |
||||
"templating": { |
||||
"list": [] |
||||
}, |
||||
"time": { |
||||
"from": "now-1h", |
||||
"to": "now" |
||||
}, |
||||
"timepicker": {}, |
||||
"timezone": "utc", |
||||
"title": "Timeline Demo", |
||||
"uid": "mIJjFy8Kz", |
||||
"version": 13 |
||||
} |
Loading…
Reference in new issue