[grafana] Assert month = 30 days
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
64ff7eb715
commit
b6f4045197
1 changed files with 8 additions and 8 deletions
|
@ -461,7 +461,7 @@
|
||||||
"groupBy": [
|
"groupBy": [
|
||||||
{
|
{
|
||||||
"params": [
|
"params": [
|
||||||
"31d"
|
"30d"
|
||||||
],
|
],
|
||||||
"type": "time"
|
"type": "time"
|
||||||
}
|
}
|
||||||
|
@ -469,7 +469,7 @@
|
||||||
"measurement": "flexpool_miner_balance",
|
"measurement": "flexpool_miner_balance",
|
||||||
"orderByTime": "ASC",
|
"orderByTime": "ASC",
|
||||||
"policy": "default",
|
"policy": "default",
|
||||||
"query": "SELECT sum(balance_increase)/1000000000000000000 FROM (select non_negative_difference(\"result\") AS balance_increase FROM \"flexpool_miner_balance\" WHERE \"miner\" =~ /^$miner$/ AND $timeFilter) GROUP BY time(31d) TZ('$timezone');",
|
"query": "SELECT sum(balance_increase)/1000000000000000000 FROM (select non_negative_difference(\"result\") AS balance_increase FROM \"flexpool_miner_balance\" WHERE \"miner\" =~ /^$miner$/ AND $timeFilter) GROUP BY time(30d) TZ('$timezone');",
|
||||||
"rawQuery": true,
|
"rawQuery": true,
|
||||||
"refId": "A",
|
"refId": "A",
|
||||||
"resultFormat": "time_series",
|
"resultFormat": "time_series",
|
||||||
|
@ -487,7 +487,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"params": [
|
"params": [
|
||||||
"31d"
|
"30d"
|
||||||
],
|
],
|
||||||
"type": "non_negative_derivative"
|
"type": "non_negative_derivative"
|
||||||
},
|
},
|
||||||
|
@ -525,7 +525,7 @@
|
||||||
],
|
],
|
||||||
"orderByTime": "ASC",
|
"orderByTime": "ASC",
|
||||||
"policy": "default",
|
"policy": "default",
|
||||||
"query": "SELECT sum(balance_increase)/1000000000000000000*$exchange_rate FROM (select non_negative_difference(\"result\") AS balance_increase FROM \"flexpool_miner_balance\" WHERE \"miner\" =~ /^$miner$/ AND $timeFilter) GROUP BY time(31d) TZ('$timezone');",
|
"query": "SELECT sum(balance_increase)/1000000000000000000*$exchange_rate FROM (select non_negative_difference(\"result\") AS balance_increase FROM \"flexpool_miner_balance\" WHERE \"miner\" =~ /^$miner$/ AND $timeFilter) GROUP BY time(30d) TZ('$timezone');",
|
||||||
"rawQuery": true,
|
"rawQuery": true,
|
||||||
"refId": "B",
|
"refId": "B",
|
||||||
"resultFormat": "time_series",
|
"resultFormat": "time_series",
|
||||||
|
@ -658,7 +658,7 @@
|
||||||
],
|
],
|
||||||
"orderByTime": "ASC",
|
"orderByTime": "ASC",
|
||||||
"policy": "default",
|
"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) TZ('$timezone');",
|
"query": "SELECT sum(blocks_increase) FROM (select non_negative_difference(\"confirmed\") AS blocks_increase FROM \"flexpool_pool_block_count\" WHERE $timeFilter) GROUP BY time(30d) TZ('$timezone');",
|
||||||
"rawQuery": true,
|
"rawQuery": true,
|
||||||
"refId": "A",
|
"refId": "A",
|
||||||
"resultFormat": "time_series",
|
"resultFormat": "time_series",
|
||||||
|
@ -1520,7 +1520,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"params": [
|
"params": [
|
||||||
"/1000000000000000000*31"
|
"/1000000000000000000*30"
|
||||||
],
|
],
|
||||||
"type": "math"
|
"type": "math"
|
||||||
}
|
}
|
||||||
|
@ -1569,7 +1569,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"params": [
|
"params": [
|
||||||
"/1000000000000000000*$exchange_rate*31"
|
"/1000000000000000000*$exchange_rate*30"
|
||||||
],
|
],
|
||||||
"type": "math"
|
"type": "math"
|
||||||
}
|
}
|
||||||
|
@ -3440,4 +3440,4 @@
|
||||||
"title": "Flexpool miners",
|
"title": "Flexpool miners",
|
||||||
"uid": "Q3JPASkgz",
|
"uid": "Q3JPASkgz",
|
||||||
"version": 4
|
"version": 4
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue