Skip to content

Commit

Permalink
Merge pull request #10 from vitficl/master
Browse files Browse the repository at this point in the history
Fix of Grafana dashboards
  • Loading branch information
spigi42 authored Jun 9, 2022
2 parents e098b13 + 219f890 commit e81e21d
Show file tree
Hide file tree
Showing 17 changed files with 9,968 additions and 0 deletions.
147 changes: 147 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,319 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 15,
"iteration": 1648623461848,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "${data_source}"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"displayMode": "auto"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Miner"
},
"properties": [
{
"id": "custom.width",
"value": 108
},
{
"id": "links",
"value": [
{
"targetBlank": true,
"title": "",
"url": "http://${__series.name}"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "Building"
},
"properties": [
{
"id": "custom.width",
"value": 97
}
]
},
{
"matcher": {
"id": "byName",
"options": "Site"
},
"properties": [
{
"id": "custom.width",
"value": 60
}
]
},
{
"matcher": {
"id": "byName",
"options": "Subnet"
},
"properties": [
{
"id": "custom.width",
"value": 73
}
]
},
{
"matcher": {
"id": "byName",
"options": "Protocol"
},
"properties": [
{
"id": "custom.width",
"value": 128
}
]
},
{
"matcher": {
"id": "byName",
"options": "User"
},
"properties": [
{
"id": "custom.width",
"value": 114
}
]
},
{
"matcher": {
"id": "byName",
"options": "Time"
},
"properties": [
{
"id": "custom.width",
"value": 185
}
]
},
{
"matcher": {
"id": "byName",
"options": "Worker"
},
"properties": [
{
"id": "custom.width",
"value": 200
}
]
},
{
"matcher": {
"id": "byName"
},
"properties": []
}
]
},
"gridPos": {
"h": 12,
"w": 13,
"x": 0,
"y": 0
},
"id": 2,
"options": {
"footer": {
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": []
},
"pluginVersion": "8.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"exemplar": false,
"expr": "client_status{host=\"$host\", connection_type=\"user\"} > 0",
"format": "table",
"instant": true,
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"title": "Miners with Active Pool",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
"Value": true,
"__name__": true,
"client_id": true,
"connection_type": true,
"host": true,
"host_id": true,
"job": true
},
"indexByName": {
"Time": 13,
"Value": 14,
"__name__": 4,
"building": 0,
"client_id": 5,
"connection_type": 6,
"host": 7,
"host_id": 8,
"instance": 3,
"job": 9,
"protocol": 10,
"site_id": 1,
"subnet_id": 2,
"user": 11,
"worker": 12
},
"renameByName": {
"Time": "Time",
"Value": "",
"building": "Building",
"instance": "Miner",
"protocol": "Protocol",
"site_id": "Site",
"subnet_id": "Subnet",
"user": "User",
"worker": "Worker"
}
}
}
],
"type": "table"
}
],
"refresh": "",
"schemaVersion": 35,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"current": {
"selected": false,
"text": "default",
"value": "default"
},
"hide": 0,
"includeAll": false,
"label": "Data Source",
"multi": false,
"name": "data_source",
"options": [],
"query": "prometheus",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "datasource"
},
{
"current": {
"selected": false,
"text": "stratum.slushpool.com",
"value": "stratum.slushpool.com"
},
"datasource": {
"type": "prometheus",
"uid": "${data_source}"
},
"definition": "label_values(host)",
"hide": 0,
"includeAll": false,
"label": "Host",
"multi": false,
"name": "host",
"options": [],
"query": {
"query": "label_values(host)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "New Drill-Down (Active Pool --> Instance]",
"uid": "bflmpsvz",
"version": 3,
"weekStart": ""
}
Loading

0 comments on commit e81e21d

Please sign in to comment.