Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
252 lines (251 sloc) 5.17 KB
{
"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,
"id": 2,
"links": [],
"panels": [
{
"alert": {
"conditions": [
{
"evaluator": {
"params": [
10,
512
],
"type": "outside_range"
},
"operator": {
"type": "and"
},
"query": {
"params": [
"A",
"4s",
"now"
]
},
"reducer": {
"params": [],
"type": "avg"
},
"type": "query"
}
],
"executionErrorState": "alerting",
"for": "14s",
"frequency": "2s",
"handler": 1,
"message": "Hey, it's getting dark in here.",
"name": "Photoresistor, Raspberry Pi alert",
"noDataState": "alerting",
"notifications": [
{
"uid": "264vOAWWz"
},
{
"uid": "_J32ALZWk"
}
]
},
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "Timescale Cloud",
"decimals": 0,
"description": "",
"fill": 1,
"gridPos": {
"h": 14,
"w": 24,
"x": 0,
"y": 0
},
"id": 2,
"interval": "2s",
"legend": {
"avg": true,
"current": true,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 1,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": true,
"targets": [
{
"format": "time_series",
"group": [
{
"params": [
"$__interval",
"none"
],
"type": "time"
}
],
"metricColumn": "metric",
"rawQuery": false,
"rawSql": "SELECT\n $__timeGroupAlias(\"time\",$__interval),\n metric AS metric,\n avg(value) AS \"value\"\nFROM pi_obs\nWHERE\n $__timeFilter(\"time\")\nGROUP BY 1,2\nORDER BY 1,2",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
},
{
"params": [
"avg"
],
"type": "aggregate"
},
{
"params": [
"value"
],
"type": "alias"
}
]
],
"table": "pi_obs",
"timeColumn": "\"time\"",
"timeColumnType": "timestamptz",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": [
{
"colorMode": "critical",
"fill": true,
"line": true,
"op": "lt",
"value": 10
},
{
"colorMode": "critical",
"fill": true,
"line": true,
"op": "gt",
"value": 512
}
],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Photoresistor, Raspberry Pi",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 10,
"max": null,
"min": "8",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"refresh": "2s",
"schemaVersion": 18,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-5m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"2s",
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "",
"title": "Raspberry Pi -> Timescale Cloud -> Grafana",
"uid": "iOzzdAWWk",
"version": 35
}
You can’t perform that action at this time.