Skip to content

Instantly share code, notes, and snippets.

@megamorf
Created July 14, 2019 01:06
Show Gist options
  • Save megamorf/70da3cf167e8f0e576a4abde66195849 to your computer and use it in GitHub Desktop.
Save megamorf/70da3cf167e8f0e576a4abde66195849 to your computer and use it in GitHub Desktop.
Flowercare Exporter Blog Post
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "6.0.1"
},
{
"type": "panel",
"id": "graph",
"name": "Graph",
"version": "5.0.0"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "5.0.0"
}
],
"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": null,
"iteration": 1563055131360,
"links": [],
"panels": [
{
"aliasColors": {
"Moisture": "#7eb26d",
"Temperature": "#eab839"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"description": "",
"fill": 1,
"gridPos": {
"h": 6,
"w": 24,
"x": 0,
"y": 0
},
"id": 2,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {},
"paceLength": 10,
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"repeat": "sensor",
"repeatDirection": "v",
"seriesOverrides": [
{
"alias": "Moisture",
"yaxis": 2
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "flowercare_moisture_percent{name=\"$sensor\"}",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Moisture",
"refId": "A"
},
{
"expr": "flowercare_temperature_celsius{name=\"$sensor\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Temperature",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Trend - $sensor",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": null,
"format": "celsius",
"label": "Temperature",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"decimals": null,
"format": "percent",
"label": "Moisture",
"logBase": 1,
"max": "100",
"min": "0",
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"refresh": false,
"schemaVersion": 18,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"allValue": null,
"current": {},
"datasource": "${DS_PROMETHEUS}",
"definition": "label_values(flowercare_battery_percent, name)\t",
"hide": 0,
"includeAll": true,
"label": "Sensor",
"multi": true,
"name": "sensor",
"options": [],
"query": "label_values(flowercare_battery_percent, name)\t",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
},
"time": {
"from": "now-3h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "",
"title": "Flowercare Overview",
"uid": "b2KQtQSWz",
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment