1
0
Fork 0

Add histograms with daily and monthly income

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2021-02-07 17:35:19 +01:00
parent 87d41da2aa
commit e006223163
No known key found for this signature in database
GPG key ID: FF42D23B580C89F7

View file

@ -53,7 +53,7 @@
"gnetId": null,
"graphTooltip": 0,
"id": null,
"iteration": 1612541813289,
"iteration": 1612714194723,
"links": [],
"panels": [
{
@ -517,6 +517,544 @@
"title": "Unpaid balance (fiat)",
"type": "stat"
},
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_INFLUXDB}",
"description": "",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 6,
"x": 0,
"y": 9
},
"hiddenSeries": false,
"id": 60,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": false,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"alias": "income",
"groupBy": [
{
"params": [
"1d"
],
"type": "time"
}
],
"measurement": "flexpool_balance",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"result"
],
"type": "field"
},
{
"params": [],
"type": "spread"
},
{
"params": [
" / 1000000000000000000"
],
"type": "math"
}
]
],
"tags": [
{
"key": "miner",
"operator": "=~",
"value": "/^$miner$/"
}
]
}
],
"thresholds": [],
"timeFrom": "1M",
"timeRegions": [],
"timeShift": null,
"title": "Daily revenue",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:180",
"format": "ETH",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"$$hashKey": "object:181",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_INFLUXDB}",
"description": "",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 6,
"x": 6,
"y": 9
},
"hiddenSeries": false,
"id": 61,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": false,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"alias": "income ($currency)",
"groupBy": [
{
"params": [
"1d"
],
"type": "time"
}
],
"measurement": "flexpool_balance",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"result"
],
"type": "field"
},
{
"params": [],
"type": "spread"
},
{
"params": [
" / 1000000000000000000*$exchange_rate"
],
"type": "math"
}
]
],
"tags": [
{
"key": "miner",
"operator": "=~",
"value": "/^$miner$/"
}
]
}
],
"thresholds": [],
"timeFrom": "1M",
"timeRegions": [],
"timeShift": null,
"title": "Daily revenue (fiat)",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:180",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"$$hashKey": "object:181",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_INFLUXDB}",
"description": "",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 6,
"x": 12,
"y": 9
},
"hiddenSeries": false,
"id": 62,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": false,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"alias": "income",
"groupBy": [
{
"params": [
"31d"
],
"type": "time"
}
],
"measurement": "flexpool_balance",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"result"
],
"type": "field"
},
{
"params": [],
"type": "spread"
},
{
"params": [
" / 1000000000000000000"
],
"type": "math"
}
]
],
"tags": [
{
"key": "miner",
"operator": "=~",
"value": "/^$miner$/"
}
]
}
],
"thresholds": [],
"timeFrom": "1y",
"timeRegions": [],
"timeShift": null,
"title": "Monthly revenue",
"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",
"format": "ETH",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"$$hashKey": "object:181",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_INFLUXDB}",
"description": "",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 6,
"x": 18,
"y": 9
},
"hiddenSeries": false,
"id": 63,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": false,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"alias": "income ($currency)",
"groupBy": [
{
"params": [
"31d"
],
"type": "time"
}
],
"measurement": "flexpool_balance",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"result"
],
"type": "field"
},
{
"params": [],
"type": "spread"
},
{
"params": [
" / 1000000000000000000*$exchange_rate"
],
"type": "math"
}
]
],
"tags": [
{
"key": "miner",
"operator": "=~",
"value": "/^$miner$/"
}
]
}
],
"thresholds": [],
"timeFrom": "1y",
"timeRegions": [],
"timeShift": null,
"title": "Monthly revenue",
"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",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"$$hashKey": "object:181",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
@ -536,7 +1074,7 @@
"h": 8,
"w": 6,
"x": 0,
"y": 9
"y": 17
},
"hiddenSeries": false,
"id": 36,
@ -672,7 +1210,7 @@
"h": 8,
"w": 6,
"x": 6,
"y": 9
"y": 17
},
"hiddenSeries": false,
"id": 56,
@ -811,7 +1349,7 @@
"h": 8,
"w": 6,
"x": 12,
"y": 9
"y": 17
},
"hideTimeOverride": true,
"id": 38,
@ -905,7 +1443,7 @@
"h": 8,
"w": 6,
"x": 18,
"y": 9
"y": 17
},
"hideTimeOverride": true,
"id": 50,
@ -988,7 +1526,7 @@
"h": 8,
"w": 6,
"x": 0,
"y": 17
"y": 25
},
"hiddenSeries": false,
"id": 40,
@ -1125,7 +1663,7 @@
"h": 8,
"w": 6,
"x": 6,
"y": 17
"y": 25
},
"hiddenSeries": false,
"id": 58,
@ -1262,7 +1800,7 @@
"h": 8,
"w": 6,
"x": 12,
"y": 17
"y": 25
},
"hideTimeOverride": true,
"id": 42,
@ -1356,7 +1894,7 @@
"h": 8,
"w": 6,
"x": 18,
"y": 17
"y": 25
},
"hideTimeOverride": true,
"id": 52,
@ -1427,7 +1965,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 25
"y": 33
},
"id": 26,
"panels": [],
@ -1468,7 +2006,7 @@
"h": 8,
"w": 6,
"x": 0,
"y": 26
"y": 34
},
"hiddenSeries": false,
"id": 44,
@ -1604,7 +2142,7 @@
"h": 8,
"w": 6,
"x": 6,
"y": 26
"y": 34
},
"hiddenSeries": false,
"id": 46,
@ -1748,7 +2286,7 @@
"h": 8,
"w": 6,
"x": 12,
"y": 26
"y": 34
},
"hideTimeOverride": true,
"id": 18,
@ -1844,7 +2382,7 @@
"h": 8,
"w": 6,
"x": 18,
"y": 26
"y": 34
},
"hideTimeOverride": true,
"id": 20,
@ -1933,7 +2471,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 34
"y": 42
},
"hiddenSeries": false,
"id": 4,
@ -2118,7 +2656,7 @@
"h": 8,
"w": 6,
"x": 12,
"y": 34
"y": 42
},
"hideTimeOverride": true,
"id": 22,
@ -2214,7 +2752,7 @@
"h": 8,
"w": 6,
"x": 18,
"y": 34
"y": 42
},
"hideTimeOverride": true,
"id": 24,
@ -2284,7 +2822,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 42
"y": 50
},
"id": 14,
"panels": [],
@ -2311,7 +2849,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 43
"y": 51
},
"hiddenSeries": false,
"id": 6,
@ -2545,7 +3083,7 @@
"h": 8,
"w": 4,
"x": 12,
"y": 43
"y": 51
},
"hideTimeOverride": true,
"id": 8,
@ -2643,7 +3181,7 @@
"h": 8,
"w": 4,
"x": 16,
"y": 43
"y": 51
},
"hideTimeOverride": true,
"id": 10,
@ -2742,7 +3280,7 @@
"h": 8,
"w": 4,
"x": 20,
"y": 43
"y": 51
},
"hideTimeOverride": true,
"id": 12,
@ -2892,7 +3430,7 @@
]
},
"time": {
"from": "now-6h",
"from": "now-7d",
"to": "now"
},
"timepicker": {
@ -2911,5 +3449,5 @@
"timezone": "",
"title": "Flexpool overview",
"uid": "Q3JPASkgz",
"version": 4
"version": 5
}