monero
This commit is contained in:
85
apps/miner/grafana-dashboard-configmap.yaml
Normal file
85
apps/miner/grafana-dashboard-configmap.yaml
Normal file
@@ -0,0 +1,85 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: xmrig-grafana-dashboard
|
||||
namespace: miner
|
||||
labels:
|
||||
grafana_dashboard: "1"
|
||||
data:
|
||||
xmrig-mining.json: |
|
||||
{
|
||||
"title": "XMRig Mining",
|
||||
"uid": "xmrig-mining",
|
||||
"schemaVersion": 39,
|
||||
"time": { "from": "now-6h", "to": "now" },
|
||||
"refresh": "30s",
|
||||
"templating": {
|
||||
"list": [
|
||||
{
|
||||
"name": "datasource",
|
||||
"type": "datasource",
|
||||
"query": "prometheus",
|
||||
"current": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
"panels": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Hashrate (10s avg)",
|
||||
"type": "timeseries",
|
||||
"datasource": { "type": "prometheus", "uid": "${datasource}" },
|
||||
"gridPos": { "h": 8, "w": 24, "x": 0, "y": 0 },
|
||||
"fieldConfig": { "defaults": { "unit": "Hz" }, "overrides": [] },
|
||||
"targets": [
|
||||
{
|
||||
"expr": "xmrig_hashrate_10s",
|
||||
"legendFormat": "{{miner}}",
|
||||
"refId": "A"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "Shares Good",
|
||||
"type": "stat",
|
||||
"datasource": { "type": "prometheus", "uid": "${datasource}" },
|
||||
"gridPos": { "h": 6, "w": 8, "x": 0, "y": 8 },
|
||||
"targets": [
|
||||
{
|
||||
"expr": "xmrig_shares_good",
|
||||
"legendFormat": "{{miner}}",
|
||||
"refId": "A"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"title": "Shares Total",
|
||||
"type": "stat",
|
||||
"datasource": { "type": "prometheus", "uid": "${datasource}" },
|
||||
"gridPos": { "h": 6, "w": 8, "x": 8, "y": 8 },
|
||||
"targets": [
|
||||
{
|
||||
"expr": "xmrig_shares_total",
|
||||
"legendFormat": "{{miner}}",
|
||||
"refId": "A"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"title": "Miner Up",
|
||||
"type": "stat",
|
||||
"datasource": { "type": "prometheus", "uid": "${datasource}" },
|
||||
"gridPos": { "h": 6, "w": 8, "x": 16, "y": 8 },
|
||||
"targets": [
|
||||
{
|
||||
"expr": "xmrig_up",
|
||||
"legendFormat": "{{miner}}",
|
||||
"refId": "A"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user