1
0
Fork 0

Add Flexpool blocks and remove fixed time windows

- Remove fixed time ("last 1 month", "last 1 year") from daily and monthly revenue
  dashboards.
- Add daily and monthly blocks counters next to revenue

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2021-03-20 08:30:32 +01:00
parent e790147476
commit a49ae763b1
No known key found for this signature in database
GPG key ID: FF42D23B580C89F7

View file

@ -59,10 +59,11 @@
"gnetId": null, "gnetId": null,
"graphTooltip": 0, "graphTooltip": 0,
"id": null, "id": null,
"iteration": 1616068614673, "iteration": 1616224784979,
"links": [], "links": [],
"panels": [ "panels": [
{ {
"collapsed": false,
"datasource": "${DS_INFLUXDB}", "datasource": "${DS_INFLUXDB}",
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@ -71,6 +72,7 @@
"y": 0 "y": 0
}, },
"id": 32, "id": 32,
"panels": [],
"title": "Balance and revenue", "title": "Balance and revenue",
"type": "row" "type": "row"
}, },
@ -221,7 +223,7 @@
} }
], ],
"thresholds": [], "thresholds": [],
"timeFrom": "1M", "timeFrom": null,
"timeRegions": [], "timeRegions": [],
"timeShift": null, "timeShift": null,
"title": "Daily revenue", "title": "Daily revenue",
@ -273,8 +275,7 @@
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"custom": {}, "custom": {}
"links": []
}, },
"overrides": [] "overrides": []
}, },
@ -287,6 +288,141 @@
"y": 1 "y": 1
}, },
"hiddenSeries": false, "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, "id": 62,
"legend": { "legend": {
"avg": false, "avg": false,
@ -411,7 +547,7 @@
} }
], ],
"thresholds": [], "thresholds": [],
"timeFrom": "1y", "timeFrom": null,
"timeRegions": [], "timeRegions": [],
"timeShift": null, "timeShift": null,
"title": "Monthly revenue", "title": "Monthly revenue",
@ -455,6 +591,139 @@
"alignLevel": null "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": {}, "aliasColors": {},
"bars": false, "bars": false,
@ -474,7 +743,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 9 "y": 17
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 28, "id": 28,
@ -676,7 +945,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 9 "y": 17
}, },
"hideTimeOverride": true, "hideTimeOverride": true,
"id": 30, "id": 30,
@ -804,7 +1073,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 17 "y": 25
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 36, "id": 36,
@ -962,7 +1231,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 17 "y": 25
}, },
"hideTimeOverride": true, "hideTimeOverride": true,
"id": 38, "id": 38,
@ -1090,7 +1359,7 @@
"h": 8, "h": 8,
"w": 6, "w": 6,
"x": 0, "x": 0,
"y": 25 "y": 33
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 40, "id": 40,
@ -1294,7 +1563,7 @@
"h": 8, "h": 8,
"w": 6, "w": 6,
"x": 6, "x": 6,
"y": 25 "y": 33
}, },
"hideTimeOverride": true, "hideTimeOverride": true,
"id": 42, "id": 42,
@ -1448,6 +1717,10 @@
{ {
"id": "decimals", "id": "decimals",
"value": 2 "value": 2
},
{
"id": "custom.width",
"value": null
} }
] ]
}, },
@ -1469,11 +1742,12 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 25 "y": 33
}, },
"id": 64, "id": 64,
"options": { "options": {
"showHeader": true "showHeader": true,
"sortBy": []
}, },
"pluginVersion": "7.3.7", "pluginVersion": "7.3.7",
"targets": [ "targets": [
@ -1517,7 +1791,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 33 "y": 41
}, },
"id": 26, "id": 26,
"panels": [], "panels": [],
@ -1558,7 +1832,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 34 "y": 42
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 44, "id": 44,
@ -1788,7 +2062,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 34 "y": 42
}, },
"hideTimeOverride": true, "hideTimeOverride": true,
"id": 18, "id": 18,
@ -1950,7 +2224,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 42 "y": 50
}, },
"id": 14, "id": 14,
"panels": [], "panels": [],
@ -1977,7 +2251,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 43 "y": 51
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 6, "id": 6,
@ -2211,7 +2485,7 @@
"h": 8, "h": 8,
"w": 4, "w": 4,
"x": 12, "x": 12,
"y": 43 "y": 51
}, },
"hideTimeOverride": true, "hideTimeOverride": true,
"id": 8, "id": 8,
@ -2309,7 +2583,7 @@
"h": 8, "h": 8,
"w": 4, "w": 4,
"x": 16, "x": 16,
"y": 43 "y": 51
}, },
"hideTimeOverride": true, "hideTimeOverride": true,
"id": 10, "id": 10,
@ -2408,7 +2682,7 @@
"h": 8, "h": 8,
"w": 4, "w": 4,
"x": 20, "x": 20,
"y": 43 "y": 51
}, },
"hideTimeOverride": true, "hideTimeOverride": true,
"id": 12, "id": 12,
@ -2577,5 +2851,5 @@
"timezone": "", "timezone": "",
"title": "Flexpool overview", "title": "Flexpool overview",
"uid": "Q3JPASkgz", "uid": "Q3JPASkgz",
"version": 3 "version": 5
} }