{ "__inputs": [ { "name": "DS_GPS", "label": "GPS", "description": "", "type": "datasource", "pluginId": "influxdb", "pluginName": "InfluxDB" } ], "__requires": [ { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "5.0.1" }, { "type": "panel", "id": "grafana-worldmap-panel", "name": "Worldmap Panel", "version": "0.0.21" }, { "type": "panel", "id": "graph", "name": "Graph", "version": "5.0.0" }, { "type": "datasource", "id": "influxdb", "name": "InfluxDB", "version": "5.0.0" }, { "type": "panel", "id": "singlestat", "name": "Singlestat", "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": 1526834096338, "links": [], "panels": [ { "aliasColors": { "128": "#6d1f62", "146": "#eab839", "161": "#6d1f62" }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "${DS_GPS}", "fill": 1, "gridPos": { "h": 9, "w": 9, "x": 0, "y": 0 }, "id": 2, "legend": { "alignAsTable": true, "avg": false, "current": false, "max": false, "min": false, "show": true, "sortDesc": false, "total": false, "values": false }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "null", "percentage": false, "pointradius": 0.5, "points": true, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": true, "targets": [ { "alias": "", "groupBy": [ { "params": [ "$__interval" ], "type": "time" }, { "params": [ "null" ], "type": "fill" } ], "orderByTime": "ASC", "policy": "default", "query": "SELECT metric as \"availBikes\", capacity FROM \"Citi\" WHERE id =~ /^$stationID$/ and $timeFilter ", "rawQuery": true, "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "mean" } ] ], "tags": [] } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Available Bikes for Station: $stationID", "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": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ] }, { "circleMaxSize": "8", "circleMinSize": "8", "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgb(37, 244, 1)" ], "datasource": "${DS_GPS}", "decimals": 0, "esMetric": "Count", "gridPos": { "h": 9, "w": 7, "x": 9, "y": 0 }, "hideEmpty": true, "hideZero": false, "id": 4, "initialZoom": "11", "links": [], "locationData": "table", "mapCenter": "custom", "mapCenterLatitude": "40.7575", "mapCenterLongitude": "-73.9867015", "maxDataPoints": 1, "showLegend": true, "stickyLabels": false, "tableLabel": "id", "targets": [ { "groupBy": [ { "params": [ "$__interval" ], "type": "time" }, { "params": [ "null" ], "type": "fill" } ], "orderByTime": "ASC", "policy": "default", "query": "SELECT last(metric) AS \"metric\", \"geohash\", \"id\" FROM \"Citi\" WHERE $timeFilter and id =~ /^$stationID$/ group by id", "rawQuery": true, "refId": "A", "resultFormat": "table", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "mean" } ] ], "tags": [] } ], "thresholds": "15,30", "title": "Citi Bike Station: $stationID", "type": "grafana-worldmap-panel", "unitPlural": "", "unitSingle": "", "valueName": "current" }, { "cacheTimeout": null, "colorBackground": false, "colorValue": true, "colors": [ "#d44a3a", "rgba(237, 129, 40, 0.89)", "#299c46" ], "datasource": "${DS_GPS}", "format": "none", "gauge": { "maxValue": 100, "minValue": 0, "show": false, "thresholdLabels": false, "thresholdMarkers": true }, "gridPos": { "h": 9, "w": 7, "x": 16, "y": 0 }, "id": 6, "interval": null, "links": [], "mappingType": 1, "mappingTypes": [ { "name": "value to text", "value": 1 }, { "name": "range to text", "value": 2 } ], "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, "postfix": "", "postfixFontSize": "50%", "prefix": "Available Bikes:", "prefixFontSize": "80%", "rangeMaps": [ { "from": "null", "text": "N/A", "to": "null" } ], "sparkline": { "fillColor": "rgba(31, 118, 189, 0.18)", "full": false, "lineColor": "rgb(31, 120, 193)", "show": false }, "tableColumn": "", "targets": [ { "alias": "availBikes", "groupBy": [ { "params": [ "$__interval" ], "type": "time" }, { "params": [ "null" ], "type": "fill" } ], "orderByTime": "ASC", "policy": "default", "query": "SELECT last(metric) as \"availBikes\" FROM \"Citi\" WHERE id =~ /^$stationID$/ and $timeFilter ", "rawQuery": true, "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "mean" } ] ], "tags": [] } ], "thresholds": "15,30", "title": "Current available bikes for station: $stationID", "type": "singlestat", "valueFontSize": "150%", "valueMaps": [], "valueName": "avg" }, { "circleMaxSize": "2", "circleMinSize": "2", "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgb(37, 244, 1)" ], "datasource": "${DS_GPS}", "decimals": 0, "esMetric": "Count", "gridPos": { "h": 15, "w": 23, "x": 0, "y": 9 }, "hideEmpty": true, "hideZero": false, "id": 7, "initialZoom": "11", "links": [], "locationData": "table", "mapCenter": "custom", "mapCenterLatitude": "40.7393736", "mapCenterLongitude": "-73.9867015", "maxDataPoints": 1, "showLegend": true, "stickyLabels": false, "tableLabel": "id", "targets": [ { "groupBy": [ { "params": [ "$__interval" ], "type": "time" }, { "params": [ "null" ], "type": "fill" } ], "orderByTime": "ASC", "policy": "default", "query": "SELECT last(metric) AS \"metric\", \"geohash\", \"id\" FROM \"Citi\" WHERE $timeFilter group by id", "rawQuery": true, "refId": "A", "resultFormat": "table", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "mean" } ] ], "tags": [] } ], "thresholds": "15,30", "title": "Citi Bike Stations in NYC", "type": "grafana-worldmap-panel", "unitPlural": "", "unitSingle": "", "valueName": "current" } ], "refresh": "5m", "schemaVersion": 16, "style": "dark", "tags": [], "templating": { "list": [ { "allValue": null, "current": {}, "datasource": "${DS_GPS}", "hide": 0, "includeAll": false, "label": null, "multi": false, "name": "stationID", "options": [], "query": "show tag values from Citi with key = \"id\" ", "refresh": 1, "regex": "", "sort": 1, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-30m", "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": "CitiBike", "uid": "kdJlOEGmk", "version": 3 }