1
0
Fork 0

Add full procedure and make generic dashboards

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2021-02-02 17:56:15 +01:00
commit 0ab8e445f6
No known key found for this signature in database
GPG key ID: FF42D23B580C89F7
19 changed files with 390 additions and 154 deletions

View file

@ -1,4 +1,40 @@
{
"__inputs": [
{
"name": "DS_INFLUXDB",
"label": "InfluxDB",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
"pluginName": "InfluxDB"
}
],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "7.3.7"
},
{
"type": "panel",
"id": "graph",
"name": "Graph",
"version": ""
},
{
"type": "datasource",
"id": "influxdb",
"name": "InfluxDB",
"version": "1.0.0"
},
{
"type": "panel",
"id": "stat",
"name": "Stat",
"version": ""
}
],
"annotations": {
"list": [
{
@ -16,12 +52,12 @@
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": 12,
"iteration": 1612081989074,
"id": null,
"iteration": 1612282612782,
"links": [],
"panels": [
{
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"gridPos": {
"h": 1,
"w": 24,
@ -37,10 +73,11 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"fieldConfig": {
"defaults": {
"custom": {}
"custom": {},
"links": []
},
"overrides": []
},
@ -67,9 +104,10 @@
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -170,10 +208,11 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"fieldConfig": {
"defaults": {
"custom": {}
"custom": {},
"links": []
},
"overrides": []
},
@ -200,9 +239,10 @@
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -293,7 +333,7 @@
}
},
{
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"fieldConfig": {
"defaults": {
"custom": {},
@ -329,10 +369,12 @@
"calcs": [
"mean"
],
"fields": "",
"values": false
}
},
"textMode": "auto"
},
"pluginVersion": "7.0.0",
"pluginVersion": "7.3.7",
"targets": [
{
"alias": "balance",
@ -386,7 +428,7 @@
"type": "stat"
},
{
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"fieldConfig": {
"defaults": {
"custom": {},
@ -422,13 +464,15 @@
"calcs": [
"mean"
],
"fields": "",
"values": false
}
},
"textMode": "auto"
},
"pluginVersion": "7.0.0",
"pluginVersion": "7.3.7",
"targets": [
{
"alias": "fiat",
"alias": "balance",
"groupBy": [
{
"params": [
@ -476,10 +520,11 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"fieldConfig": {
"defaults": {
"custom": {}
"custom": {},
"links": []
},
"overrides": []
},
@ -506,9 +551,10 @@
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -609,10 +655,11 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"fieldConfig": {
"defaults": {
"custom": {}
"custom": {},
"links": []
},
"overrides": []
},
@ -639,9 +686,10 @@
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -732,7 +780,7 @@
}
},
{
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"fieldConfig": {
"defaults": {
"custom": {},
@ -772,10 +820,12 @@
"calcs": [
"mean"
],
"fields": "",
"values": false
}
},
"textMode": "auto"
},
"pluginVersion": "7.0.0",
"pluginVersion": "7.3.7",
"targets": [
{
"alias": "revenue",
@ -829,7 +879,7 @@
"type": "stat"
},
{
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"fieldConfig": {
"defaults": {
"custom": {},
@ -864,13 +914,15 @@
"calcs": [
"mean"
],
"fields": "",
"values": false
}
},
"textMode": "auto"
},
"pluginVersion": "7.0.0",
"pluginVersion": "7.3.7",
"targets": [
{
"alias": "fiat",
"alias": "revenue",
"groupBy": [
{
"params": [
@ -918,10 +970,11 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"fieldConfig": {
"defaults": {
"custom": {}
"custom": {},
"links": []
},
"overrides": []
},
@ -948,9 +1001,10 @@
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -1052,10 +1106,11 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"fieldConfig": {
"defaults": {
"custom": {}
"custom": {},
"links": []
},
"overrides": []
},
@ -1082,9 +1137,10 @@
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -1175,7 +1231,7 @@
}
},
{
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"fieldConfig": {
"defaults": {
"custom": {},
@ -1213,10 +1269,12 @@
"calcs": [
"mean"
],
"fields": "",
"values": false
}
},
"textMode": "auto"
},
"pluginVersion": "7.0.0",
"pluginVersion": "7.3.7",
"targets": [
{
"alias": "paid",
@ -1270,7 +1328,7 @@
"type": "stat"
},
{
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"fieldConfig": {
"defaults": {
"custom": {},
@ -1298,20 +1356,22 @@
"id": 52,
"options": {
"colorMode": "value",
"graphMode": "area",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
}
},
"textMode": "auto"
},
"pluginVersion": "7.0.0",
"pluginVersion": "7.3.7",
"targets": [
{
"alias": "fiat",
"alias": "paid",
"groupBy": [
{
"params": [
@ -1356,7 +1416,7 @@
},
{
"collapsed": false,
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"gridPos": {
"h": 1,
"w": 24,
@ -1373,11 +1433,12 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"description": "",
"fieldConfig": {
"defaults": {
"custom": {},
"links": [],
"mappings": [],
"thresholds": {
"mode": "absolute",
@ -1418,10 +1479,10 @@
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.0.0",
"pluginVersion": "7.3.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -1526,10 +1587,11 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"fieldConfig": {
"defaults": {
"custom": {}
"custom": {},
"links": []
},
"overrides": []
},
@ -1556,9 +1618,10 @@
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -1659,7 +1722,7 @@
}
},
{
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"fieldConfig": {
"defaults": {
"custom": {},
@ -1698,10 +1761,12 @@
"calcs": [
"mean"
],
"fields": "",
"values": false
}
},
"textMode": "auto"
},
"pluginVersion": "7.0.0",
"pluginVersion": "7.3.7",
"targets": [
{
"alias": "hashrate",
@ -1738,7 +1803,13 @@
}
]
],
"tags": []
"tags": [
{
"key": "miner",
"operator": "=~",
"value": "/^$miner$/"
}
]
}
],
"timeFrom": "5m",
@ -1747,7 +1818,7 @@
"type": "stat"
},
{
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"fieldConfig": {
"defaults": {
"custom": {},
@ -1786,12 +1857,15 @@
"calcs": [
"mean"
],
"fields": "",
"values": false
}
},
"textMode": "auto"
},
"pluginVersion": "7.0.0",
"pluginVersion": "7.3.7",
"targets": [
{
"alias": "hashrate",
"groupBy": [
{
"params": [
@ -1844,11 +1918,12 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"description": "",
"fieldConfig": {
"defaults": {
"custom": {}
"custom": {},
"links": []
},
"overrides": []
},
@ -1875,9 +1950,10 @@
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -2015,7 +2091,7 @@
}
},
{
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"fieldConfig": {
"defaults": {
"custom": {},
@ -2054,10 +2130,12 @@
"calcs": [
"mean"
],
"fields": "",
"values": false
}
},
"textMode": "auto"
},
"pluginVersion": "7.0.0",
"pluginVersion": "7.3.7",
"targets": [
{
"alias": "hashrate",
@ -2109,7 +2187,7 @@
"type": "stat"
},
{
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"fieldConfig": {
"defaults": {
"custom": {},
@ -2148,10 +2226,12 @@
"calcs": [
"mean"
],
"fields": "",
"values": false
}
},
"textMode": "auto"
},
"pluginVersion": "7.0.0",
"pluginVersion": "7.3.7",
"targets": [
{
"alias": "hashrate",
@ -2198,7 +2278,7 @@
},
{
"collapsed": false,
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"gridPos": {
"h": 1,
"w": 24,
@ -2215,11 +2295,12 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"description": "",
"fieldConfig": {
"defaults": {
"custom": {}
"custom": {},
"links": []
},
"overrides": []
},
@ -2246,9 +2327,10 @@
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -2436,7 +2518,7 @@
}
},
{
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"description": "",
"fieldConfig": {
"defaults": {
@ -2474,10 +2556,12 @@
"calcs": [
"mean"
],
"fields": "",
"values": false
}
},
"textMode": "auto"
},
"pluginVersion": "7.0.0",
"pluginVersion": "7.3.7",
"targets": [
{
"alias": "valid",
@ -2529,7 +2613,7 @@
"type": "stat"
},
{
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"fieldConfig": {
"defaults": {
"custom": {},
@ -2570,10 +2654,12 @@
"calcs": [
"mean"
],
"fields": "",
"values": false
}
},
"textMode": "auto"
},
"pluginVersion": "7.0.0",
"pluginVersion": "7.3.7",
"targets": [
{
"alias": "stale",
@ -2625,7 +2711,7 @@
"type": "stat"
},
{
"datasource": null,
"datasource": "${DS_INFLUXDB}",
"description": "",
"fieldConfig": {
"defaults": {
@ -2667,10 +2753,12 @@
"calcs": [
"mean"
],
"fields": "",
"values": false
}
},
"textMode": "auto"
},
"pluginVersion": "7.0.0",
"pluginVersion": "7.3.7",
"targets": [
{
"alias": "invalid",
@ -2722,7 +2810,7 @@
"type": "stat"
}
],
"schemaVersion": 25,
"schemaVersion": 26,
"style": "dark",
"tags": [
"flexpool",
@ -2732,27 +2820,18 @@
"list": [
{
"allValue": null,
"current": {
"selected": false,
"text": "MINER_ADDRESS",
"value": "MINER_ADDRESS"
},
"datasource": "InfluxDB",
"definition": "SHOW TAG VALUES WITH KEY = \"miner\"",
"current": {},
"datasource": "${DS_INFLUXDB}",
"definition": "",
"error": null,
"hide": 0,
"includeAll": false,
"label": null,
"multi": false,
"name": "miner",
"options": [
{
"selected": true,
"text": "MINER_ADDRESS",
"value": "MINER_ADDRESS"
}
],
"options": [],
"query": "SHOW TAG VALUES WITH KEY = \"miner\"",
"refresh": 0,
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
@ -2764,13 +2843,10 @@
},
{
"allValue": null,
"current": {
"selected": false,
"text": "EUR",
"value": "EUR"
},
"datasource": "InfluxDB",
"current": {},
"datasource": "${DS_INFLUXDB}",
"definition": "SHOW TAG VALUES FROM currencies WITH KEY = \"to\"",
"error": null,
"hide": 0,
"includeAll": false,
"label": null,
@ -2790,13 +2866,10 @@
},
{
"allValue": null,
"current": {
"selected": false,
"text": "1110.29",
"value": "1110.29"
},
"datasource": "InfluxDB",
"current": {},
"datasource": "${DS_INFLUXDB}",
"definition": "select value from currencies where \"to\" =~ /^$currency$/ order by desc limit 1",
"error": null,
"hide": 2,
"includeAll": false,
"label": null,
@ -2836,5 +2909,5 @@
"timezone": "",
"title": "Flexpool overview",
"uid": "Q3JPASkgz",
"version": 34
}
"version": 5
}