add madiator's dash

This commit is contained in:
Alex Grintsvayg 2021-12-16 12:31:48 -05:00
parent 46ed382bff
commit 8360467ab4
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5
3 changed files with 644 additions and 1 deletions

View file

@ -0,0 +1,638 @@
{
"__inputs": [
{
"name": "DS_INFINITY",
"label": "Infinity",
"description": "",
"type": "datasource",
"pluginId": "yesoreyeram-infinity-datasource",
"pluginName": "Infinity"
}
],
"__requires": [
{
"type": "panel",
"id": "gauge",
"name": "Gauge",
"version": ""
},
{
"type": "panel",
"id": "geomap",
"name": "Geomap",
"version": ""
},
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "8.1.6"
},
{
"type": "panel",
"id": "stat",
"name": "Stat",
"version": ""
},
{
"type": "panel",
"id": "table",
"name": "Table",
"version": ""
},
{
"type": "datasource",
"id": "yesoreyeram-infinity-datasource",
"name": "Infinity",
"version": "0.7.8"
}
],
"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,
"gnetId": null,
"graphTooltip": 0,
"id": null,
"links": [],
"panels": [
{
"datasource": "${DS_INFINITY}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 24,
"x": 0,
"y": 0
},
"id": 18,
"options": {
"basemap": {
"config": {},
"type": "default"
},
"controls": {
"mouseWheelZoom": true,
"showAttribution": false,
"showDebug": false,
"showScale": false,
"showZoom": true
},
"layers": [
{
"config": {
"blur": 15,
"radius": 5,
"weight": {
"fixed": 1,
"max": 1,
"min": 0
}
},
"location": {
"lookup": "country",
"mode": "lookup"
},
"type": "heatmap"
}
],
"view": {
"id": "zero",
"lat": 0,
"lon": 0,
"zoom": 2
}
},
"repeat": null,
"targets": [
{
"columns": [
{
"selector": "country",
"text": "country",
"type": "string"
}
],
"csv_options": {
"columns": "",
"comment": "",
"delimiter": ",",
"relax_column_count": false,
"skip_empty_lines": false,
"skip_lines_with_error": false
},
"data": "",
"filters": [],
"format": "table",
"global_query_id": "",
"refId": "A",
"root_selector": "",
"source": "url",
"type": "csv",
"url": "https://nodes.madiator.com/static/data.csv",
"url_options": {
"data": "",
"method": "GET"
}
}
],
"title": "Blockchain Nodes Map",
"type": "geomap"
},
{
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 9
},
"id": 2,
"title": "DHT Node",
"type": "row"
},
{
"datasource": null,
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 10
},
"id": 4,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "8.1.6",
"targets": [
{
"exemplar": true,
"expr": "dht_node_blobs_stored{}",
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"title": "Blob Stored",
"type": "stat"
},
{
"datasource": null,
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 10
},
"id": 6,
"options": {
"colorMode": "none",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "8.1.6",
"targets": [
{
"exemplar": true,
"expr": "dht_node_known_peers{}",
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"title": "Known Peers",
"type": "stat"
},
{
"collapsed": false,
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 18
},
"id": 8,
"panels": [],
"title": "HUB Tracker",
"type": "row"
},
{
"datasource": null,
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 19
},
"id": 10,
"options": {
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"text": {}
},
"pluginVersion": "8.1.6",
"targets": [
{
"exemplar": true,
"expr": "wallet_server_session_count{}",
"interval": "",
"legendFormat": "{{version}} ",
"refId": "A"
}
],
"title": "Active Clients",
"type": "gauge"
},
{
"datasource": null,
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 19
},
"id": 20,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "8.1.6",
"targets": [
{
"exemplar": true,
"expr": "sum(wallet_server_requests_count_total{method=\"blockchain.transaction.broadcast\"})",
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"title": "Send transactions",
"type": "stat"
},
{
"datasource": null,
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 27
},
"id": 12,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "8.1.6",
"targets": [
{
"exemplar": true,
"expr": "wallet_server_block_count{}",
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"title": "HUB Blocks",
"type": "stat"
},
{
"datasource": "${DS_INFINITY}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "center",
"displayMode": "auto",
"filterable": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 27
},
"id": 14,
"options": {
"showHeader": true
},
"pluginVersion": "8.1.6",
"targets": [
{
"columns": [
{
"selector": "address",
"text": "Address",
"type": "string"
},
{
"selector": "port",
"text": "Port",
"type": "string"
},
{
"selector": "user_agent",
"text": "Version",
"type": "string"
},
{
"selector": "last_height",
"text": "Last height",
"type": "number"
},
{
"selector": "address_type",
"text": "Address type",
"type": "string"
},
{
"selector": "is_active",
"text": "Active",
"type": "string"
},
{
"selector": "last_seen",
"text": "Last Seen",
"type": "timestamp_epoch_s"
},
{
"selector": "country",
"text": "Country",
"type": "string"
}
],
"csv_options": {
"columns": "",
"comment": "",
"delimiter": ",",
"relax_column_count": false,
"skip_empty_lines": false,
"skip_lines_with_error": false
},
"data": "",
"filters": [],
"format": "table",
"global_query_id": "",
"refId": "A",
"root_selector": "",
"source": "url",
"type": "csv",
"url": "https://nodes.madiator.com/static/data.csv",
"url_options": {
"data": "",
"method": "GET"
}
}
],
"title": "LBRY Blockchain Nodes",
"type": "table"
},
{
"collapsed": false,
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 35
},
"id": 16,
"panels": [],
"title": "Blockchain",
"type": "row"
}
],
"refresh": "1m",
"schemaVersion": 30,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Madiator.com Tracker",
"uid": "hQq0Yjtnk",
"version": 14
}

View file

@ -27,4 +27,9 @@ https://stackoverflow.com/questions/64768618/ufw-forbids-docker-container-to-con
requires CSV plugin: https://github.com/marcusolsson/grafana-csv-datasource
then import `grafana-dashboard.json`
then import `dashboards/grafana-dashboard.json`
## madiator's dashboard
needs plugin https://grafana.com/grafana/plugins/yesoreyeram-infinity-datasource/