Julien Riou
51374e9a92
- Update Telegraf to 1.19.2 - Use Flexpool API v2 - Update Flexpool miner, pool and worker dashboards accordingly - Add COIN environment variable for Telegraf ("eth" or "xch" supported) - Add coin variable in Grafana dashboards BREAKING CHANGE: measurement names change between API v1 and v2 so the Grafana dashboards must be updated accordingly to use new names. Values in the past will not be shown by the updated dashboards. Signed-off-by: Julien Riou <julien@riou.xyz>
1458 lines
No EOL
33 KiB
JSON
1458 lines
No EOL
33 KiB
JSON
{
|
|
"__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": [
|
|
{
|
|
"builtIn": 1,
|
|
"datasource": "-- Grafana --",
|
|
"enable": true,
|
|
"hide": true,
|
|
"iconColor": "rgba(0, 211, 255, 1)",
|
|
"name": "Annotations & Alerts",
|
|
"type": "dashboard"
|
|
}
|
|
]
|
|
},
|
|
"description": "Workers statistics",
|
|
"editable": true,
|
|
"gnetId": null,
|
|
"graphTooltip": 0,
|
|
"id": null,
|
|
"iteration": 1629269888685,
|
|
"links": [],
|
|
"panels": [
|
|
{
|
|
"collapsed": false,
|
|
"datasource": "${DS_INFLUXDB}",
|
|
"gridPos": {
|
|
"h": 1,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"id": 26,
|
|
"panels": [],
|
|
"title": "Hashrates",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"aliasColors": {},
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "${DS_INFLUXDB}",
|
|
"description": "",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"custom": {},
|
|
"links": []
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {
|
|
"id": "byRegexp",
|
|
"options": "/XCH/"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "unit",
|
|
"value": "bytes"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byRegexp",
|
|
"options": "/ETH/"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "unit",
|
|
"value": "Hs"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 12,
|
|
"x": 0,
|
|
"y": 1
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 2,
|
|
"legend": {
|
|
"avg": false,
|
|
"current": false,
|
|
"max": false,
|
|
"min": false,
|
|
"show": true,
|
|
"total": false,
|
|
"values": false
|
|
},
|
|
"lines": true,
|
|
"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": "current effective (XCH)",
|
|
"groupBy": [
|
|
{
|
|
"params": [
|
|
"$__interval"
|
|
],
|
|
"type": "time"
|
|
},
|
|
{
|
|
"params": [
|
|
"null"
|
|
],
|
|
"type": "fill"
|
|
}
|
|
],
|
|
"measurement": "flexpool_miner_workers",
|
|
"orderByTime": "ASC",
|
|
"policy": "default",
|
|
"refId": "A",
|
|
"resultFormat": "time_series",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"currentEffectiveHashrate"
|
|
],
|
|
"type": "field"
|
|
},
|
|
{
|
|
"params": [],
|
|
"type": "mean"
|
|
}
|
|
]
|
|
],
|
|
"tags": [
|
|
{
|
|
"key": "coin",
|
|
"operator": "=~",
|
|
"value": "/^$coin$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "miner",
|
|
"operator": "=~",
|
|
"value": "/^$miner$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "name",
|
|
"operator": "=~",
|
|
"value": "/^$worker$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "coin",
|
|
"operator": "=",
|
|
"value": "xch"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"alias": "average effective (XCH)",
|
|
"groupBy": [
|
|
{
|
|
"params": [
|
|
"$__interval"
|
|
],
|
|
"type": "time"
|
|
},
|
|
{
|
|
"params": [
|
|
"null"
|
|
],
|
|
"type": "fill"
|
|
}
|
|
],
|
|
"measurement": "flexpool_miner_workers",
|
|
"orderByTime": "ASC",
|
|
"policy": "default",
|
|
"refId": "B",
|
|
"resultFormat": "time_series",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"averageEffectiveHashrate"
|
|
],
|
|
"type": "field"
|
|
},
|
|
{
|
|
"params": [],
|
|
"type": "mean"
|
|
}
|
|
]
|
|
],
|
|
"tags": [
|
|
{
|
|
"key": "coin",
|
|
"operator": "=~",
|
|
"value": "/^$coin$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "miner",
|
|
"operator": "=~",
|
|
"value": "/^$miner$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "name",
|
|
"operator": "=~",
|
|
"value": "/^$worker$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "coin",
|
|
"operator": "=",
|
|
"value": "xch"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"alias": "current effective (ETH)",
|
|
"groupBy": [
|
|
{
|
|
"params": [
|
|
"$__interval"
|
|
],
|
|
"type": "time"
|
|
},
|
|
{
|
|
"params": [
|
|
"null"
|
|
],
|
|
"type": "fill"
|
|
}
|
|
],
|
|
"measurement": "flexpool_miner_workers",
|
|
"orderByTime": "ASC",
|
|
"policy": "default",
|
|
"refId": "C",
|
|
"resultFormat": "time_series",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"currentEffectiveHashrate"
|
|
],
|
|
"type": "field"
|
|
},
|
|
{
|
|
"params": [],
|
|
"type": "mean"
|
|
}
|
|
]
|
|
],
|
|
"tags": [
|
|
{
|
|
"key": "coin",
|
|
"operator": "=~",
|
|
"value": "/^$coin$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "miner",
|
|
"operator": "=~",
|
|
"value": "/^$miner$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "name",
|
|
"operator": "=~",
|
|
"value": "/^$worker$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "coin",
|
|
"operator": "=",
|
|
"value": "eth"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"alias": "average effective (ETH)",
|
|
"groupBy": [
|
|
{
|
|
"params": [
|
|
"$__interval"
|
|
],
|
|
"type": "time"
|
|
},
|
|
{
|
|
"params": [
|
|
"null"
|
|
],
|
|
"type": "fill"
|
|
}
|
|
],
|
|
"measurement": "flexpool_miner_workers",
|
|
"orderByTime": "ASC",
|
|
"policy": "default",
|
|
"refId": "D",
|
|
"resultFormat": "time_series",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"averageEffectiveHashrate"
|
|
],
|
|
"type": "field"
|
|
},
|
|
{
|
|
"params": [],
|
|
"type": "mean"
|
|
}
|
|
]
|
|
],
|
|
"tags": [
|
|
{
|
|
"key": "coin",
|
|
"operator": "=~",
|
|
"value": "/^$coin$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "miner",
|
|
"operator": "=~",
|
|
"value": "/^$miner$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "name",
|
|
"operator": "=~",
|
|
"value": "/^$worker$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "coin",
|
|
"operator": "=",
|
|
"value": "eth"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"thresholds": [],
|
|
"timeFrom": null,
|
|
"timeRegions": [],
|
|
"timeShift": null,
|
|
"title": "Current hashrates",
|
|
"tooltip": {
|
|
"shared": true,
|
|
"sort": 0,
|
|
"value_type": "individual"
|
|
},
|
|
"type": "graph",
|
|
"xaxis": {
|
|
"buckets": null,
|
|
"mode": "time",
|
|
"name": null,
|
|
"show": true,
|
|
"values": []
|
|
},
|
|
"yaxes": [
|
|
{
|
|
"$$hashKey": "object:7053",
|
|
"format": "Hs",
|
|
"label": null,
|
|
"logBase": 1,
|
|
"max": null,
|
|
"min": "0",
|
|
"show": true
|
|
},
|
|
{
|
|
"$$hashKey": "object:7054",
|
|
"format": "Hs",
|
|
"label": null,
|
|
"logBase": 1,
|
|
"max": null,
|
|
"min": null,
|
|
"show": true
|
|
}
|
|
],
|
|
"yaxis": {
|
|
"align": false,
|
|
"alignLevel": null
|
|
}
|
|
},
|
|
{
|
|
"datasource": "${DS_INFLUXDB}",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"custom": {},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "red",
|
|
"value": null
|
|
},
|
|
{
|
|
"color": "green",
|
|
"value": 1
|
|
}
|
|
]
|
|
},
|
|
"unit": "short"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {
|
|
"id": "byRegexp",
|
|
"options": "/XCH/"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "unit",
|
|
"value": "bytes"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byRegexp",
|
|
"options": "/ETH/"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "unit",
|
|
"value": "Hs"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 6,
|
|
"x": 12,
|
|
"y": 1
|
|
},
|
|
"id": 18,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "none",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": [
|
|
"mean"
|
|
],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto"
|
|
},
|
|
"pluginVersion": "7.3.7",
|
|
"targets": [
|
|
{
|
|
"alias": "hashrate (XCH)",
|
|
"groupBy": [],
|
|
"measurement": "flexpool_miner_workers",
|
|
"orderByTime": "ASC",
|
|
"policy": "default",
|
|
"refId": "A",
|
|
"resultFormat": "time_series",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"currentEffectiveHashrate"
|
|
],
|
|
"type": "field"
|
|
},
|
|
{
|
|
"params": [],
|
|
"type": "last"
|
|
}
|
|
]
|
|
],
|
|
"tags": [
|
|
{
|
|
"key": "miner",
|
|
"operator": "=~",
|
|
"value": "/^$miner$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "name",
|
|
"operator": "=~",
|
|
"value": "/^$worker$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "coin",
|
|
"operator": "=~",
|
|
"value": "/^$coin$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "coin",
|
|
"operator": "=",
|
|
"value": "xch"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"alias": "hashrate (ETH)",
|
|
"groupBy": [],
|
|
"measurement": "flexpool_miner_workers",
|
|
"orderByTime": "ASC",
|
|
"policy": "default",
|
|
"refId": "B",
|
|
"resultFormat": "time_series",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"currentEffectiveHashrate"
|
|
],
|
|
"type": "field"
|
|
},
|
|
{
|
|
"params": [],
|
|
"type": "last"
|
|
}
|
|
]
|
|
],
|
|
"tags": [
|
|
{
|
|
"key": "miner",
|
|
"operator": "=~",
|
|
"value": "/^$miner$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "name",
|
|
"operator": "=~",
|
|
"value": "/^$worker$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "coin",
|
|
"operator": "=~",
|
|
"value": "/^$coin$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "coin",
|
|
"operator": "=",
|
|
"value": "eth"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"timeFrom": null,
|
|
"timeShift": null,
|
|
"title": "Current effective hashrate",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": "${DS_INFLUXDB}",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"custom": {},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "red",
|
|
"value": null
|
|
},
|
|
{
|
|
"color": "green",
|
|
"value": 1
|
|
}
|
|
]
|
|
},
|
|
"unit": "short"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {
|
|
"id": "byRegexp",
|
|
"options": "/XCH/"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "unit",
|
|
"value": "bytes"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byRegexp",
|
|
"options": "/ETH/"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "unit",
|
|
"value": "Hs"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 6,
|
|
"x": 18,
|
|
"y": 1
|
|
},
|
|
"id": 20,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "none",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": [
|
|
"mean"
|
|
],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto"
|
|
},
|
|
"pluginVersion": "7.3.7",
|
|
"targets": [
|
|
{
|
|
"alias": "hashrate (XCH)",
|
|
"groupBy": [],
|
|
"measurement": "flexpool_miner_workers",
|
|
"orderByTime": "ASC",
|
|
"policy": "default",
|
|
"query": "SELECT last(\"reported_hashrate\") FROM \"flexpool_miner_workers\" WHERE (\"miner\" =~ /^$miner$/ AND \"name\" =~ /^$worker$/) AND $timeFilter",
|
|
"rawQuery": false,
|
|
"refId": "A",
|
|
"resultFormat": "time_series",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"reportedHashrate"
|
|
],
|
|
"type": "field"
|
|
},
|
|
{
|
|
"params": [],
|
|
"type": "last"
|
|
}
|
|
]
|
|
],
|
|
"tags": [
|
|
{
|
|
"key": "miner",
|
|
"operator": "=~",
|
|
"value": "/^$miner$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "name",
|
|
"operator": "=~",
|
|
"value": "/^$worker$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "coin",
|
|
"operator": "=~",
|
|
"value": "/^$coin$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "coin",
|
|
"operator": "=",
|
|
"value": "xch"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"alias": "hashrate (ETH)",
|
|
"groupBy": [],
|
|
"measurement": "flexpool_miner_workers",
|
|
"orderByTime": "ASC",
|
|
"policy": "default",
|
|
"query": "SELECT last(\"reported_hashrate\") FROM \"flexpool_miner_workers\" WHERE (\"miner\" =~ /^$miner$/ AND \"name\" =~ /^$worker$/) AND $timeFilter",
|
|
"rawQuery": false,
|
|
"refId": "B",
|
|
"resultFormat": "time_series",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"reportedHashrate"
|
|
],
|
|
"type": "field"
|
|
},
|
|
{
|
|
"params": [],
|
|
"type": "last"
|
|
}
|
|
]
|
|
],
|
|
"tags": [
|
|
{
|
|
"key": "miner",
|
|
"operator": "=~",
|
|
"value": "/^$miner$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "name",
|
|
"operator": "=~",
|
|
"value": "/^$worker$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "coin",
|
|
"operator": "=~",
|
|
"value": "/^$coin$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "coin",
|
|
"operator": "=",
|
|
"value": "eth"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"timeFrom": null,
|
|
"timeShift": null,
|
|
"title": "Current reported hashrate",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"collapsed": false,
|
|
"datasource": "${DS_INFLUXDB}",
|
|
"gridPos": {
|
|
"h": 1,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 9
|
|
},
|
|
"id": 14,
|
|
"panels": [],
|
|
"title": "Shares",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"aliasColors": {},
|
|
"bars": false,
|
|
"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": 10
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 6,
|
|
"legend": {
|
|
"avg": false,
|
|
"current": false,
|
|
"max": false,
|
|
"min": false,
|
|
"show": true,
|
|
"total": false,
|
|
"values": false
|
|
},
|
|
"lines": true,
|
|
"linewidth": 1,
|
|
"nullPointMode": "null",
|
|
"options": {
|
|
"alertThreshold": true
|
|
},
|
|
"percentage": false,
|
|
"pluginVersion": "7.3.7",
|
|
"pointradius": 2,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"seriesOverrides": [
|
|
{
|
|
"$$hashKey": "object:8033",
|
|
"alias": "/valid/",
|
|
"color": "#56A64B"
|
|
},
|
|
{
|
|
"$$hashKey": "object:8034",
|
|
"alias": "/stale/",
|
|
"color": "#F2CC0C"
|
|
},
|
|
{
|
|
"$$hashKey": "object:8035",
|
|
"alias": "/invalid/",
|
|
"color": "#E02F44"
|
|
}
|
|
],
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"alias": "valid",
|
|
"groupBy": [
|
|
{
|
|
"params": [
|
|
"$__interval"
|
|
],
|
|
"type": "time"
|
|
},
|
|
{
|
|
"params": [
|
|
"null"
|
|
],
|
|
"type": "fill"
|
|
}
|
|
],
|
|
"measurement": "flexpool_miner_workers",
|
|
"orderByTime": "ASC",
|
|
"policy": "default",
|
|
"refId": "A",
|
|
"resultFormat": "time_series",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"validShares"
|
|
],
|
|
"type": "field"
|
|
},
|
|
{
|
|
"params": [],
|
|
"type": "mean"
|
|
}
|
|
]
|
|
],
|
|
"tags": [
|
|
{
|
|
"key": "miner",
|
|
"operator": "=~",
|
|
"value": "/^$miner$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "name",
|
|
"operator": "=~",
|
|
"value": "/^$worker$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "coin",
|
|
"operator": "=~",
|
|
"value": "/^$coin$/"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"alias": "stale",
|
|
"groupBy": [
|
|
{
|
|
"params": [
|
|
"$__interval"
|
|
],
|
|
"type": "time"
|
|
},
|
|
{
|
|
"params": [
|
|
"null"
|
|
],
|
|
"type": "fill"
|
|
}
|
|
],
|
|
"measurement": "flexpool_miner_workers",
|
|
"orderByTime": "ASC",
|
|
"policy": "default",
|
|
"refId": "B",
|
|
"resultFormat": "time_series",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"staleShares"
|
|
],
|
|
"type": "field"
|
|
},
|
|
{
|
|
"params": [],
|
|
"type": "mean"
|
|
}
|
|
]
|
|
],
|
|
"tags": [
|
|
{
|
|
"key": "miner",
|
|
"operator": "=~",
|
|
"value": "/^$miner$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "name",
|
|
"operator": "=~",
|
|
"value": "/^$worker$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "coin",
|
|
"operator": "=~",
|
|
"value": "/^$coin$/"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"alias": "invalid",
|
|
"groupBy": [
|
|
{
|
|
"params": [
|
|
"$__interval"
|
|
],
|
|
"type": "time"
|
|
},
|
|
{
|
|
"params": [
|
|
"null"
|
|
],
|
|
"type": "fill"
|
|
}
|
|
],
|
|
"measurement": "flexpool_miner_workers",
|
|
"orderByTime": "ASC",
|
|
"policy": "default",
|
|
"refId": "C",
|
|
"resultFormat": "time_series",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"invalid_shares"
|
|
],
|
|
"type": "field"
|
|
},
|
|
{
|
|
"params": [],
|
|
"type": "mean"
|
|
}
|
|
]
|
|
],
|
|
"tags": [
|
|
{
|
|
"key": "miner",
|
|
"operator": "=~",
|
|
"value": "/^$miner$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "name",
|
|
"operator": "=~",
|
|
"value": "/^$worker$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "coin",
|
|
"operator": "=~",
|
|
"value": "/^$coin$/"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"thresholds": [],
|
|
"timeFrom": null,
|
|
"timeRegions": [],
|
|
"timeShift": null,
|
|
"title": "Shares",
|
|
"tooltip": {
|
|
"shared": true,
|
|
"sort": 0,
|
|
"value_type": "individual"
|
|
},
|
|
"type": "graph",
|
|
"xaxis": {
|
|
"buckets": null,
|
|
"mode": "time",
|
|
"name": null,
|
|
"show": true,
|
|
"values": []
|
|
},
|
|
"yaxes": [
|
|
{
|
|
"$$hashKey": "object:8054",
|
|
"format": "short",
|
|
"label": null,
|
|
"logBase": 1,
|
|
"max": null,
|
|
"min": null,
|
|
"show": true
|
|
},
|
|
{
|
|
"$$hashKey": "object:8055",
|
|
"format": "short",
|
|
"label": null,
|
|
"logBase": 1,
|
|
"max": null,
|
|
"min": null,
|
|
"show": true
|
|
}
|
|
],
|
|
"yaxis": {
|
|
"align": false,
|
|
"alignLevel": null
|
|
}
|
|
},
|
|
{
|
|
"datasource": "${DS_INFLUXDB}",
|
|
"description": "",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"custom": {},
|
|
"decimals": 0,
|
|
"mappings": [],
|
|
"min": 0,
|
|
"noValue": "0",
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": null
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 4,
|
|
"x": 12,
|
|
"y": 10
|
|
},
|
|
"id": 8,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "none",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": [
|
|
"mean"
|
|
],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto"
|
|
},
|
|
"pluginVersion": "7.3.7",
|
|
"targets": [
|
|
{
|
|
"alias": "valid",
|
|
"groupBy": [],
|
|
"measurement": "flexpool_miner_workers",
|
|
"orderByTime": "ASC",
|
|
"policy": "default",
|
|
"refId": "A",
|
|
"resultFormat": "time_series",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"validShares"
|
|
],
|
|
"type": "field"
|
|
},
|
|
{
|
|
"params": [],
|
|
"type": "last"
|
|
}
|
|
]
|
|
],
|
|
"tags": [
|
|
{
|
|
"key": "miner",
|
|
"operator": "=~",
|
|
"value": "/^$miner$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "name",
|
|
"operator": "=~",
|
|
"value": "/^$worker$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "coin",
|
|
"operator": "=~",
|
|
"value": "/^$coin$/"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"timeFrom": null,
|
|
"timeShift": null,
|
|
"title": "Valid shares",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": "${DS_INFLUXDB}",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"custom": {},
|
|
"decimals": 0,
|
|
"mappings": [],
|
|
"min": 0,
|
|
"noValue": "0",
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": null
|
|
},
|
|
{
|
|
"color": "#EAB839",
|
|
"value": 1
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 4,
|
|
"x": 16,
|
|
"y": 10
|
|
},
|
|
"id": 10,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "none",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": [
|
|
"mean"
|
|
],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto"
|
|
},
|
|
"pluginVersion": "7.3.7",
|
|
"targets": [
|
|
{
|
|
"alias": "stale",
|
|
"groupBy": [],
|
|
"measurement": "flexpool_miner_workers",
|
|
"orderByTime": "ASC",
|
|
"policy": "default",
|
|
"refId": "A",
|
|
"resultFormat": "time_series",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"staleShares"
|
|
],
|
|
"type": "field"
|
|
},
|
|
{
|
|
"params": [],
|
|
"type": "last"
|
|
}
|
|
]
|
|
],
|
|
"tags": [
|
|
{
|
|
"key": "miner",
|
|
"operator": "=~",
|
|
"value": "/^$miner$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "name",
|
|
"operator": "=~",
|
|
"value": "/^$worker$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "coin",
|
|
"operator": "=~",
|
|
"value": "/^$coin$/"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"timeFrom": null,
|
|
"timeShift": null,
|
|
"title": "Stale shares",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": "${DS_INFLUXDB}",
|
|
"description": "",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"custom": {},
|
|
"decimals": 0,
|
|
"mappings": [],
|
|
"min": 0,
|
|
"noValue": "0",
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": null
|
|
},
|
|
{
|
|
"color": "red",
|
|
"value": 1
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 4,
|
|
"x": 20,
|
|
"y": 10
|
|
},
|
|
"id": 12,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "none",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": [
|
|
"mean"
|
|
],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto"
|
|
},
|
|
"pluginVersion": "7.3.7",
|
|
"targets": [
|
|
{
|
|
"alias": "invalid",
|
|
"groupBy": [],
|
|
"measurement": "flexpool_miner_workers",
|
|
"orderByTime": "ASC",
|
|
"policy": "default",
|
|
"refId": "A",
|
|
"resultFormat": "time_series",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"invalidShares"
|
|
],
|
|
"type": "field"
|
|
},
|
|
{
|
|
"params": [],
|
|
"type": "last"
|
|
}
|
|
]
|
|
],
|
|
"tags": [
|
|
{
|
|
"key": "miner",
|
|
"operator": "=~",
|
|
"value": "/^$miner$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "name",
|
|
"operator": "=~",
|
|
"value": "/^$worker$/"
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"key": "coin",
|
|
"operator": "=~",
|
|
"value": "/^$coin$/"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"timeFrom": null,
|
|
"timeShift": null,
|
|
"title": "Invalid shares",
|
|
"type": "stat"
|
|
}
|
|
],
|
|
"schemaVersion": 26,
|
|
"style": "dark",
|
|
"tags": [
|
|
"flexpool",
|
|
"mining"
|
|
],
|
|
"templating": {
|
|
"list": [
|
|
{
|
|
"allValue": null,
|
|
"current": {},
|
|
"datasource": "${DS_INFLUXDB}",
|
|
"error": null,
|
|
"hide": 0,
|
|
"includeAll": false,
|
|
"label": null,
|
|
"multi": false,
|
|
"name": "coin",
|
|
"options": [],
|
|
"query": "SHOW TAG VALUES FROM flexpool_miner_workers WITH KEY = \"coin\"",
|
|
"refresh": 1,
|
|
"regex": "",
|
|
"skipUrlSync": false,
|
|
"sort": 5,
|
|
"tagValuesQuery": "",
|
|
"tags": [],
|
|
"tagsQuery": "",
|
|
"type": "query",
|
|
"useTags": false
|
|
},
|
|
{
|
|
"allValue": null,
|
|
"current": {},
|
|
"datasource": "${DS_INFLUXDB}",
|
|
"error": null,
|
|
"hide": 0,
|
|
"includeAll": false,
|
|
"label": null,
|
|
"multi": false,
|
|
"name": "miner",
|
|
"options": [],
|
|
"query": "SHOW TAG VALUES FROM flexpool_miner_workers WITH KEY = \"miner\" WHERE coin =~ /^$coin$/",
|
|
"refresh": 1,
|
|
"regex": "",
|
|
"skipUrlSync": false,
|
|
"sort": 1,
|
|
"tagValuesQuery": "",
|
|
"tags": [],
|
|
"tagsQuery": "",
|
|
"type": "query",
|
|
"useTags": false
|
|
},
|
|
{
|
|
"allValue": null,
|
|
"current": {},
|
|
"datasource": "${DS_INFLUXDB}",
|
|
"definition": "",
|
|
"error": null,
|
|
"hide": 0,
|
|
"includeAll": false,
|
|
"label": null,
|
|
"multi": false,
|
|
"name": "worker",
|
|
"options": [],
|
|
"query": "SHOW TAG VALUES FROM flexpool_miner_workers WITH KEY = \"name\" WHERE miner =~ /^$miner$/",
|
|
"refresh": 1,
|
|
"regex": "",
|
|
"skipUrlSync": false,
|
|
"sort": 1,
|
|
"tagValuesQuery": "",
|
|
"tags": [],
|
|
"tagsQuery": "",
|
|
"type": "query",
|
|
"useTags": false
|
|
}
|
|
]
|
|
},
|
|
"time": {
|
|
"from": "now-2d",
|
|
"to": "now"
|
|
},
|
|
"timepicker": {
|
|
"refresh_intervals": [
|
|
"10s",
|
|
"30s",
|
|
"1m",
|
|
"5m",
|
|
"15m",
|
|
"30m",
|
|
"1h",
|
|
"2h",
|
|
"1d"
|
|
]
|
|
},
|
|
"timezone": "utc",
|
|
"title": "Flexpool workers",
|
|
"uid": "slcUBSzgz",
|
|
"version": 3
|
|
} |