1
0
Fork 0

[grafana] Group daily, weekly and monthly revenues

Grafana displays single statistics by grouping 3 values together. If we group
currency and fiat currency (2 values) together, the output is broken. This
commit groups all crypto currency (daily, weekly and monthly) on a single row,
then fiat currencies on a second row.

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2021-03-30 08:08:10 +02:00
parent 562e3e1a47
commit de5e38ae94
No known key found for this signature in database
GPG key ID: FF42D23B580C89F7

View file

@ -59,7 +59,7 @@
"gnetId": null,
"graphTooltip": 0,
"id": null,
"iteration": 1617027305657,
"iteration": 1617084393646,
"links": [],
"panels": [
{
@ -1375,6 +1375,104 @@
}
]
},
{
"alias": "weekly",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "flexpool_miner_daily_revenue_estimation",
"orderByTime": "ASC",
"policy": "default",
"refId": "C",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"result"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"/1000000000000000000*7"
],
"type": "math"
}
]
],
"tags": [
{
"key": "miner",
"operator": "=~",
"value": "/^$miner$/"
}
]
},
{
"alias": "monthly",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "flexpool_miner_daily_revenue_estimation",
"orderByTime": "ASC",
"policy": "default",
"refId": "E",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"result"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"/1000000000000000000*30"
],
"type": "math"
}
]
],
"tags": [
{
"key": "miner",
"operator": "=~",
"value": "/^$miner$/"
}
]
},
{
"alias": "daily (fiat)",
"groupBy": [
@ -1426,55 +1524,6 @@
}
]
},
{
"alias": "weekly",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "flexpool_miner_daily_revenue_estimation",
"orderByTime": "ASC",
"policy": "default",
"refId": "C",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"result"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"/1000000000000000000*7"
],
"type": "math"
}
]
],
"tags": [
{
"key": "miner",
"operator": "=~",
"value": "/^$miner$/"
}
]
},
{
"alias": "weekly (fiat)",
"groupBy": [
@ -1524,55 +1573,6 @@
}
]
},
{
"alias": "monthly",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "flexpool_miner_daily_revenue_estimation",
"orderByTime": "ASC",
"policy": "default",
"refId": "E",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"result"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"/1000000000000000000*30"
],
"type": "math"
}
]
],
"tags": [
{
"key": "miner",
"operator": "=~",
"value": "/^$miner$/"
}
]
},
{
"alias": "monthly (fiat)",
"groupBy": [
@ -3269,5 +3269,5 @@
"timezone": "utc",
"title": "Flexpool miners",
"uid": "Q3JPASkgz",
"version": 2
"version": 3
}