diff --git a/grafana/flexpool-overview.json b/grafana/flexpool-overview.json index 4839510..e1afc99 100644 --- a/grafana/flexpool-overview.json +++ b/grafana/flexpool-overview.json @@ -59,10 +59,11 @@ "gnetId": null, "graphTooltip": 0, "id": null, - "iteration": 1616068614673, + "iteration": 1616224784979, "links": [], "panels": [ { + "collapsed": false, "datasource": "${DS_INFLUXDB}", "gridPos": { "h": 1, @@ -71,6 +72,7 @@ "y": 0 }, "id": 32, + "panels": [], "title": "Balance and revenue", "type": "row" }, @@ -221,7 +223,7 @@ } ], "thresholds": [], - "timeFrom": "1M", + "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Daily revenue", @@ -273,8 +275,7 @@ "description": "", "fieldConfig": { "defaults": { - "custom": {}, - "links": [] + "custom": {} }, "overrides": [] }, @@ -287,6 +288,141 @@ "y": 1 }, "hiddenSeries": false, + "id": 66, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": false + }, + "percentage": false, + "pluginVersion": "7.3.7", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "blocks", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(blocks_increase) FROM (select non_negative_difference(\"confirmed\") AS blocks_increase FROM \"flexpool_pool_block_count\" WHERE $timeFilter) GROUP BY time(1d);", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Daily blocks", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:258", + "decimals": null, + "format": "short", + "label": "blocks", + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "$$hashKey": "object:259", + "decimals": 0, + "format": "short", + "label": "", + "logBase": 1, + "max": null, + "min": "0", + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "${DS_INFLUXDB}", + "description": "", + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 9 + }, + "hiddenSeries": false, "id": 62, "legend": { "avg": false, @@ -411,7 +547,7 @@ } ], "thresholds": [], - "timeFrom": "1y", + "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "Monthly revenue", @@ -455,6 +591,139 @@ "alignLevel": null } }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "${DS_INFLUXDB}", + "description": "", + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 9 + }, + "hiddenSeries": false, + "id": 67, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.3.7", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "blocks", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT sum(blocks_increase) FROM (select non_negative_difference(\"confirmed\") AS blocks_increase FROM \"flexpool_pool_block_count\" WHERE $timeFilter) GROUP BY time(31d);", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Monthly blocks", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "min": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:180", + "decimals": null, + "format": "short", + "label": "blocks", + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "$$hashKey": "object:181", + "format": "short", + "label": "", + "logBase": 1, + "max": null, + "min": "0", + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, { "aliasColors": {}, "bars": false, @@ -474,7 +743,7 @@ "h": 8, "w": 12, "x": 0, - "y": 9 + "y": 17 }, "hiddenSeries": false, "id": 28, @@ -676,7 +945,7 @@ "h": 8, "w": 12, "x": 12, - "y": 9 + "y": 17 }, "hideTimeOverride": true, "id": 30, @@ -804,7 +1073,7 @@ "h": 8, "w": 12, "x": 0, - "y": 17 + "y": 25 }, "hiddenSeries": false, "id": 36, @@ -962,7 +1231,7 @@ "h": 8, "w": 12, "x": 12, - "y": 17 + "y": 25 }, "hideTimeOverride": true, "id": 38, @@ -1090,7 +1359,7 @@ "h": 8, "w": 6, "x": 0, - "y": 25 + "y": 33 }, "hiddenSeries": false, "id": 40, @@ -1294,7 +1563,7 @@ "h": 8, "w": 6, "x": 6, - "y": 25 + "y": 33 }, "hideTimeOverride": true, "id": 42, @@ -1448,6 +1717,10 @@ { "id": "decimals", "value": 2 + }, + { + "id": "custom.width", + "value": null } ] }, @@ -1469,11 +1742,12 @@ "h": 8, "w": 12, "x": 12, - "y": 25 + "y": 33 }, "id": 64, "options": { - "showHeader": true + "showHeader": true, + "sortBy": [] }, "pluginVersion": "7.3.7", "targets": [ @@ -1517,7 +1791,7 @@ "h": 1, "w": 24, "x": 0, - "y": 33 + "y": 41 }, "id": 26, "panels": [], @@ -1558,7 +1832,7 @@ "h": 8, "w": 12, "x": 0, - "y": 34 + "y": 42 }, "hiddenSeries": false, "id": 44, @@ -1788,7 +2062,7 @@ "h": 8, "w": 12, "x": 12, - "y": 34 + "y": 42 }, "hideTimeOverride": true, "id": 18, @@ -1950,7 +2224,7 @@ "h": 1, "w": 24, "x": 0, - "y": 42 + "y": 50 }, "id": 14, "panels": [], @@ -1977,7 +2251,7 @@ "h": 8, "w": 12, "x": 0, - "y": 43 + "y": 51 }, "hiddenSeries": false, "id": 6, @@ -2211,7 +2485,7 @@ "h": 8, "w": 4, "x": 12, - "y": 43 + "y": 51 }, "hideTimeOverride": true, "id": 8, @@ -2309,7 +2583,7 @@ "h": 8, "w": 4, "x": 16, - "y": 43 + "y": 51 }, "hideTimeOverride": true, "id": 10, @@ -2408,7 +2682,7 @@ "h": 8, "w": 4, "x": 20, - "y": 43 + "y": 51 }, "hideTimeOverride": true, "id": 12, @@ -2577,5 +2851,5 @@ "timezone": "", "title": "Flexpool overview", "uid": "Q3JPASkgz", - "version": 3 + "version": 5 } \ No newline at end of file