diff --git a/docker-compose.yml b/docker-compose.yml index 9b4da69..81d535e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,9 +2,10 @@ version: '3' volumes: prometheus_data: {} grafana_data: {} + scanner_data: {} services: farm-proxy: - image: braiinssystems/farm-proxy:v1.0.0-rc8 + image: braiinssystems/farm-proxy:v1.0.0-rc9 container_name: farm-proxy network_mode: "host" volumes: @@ -20,6 +21,13 @@ services: max-size: "100m" max-file: "50" compress: "true" + bos_scanner: + image: braiinssystems/bos_monitor:v1.0.0 + container_name: bos_scanner + volumes: + - ./scan_crontab:/usr/local/share/scan_crontab + - scanner_data:/mnt:rw + network_mode: "host" prometheus: image: prom/prometheus:latest container_name: prometheus @@ -27,6 +35,7 @@ services: volumes: - ./monitoring/prometheus:/etc/prometheus - prometheus_data:/prometheus + - scanner_data:/mnt command: - '--config.file=/etc/prometheus/prometheus.yml' - '--storage.tsdb.path=/prometheus' @@ -73,10 +82,7 @@ services: - grafana_data:/var/lib/grafana - ./monitoring/grafana/provisioning:/etc/grafana/provisioning environment: - - GF_SECURITY_ADMIN_USER=admin - - GF_SECURITY_ADMIN_PASSWORD=admin - - GF_USERS_ALLOW_SIGN_UP=true - - GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH=/etc/grafana/provisioning/default_dashboards/client_dashboard.json + - GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH=/etc/grafana/provisioning/default_dashboards/farm-proxy/client_dashboard.json restart: unless-stopped logging: driver: "json-file" diff --git a/monitoring/grafana/dashboards/client_dashboard.json b/monitoring/grafana/dashboards/client_dashboard.json deleted file mode 100644 index e13728c..0000000 --- a/monitoring/grafana/dashboards/client_dashboard.json +++ /dev/null @@ -1,1389 +0,0 @@ -{ - "__inputs": [ - { - "name": "DS_PROM1", - "label": "prom1", - "description": "", - "type": "datasource", - "pluginId": "prometheus", - "pluginName": "Prometheus" - } - ], - "__elements": [], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "8.4.0" - }, - { - "type": "panel", - "id": "piechart", - "name": "Pie chart", - "version": "" - }, - { - "type": "datasource", - "id": "prometheus", - "name": "Prometheus", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "stat", - "name": "Stat", - "version": "" - }, - { - "type": "panel", - "id": "timeseries", - "name": "Time series", - "version": "" - } - ], - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "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": 1, - "id": null, - "iteration": 1648651132863, - "links": [], - "liveNow": false, - "panels": [ - { - "description": "Hashrate received from miners.", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] - }, - "unit": "GHs" - }, - "overrides": [] - }, - "id": 2, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": { - "titleSize": 14, - "valueSize": 16 - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=\"downstream\", status=\"accepted\", type=~\"$type\"}[5m]) * 4.294967296)", - "interval": "", - "legendFormat": "5min HR", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=\"downstream\", status=\"accepted\", type=~\"$type\"}[1h]) * 4.294967296)", - "hide": false, - "interval": "", - "legendFormat": "1hr HR", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=\"downstream\", status=\"accepted\", type=~\"$type\"}[24h]) * 4.294967296)", - "hide": false, - "interval": "", - "legendFormat": "24hr HR", - "refId": "C" - } - ], - "title": "Downstream hashrate", - "type": "stat" - }, - { - "description": "Hashrate sent to target pool(s).", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "purple", - "value": null - } - ] - }, - "unit": "GHs" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 6, - "y": 0 - }, - "id": 45, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": { - "titleSize": 14, - "valueSize": 16 - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=\"upstream\", status=\"validated\", type=~\"$type\"}[5m]) * 4.294967296)", - "interval": "", - "legendFormat": "5min HR", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=\"upstream\", status=\"validated\", type=~\"$type\"}[1h]) * 4.294967296)", - "hide": false, - "interval": "", - "legendFormat": "1hr HR", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=\"upstream\", status=\"validated\", type=~\"$type\"}[24h]) * 4.294967296)", - "hide": false, - "interval": "", - "legendFormat": "24hr HR", - "refId": "C" - } - ], - "title": "Upstream hashrate", - "type": "stat" - }, - { - "description": "Version of Farm Proxy", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 1, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 51, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": { - "titleSize": 1, - "valueSize": 14 - }, - "textMode": "name" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "FP_application_version_details", - "hide": false, - "interval": "", - "legendFormat": "Version: {{version_full}}", - "refId": "B" - } - ], - "type": "stat" - }, - { - "description": "Most recent Farm Proxy start date", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - } - ] - }, - "unit": "dateTimeAsLocal" - }, - "overrides": [] - }, - "gridPos": { - "h": 1, - "w": 12, - "x": 12, - "y": 1 - }, - "id": 55, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "vertical", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "/^started at:$/", - "values": false - }, - "text": { - "titleSize": 14, - "valueSize": 14 - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "FP_start_time_ms", - "hide": false, - "interval": "", - "legendFormat": "started at:", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "", - "hide": false, - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "type": "stat" - }, - { - "description": "Validity of certificate for devfee hashrate aggregation", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 0 - }, - { - "color": "#EAB839", - "value": 3 - }, - { - "color": "green", - "value": 7 - } - ] - }, - "unit": "day" - }, - "overrides": [] - }, - "gridPos": { - "h": 1, - "w": 12, - "x": 12, - "y": 2 - }, - "id": 52, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "titleSize": 14, - "valueSize": 14 - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "FP_remaining_certificate_validity_days", - "hide": false, - "interval": "", - "legendFormat": "Certificate valid for:", - "refId": "B" - } - ], - "type": "stat" - }, - { - "description": "Shares received from miners", - "fieldConfig": { - "defaults": { - "decimals": 3, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] - }, - "unit": "locale" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Invalid ratio" - }, - "properties": [ - { - "id": "unit", - "value": "percent" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 0.25 - }, - { - "color": "red", - "value": 0.5 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 0, - "y": 3 - }, - "id": 46, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": { - "titleSize": 14, - "valueSize": 16 - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_shares_total{direction=\"downstream\", status=\"accepted\", type=\"$type\"})", - "hide": false, - "interval": "", - "legendFormat": "Accepted", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_shares_total{direction=\"downstream\", status!=\"accepted\", type=\"$type\"})", - "hide": false, - "interval": "", - "legendFormat": "Invalid", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_shares_total{direction=\"downstream\", status!=\"accepted\", type=\"$type\"}) / sum(FP_shares_total{direction=\"downstream\", type=\"$type\"}) * 100", - "hide": false, - "interval": "", - "legendFormat": "Invalid ratio", - "refId": "C" - } - ], - "title": "Downstream shares", - "type": "stat" - }, - { - "description": "Shares sent to target pool(s).", - "fieldConfig": { - "defaults": { - "decimals": 3, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "purple", - "value": null - } - ] - }, - "unit": "locale" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Invalid ratio" - }, - "properties": [ - { - "id": "unit", - "value": "percent" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 0.25 - }, - { - "color": "red", - "value": 0.5 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 6, - "y": 3 - }, - "id": 48, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": { - "titleSize": 14, - "valueSize": 16 - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_shares_total{direction=\"upstream\", status=\"validated\",type=\"$type\"})", - "hide": false, - "interval": "", - "legendFormat": "Accepted", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_shares_total{direction=\"upstream\", status!=\"validated\",type=\"$type\"})", - "hide": false, - "interval": "", - "legendFormat": "Invalid", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_shares_total{direction=\"upstream\", status!=\"validated\",type=\"$type\"}) / sum(FP_shares_total{direction=\"upstream\", type=\"$type\"}) * 100", - "hide": false, - "interval": "", - "legendFormat": "Invalid ratio", - "refId": "C" - } - ], - "title": "Upstream shares", - "type": "stat" - }, - { - "description": "Count of currently connected miners by hashrate type", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 12, - "y": 3 - }, - "id": 8, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": { - "titleSize": 14, - "valueSize": 18 - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_subscription_size_to_target_total{goal!=\"#!!ii-DevFee\"})", - "hide": false, - "interval": "", - "legendFormat": "standard", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_subscription_size_to_target_total{goal=\"#!!ii-DevFee\"})", - "hide": false, - "interval": "", - "legendFormat": "devfee", - "refId": "C" - } - ], - "title": "Downstream connections", - "type": "stat" - }, - { - "description": "Count of connections to target pool(s) by hashrate type", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "purple", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 18, - "y": 3 - }, - "id": 44, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": { - "titleSize": 14, - "valueSize": 18 - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_connections_by_target{goal!=\"#!!ii-DevFee\"})", - "hide": false, - "interval": "", - "legendFormat": "standard", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_connections_by_target{goal=\"#!!ii-DevFee\"})", - "interval": "", - "legendFormat": "devfee", - "refId": "A" - } - ], - "title": "Upstream connections", - "type": "stat" - }, - { - "description": "Hashrate received from miners", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "GHs" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 12, - "x": 0, - "y": 6 - }, - "id": 9, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=\"downstream\", status=\"accepted\", type=~\"$type\"}[5m]) * 4.294967296) by (type)", - "interval": "", - "legendFormat": "{{type}} hashrate (accepted)", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=\"downstream\", status!=\"accepted\", type=~\"$type\"}[1m]) * 4.294967296) by (type)", - "hide": false, - "interval": "", - "legendFormat": "{{type}} hashrate (invalid)", - "refId": "B" - } - ], - "title": "Downstream hashrate", - "type": "timeseries" - }, - { - "description": "Theoretical aggregation based on ratio of upstream and downstream connections. Theoretical means the real aggregation can be lower due to network events (e.g. reconnections or job resets).", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "yellow", - "value": null - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 12, - "x": 12, - "y": 6 - }, - "id": 53, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "vertical", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": { - "titleSize": 14, - "valueSize": 18 - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "100 - (sum(FP_connections_by_target{goal!=\"#!!ii-DevFee\"}) / sum(FP_subscription_size_to_target_total{goal!=\"#!!ii-DevFee\"})) * 100", - "interval": "", - "legendFormat": "Standard HR", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "100 - (sum(FP_connections_by_target{goal=\"#!!ii-DevFee\"}) / sum(FP_subscription_size_to_target_total{goal=\"#!!ii-DevFee\"})) * 100", - "hide": false, - "interval": "", - "legendFormat": "Devfee HR", - "refId": "B" - } - ], - "title": "Aggregation", - "type": "stat" - }, - { - "description": "History of theoretical aggregation", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "yellow", - "value": null - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, - "id": 54, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "100 - (sum(FP_connections_by_target{goal!=\"#!!ii-DevFee\"}) / sum(FP_subscription_size_to_target_total{goal!=\"#!!ii-DevFee\"})) * 100", - "interval": "", - "legendFormat": "Standard HR", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "100 - (sum(FP_connections_by_target{goal=\"#!!ii-DevFee\"}) / sum(FP_subscription_size_to_target_total{goal=\"#!!ii-DevFee\"})) * 100", - "hide": false, - "interval": "", - "legendFormat": "Devfee HR", - "refId": "B" - } - ], - "title": "Aggregation history", - "type": "timeseries" - }, - { - "description": "Hashrate sent to target pool(s)", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "purple", - "value": null - } - ] - }, - "unit": "GHs" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 12, - "x": 0, - "y": 11 - }, - "id": 50, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=\"upstream\", status=\"validated\", type=~\"$type\"}[5m]) * 4.294967296) by (type)", - "interval": "", - "legendFormat": "{{type}} hashrate (accepted)", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=\"upstream\", status!=\"validated\", type=~\"$type\"}[1m]) * 4.294967296) by (type)", - "hide": false, - "interval": "", - "legendFormat": "{{type}} hashrate (invalid)", - "refId": "D" - } - ], - "title": "Upstream hashrate", - "type": "timeseries" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 16 - }, - "id": 57, - "panels": [ - { - "description": "Split of standard hashrate among defined goals.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "mappings": [] - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 17 - }, - "id": 59, - "options": { - "displayLabels": [ - "name", - "percent" - ], - "legend": { - "displayMode": "list", - "placement": "bottom" - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "100* sum(FP_hash_rate_by_providers{goal!=\"#!!ii-DevFee\"}) by (goal) / ignoring(goal) group_left sum(FP_hash_rate_by_providers{goal!=\"#!!ii-DevFee\"})", - "interval": "", - "legendFormat": "{{goal}}", - "refId": "A" - } - ], - "title": "Split among goals", - "type": "piechart" - }, - { - "description": "Split of standard hashrate among targets (IP addresses behind pool URL).", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "mappings": [], - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 17 - }, - "id": 60, - "options": { - "displayLabels": [ - "percent" - ], - "legend": { - "displayMode": "list", - "placement": "right", - "values": [ - "percent" - ] - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=\"upstream\", status=\"validated\", type=\"standard\"}[5m])) by (server)", - "interval": "", - "legendFormat": "{{server}}", - "refId": "A" - } - ], - "title": "Split among targets", - "type": "piechart" - } - ], - "title": "Hashrate split", - "type": "row" - } - ], - "refresh": "5s", - "schemaVersion": 35, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "current": { - "selected": true, - "text": "standard", - "value": "standard" - }, - "hide": 0, - "includeAll": true, - "label": "Hashrate type", - "multi": false, - "name": "type", - "options": [ - { - "selected": false, - "text": "All", - "value": "$__all" - }, - { - "selected": true, - "text": "standard", - "value": "standard" - }, - { - "selected": false, - "text": "devfee", - "value": "devfee" - } - ], - "query": "standard,devfee", - "queryValue": "", - "skipUrlSync": false, - "type": "custom" - } - ] - }, - "time": { - "from": "now-3h", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Client Dashboard", - "uid": "9R0uBpynk", - "version": 1, - "weekStart": "" -} \ No newline at end of file diff --git a/monitoring/grafana/dashboards/debug_dashboard.json b/monitoring/grafana/dashboards/debug_dashboard.json deleted file mode 100644 index a4bfa50..0000000 --- a/monitoring/grafana/dashboards/debug_dashboard.json +++ /dev/null @@ -1,2468 +0,0 @@ -{ - "__inputs": [ - { - "name": "DS_PROM1", - "label": "prom1", - "description": "", - "type": "datasource", - "pluginId": "prometheus", - "pluginName": "Prometheus" - } - ], - "__elements": [], - "__requires": [ - { - "type": "panel", - "id": "gauge", - "name": "Gauge", - "version": "" - }, - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "8.4.0" - }, - { - "type": "panel", - "id": "piechart", - "name": "Pie chart", - "version": "" - }, - { - "type": "datasource", - "id": "prometheus", - "name": "Prometheus", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "stat", - "name": "Stat", - "version": "" - }, - { - "type": "panel", - "id": "timeseries", - "name": "Time series", - "version": "" - } - ], - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "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": 1, - "id": null, - "iteration": 1648104027800, - "links": [], - "liveNow": false, - "panels": [ - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "dateTimeAsIso" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 53, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "value_and_name" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "FP_start_time_ms", - "interval": "", - "legendFormat": "Router start time - {{instance}}:", - "refId": "A" - } - ], - "title": "Router start time", - "type": "stat" - }, - { - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "GHs" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 2, - "options": { - "legend": { - "calcs": [ - "lastNotNull", - "min", - "max" - ], - "displayMode": "table", - "placement": "bottom", - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=~\"$direction\",status=~\"$status\", type=~\"$type\"}[5m]) * 4.294967296) by (server, direction, status, type)", - "interval": "", - "legendFormat": "{{server}} {{status}} {{direction}} {{type}} hashrate", - "refId": "A" - } - ], - "title": "Hashrate", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [], - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "dark-red", - "value": null - }, - { - "color": "red", - "value": 0 - }, - { - "color": "green", - "value": 1 - } - ] - }, - "unit": "d" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 12, - "x": 0, - "y": 4 - }, - "id": 43, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "value_and_name" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "FP_remaining_certificate_validity_days", - "format": "time_series", - "instant": false, - "interval": "", - "legendFormat": "instance: {{instance}} ", - "refId": "A" - } - ], - "title": "Certificate validity", - "type": "stat" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 7 - }, - "id": 8, - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "text": { - "titleSize": 13, - "valueSize": 30 - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_connections_by_target{target=~\"$target\"}) + sum(FP_subscription_size_to_target_total{target=~\"$target\"})", - "interval": "", - "legendFormat": "#active connections", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_connections_by_target{goal!=\"#!!ii-DevFee\",target=~\"$target\"})", - "hide": false, - "interval": "", - "legendFormat": "upstream standard open connection", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_subscription_size_to_target_total{goal!=\"#!!ii-DevFee\",target=~\"$target\"})", - "hide": false, - "interval": "", - "legendFormat": "downstream standard open connection", - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_connections_by_target{goal=\"#!!ii-DevFee\",target=~\"$target\"})", - "hide": false, - "interval": "", - "legendFormat": "upstream devfee open connection", - "refId": "D" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_subscription_size_to_target_total{goal=\"#!!ii-DevFee\",target=~\"$target\"})", - "hide": false, - "interval": "", - "legendFormat": "downstream devfee open connection", - "refId": "E" - } - ], - "title": "Connection", - "type": "gauge" - }, - { - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "submit/s", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 9 - }, - "id": 9, - "options": { - "legend": { - "calcs": [ - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(rate(FP_submits_total{direction=~\"$direction\",status=~\"$status\", type=~\"$type\"}[1m])) by (server, direction, status, type)", - "interval": "", - "legendFormat": "{{server}} {{status}} {{direction}} {{type}} submits", - "refId": "A" - } - ], - "title": "Submission Rate", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 16 - }, - "id": 23, - "options": { - "legend": { - "calcs": [ - "min", - "max", - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "100* sum(FP_shares_total{direction=\"upstream\",server=~\"$target\", type=\"standard\"}) by (server) / ignoring(server) group_left sum(FP_shares_total{direction=\"upstream\", type=\"standard\"})", - "interval": "", - "legendFormat": "standard {{server}}", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "100* sum(FP_shares_total{direction=\"upstream\",server=~\"$target\", type=\"devfee\"}) by (server) / ignoring(server) group_left sum(FP_shares_total{direction=\"upstream\", type=\"devfee\"})", - "hide": false, - "interval": "", - "legendFormat": "devfee {{server}}", - "refId": "B" - } - ], - "title": "Hashrate Split", - "type": "timeseries" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 25 - }, - "id": 41, - "panels": [ - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "THs" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 27 - }, - "id": 15, - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(rate(FP_allocated_hash_rate_by_providers[1m]) * 4.294967296) by (target)", - "interval": "", - "legendFormat": "{{target}}", - "refId": "A" - } - ], - "title": "Allocated HR", - "type": "gauge" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "mappings": [], - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 27 - }, - "id": 22, - "options": { - "displayLabels": [ - "name", - "value" - ], - "legend": { - "displayMode": "list", - "placement": "right", - "values": [ - "percent" - ] - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "100* sum(FP_hash_rate_by_providers{goal!=\"#!!ii-DevFee\"}) by (goal) / ignoring(goal) group_left sum(FP_hash_rate_by_providers{goal!=\"#!!ii-DevFee\"})", - "interval": "", - "legendFormat": "{{goal}}", - "refId": "A" - } - ], - "title": "Hashrate Split", - "type": "piechart" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "THs" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 35 - }, - "id": 17, - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "text": { - "titleSize": 2 - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(rate(FP_hash_rate_by_receivers[1m])* 4.294967296)", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "HashRate from Receivers", - "type": "gauge" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "THs" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 35 - }, - "id": 13, - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(rate(FP_hash_rate_by_providers[1m])* 4.294967296) by (target)", - "interval": "", - "legendFormat": "{{target}}", - "refId": "A" - } - ], - "title": "Measured HR on targets", - "type": "gauge" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "mappings": [], - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 43 - }, - "id": 33, - "options": { - "displayLabels": [ - "name", - "value" - ], - "legend": { - "displayMode": "list", - "placement": "right", - "values": [ - "percent" - ] - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "100* sum(FP_hash_rate_by_providers{goal=\"#!!ii-DevFee\"}) by (goal) / ignoring(goal) group_left sum(FP_hash_rate_by_providers{goal=\"#!!ii-DevFee\"})", - "interval": "", - "legendFormat": "{{goal}}", - "refId": "A" - } - ], - "title": "Hashrate Split - devfee", - "type": "piechart" - } - ], - "title": "HR split - detail", - "type": "row" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 26 - }, - "id": 39, - "panels": [], - "title": "Connection metrics", - "type": "row" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 11, - "w": 24, - "x": 0, - "y": 27 - }, - "id": 31, - "options": { - "legend": { - "calcs": [ - "min", - "max", - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_connections_by_target{target=~\"$target\"}) by (target, goal)", - "interval": "", - "legendFormat": "{{goal}} {{target}}", - "refId": "A" - } - ], - "title": "Connection to upstream", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 38 - }, - "id": 32, - "options": { - "legend": { - "calcs": [ - "min", - "max", - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_subscription_size_to_target_total{goal=\"#!!ii-DevFee\",target=~\"$target\"}) by (goal, target)", - "interval": "", - "legendFormat": "{{goal}} - {{target}}", - "refId": "A" - } - ], - "title": "Subscription by target - devfee", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 38 - }, - "id": 25, - "options": { - "legend": { - "calcs": [ - "min", - "max", - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_subscription_size_to_target_total{goal!=\"#!!ii-DevFee\",target=~\"$target\"}) by (goal, target)", - "interval": "", - "legendFormat": "{{goal}} - {{target}}", - "refId": "A" - } - ], - "title": "Subscription by target", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 46 - }, - "id": 19, - "options": { - "legend": { - "calcs": [ - "min", - "max", - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_mean_latency_s{target=~\"$target\"}) by (target)", - "interval": "", - "legendFormat": "{{target}}", - "refId": "A" - } - ], - "title": "Mean latency", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 46 - }, - "id": 20, - "options": { - "legend": { - "calcs": [ - "min", - "max", - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_std_dev_latency_s{target=~\"$target\"}) by (target)", - "interval": "", - "legendFormat": "{{target}}", - "refId": "A" - } - ], - "title": "Std dev latency", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 54 - }, - "id": 47, - "options": { - "legend": { - "calcs": [ - "min", - "max", - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_rejection_rate{target=~\"$target\"}) by (target)", - "interval": "", - "legendFormat": "{{target}}", - "refId": "A" - } - ], - "title": "Rejection rate", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 54 - }, - "id": 49, - "options": { - "legend": { - "calcs": [ - "min", - "max", - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_error_rate{target=~\"$target\"}) by (target)", - "interval": "", - "legendFormat": "{{target}}", - "refId": "A" - } - ], - "title": "Error rate", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "0": { - "color": "red", - "index": 1, - "text": "Down" - }, - "1": { - "color": "green", - "index": 2, - "text": "Up" - }, - "-1": { - "color": "light-blue", - "index": 0, - "text": "Unknown" - } - }, - "type": "value" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 62 - }, - "id": 51, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_target_status) by (target)", - "interval": "", - "legendFormat": "{{target}}", - "refId": "A" - } - ], - "title": "Target Status", - "type": "stat" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 70 - }, - "id": 11, - "panels": [], - "title": "Router metrics", - "type": "row" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 24, - "x": 0, - "y": 71 - }, - "id": 45, - "options": { - "legend": { - "calcs": [ - "min", - "max", - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_score_by_target{target=~\"$target\"}) by (target)", - "interval": "", - "legendFormat": "{{target}}", - "refId": "A" - } - ], - "title": "Score by target", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 81 - }, - "id": 37, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(rate(FP_upstream_request_timeout_queue[10m])) by (type)", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "Timeout counter v1 upstream", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 81 - }, - "id": 35, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(rate(FP_upstream_request_queue[10m]))", - "interval": "", - "legendFormat": "#request in Upstream queue", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(rate(FP_upstream_request_timeout_queue[10m]))", - "hide": false, - "interval": "", - "legendFormat": "#timeout request in Upstream queue", - "refId": "B" - } - ], - "title": "V1 upstream queue size", - "type": "timeseries" - }, - { - "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": 89 - }, - "id": 29, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_buffers_sizes) by (name)", - "interval": "", - "legendFormat": "{{name}}", - "refId": "A" - } - ], - "title": "Waiting queue monitoring", - "type": "stat" - }, - { - "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": 89 - }, - "id": 27, - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(FP_provider_to_remove_size) by (type)", - "interval": "", - "legendFormat": "{{type}}", - "refId": "A" - } - ], - "title": "Providerds to remove", - "type": "gauge" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 97 - }, - "id": 55, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(increase(FP_job_submits_size[10m]))", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "Job submits map size", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 97 - }, - "id": 57, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(increase(FP_job_queue_size[10m]))", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "Job queue size", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 105 - }, - "id": 59, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "exemplar": true, - "expr": "sum(increase(FP_old_jobs[1m])) by (controller)", - "interval": "", - "legendFormat": "{{controller}}", - "refId": "A" - } - ], - "title": "Old jobs detection", - "type": "timeseries" - } - ], - "refresh": "1m", - "schemaVersion": 35, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "current": {}, - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "definition": "label_values(FP_shares_total, status)", - "hide": 0, - "includeAll": true, - "multi": false, - "name": "status", - "options": [], - "query": { - "query": "label_values(FP_shares_total, status)", - "refId": "StandardVariableQuery" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "type": "query" - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "hide": 0, - "includeAll": true, - "multi": true, - "name": "direction", - "options": [ - { - "selected": true, - "text": "All", - "value": "$__all" - }, - { - "selected": false, - "text": "upstream", - "value": "upstream" - }, - { - "selected": false, - "text": "downstream", - "value": "downstream" - } - ], - "query": "upstream,downstream", - "queryValue": "", - "skipUrlSync": false, - "type": "custom" - }, - { - "current": {}, - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "definition": "label_values(FP_shares_total{direction=\"downstream\"}, server)", - "hide": 0, - "includeAll": true, - "multi": true, - "name": "server", - "options": [], - "query": { - "query": "label_values(FP_shares_total{direction=\"downstream\"}, server)", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "(\\w+).*", - "skipUrlSync": false, - "sort": 0, - "type": "query" - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "hide": 0, - "includeAll": true, - "multi": true, - "name": "type", - "options": [ - { - "selected": true, - "text": "All", - "value": "$__all" - }, - { - "selected": false, - "text": "standard", - "value": "standard" - }, - { - "selected": false, - "text": "devfee", - "value": "devfee" - } - ], - "query": "standard,devfee", - "queryValue": "", - "skipUrlSync": false, - "type": "custom" - }, - { - "current": {}, - "datasource": { - "type": "prometheus", - "uid": "${DS_PROM1}" - }, - "definition": "label_values(FP_connections_by_target, target)", - "hide": 0, - "includeAll": true, - "multi": false, - "name": "target", - "options": [], - "query": { - "query": "label_values(FP_connections_by_target, target)", - "refId": "StandardVariableQuery" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "type": "query" - } - ] - }, - "time": { - "from": "now-30m", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Debug Dashboard FP", - "uid": "6JZhw2H7z9", - "version": 1, - "weekStart": "" -} diff --git a/monitoring/grafana/provisioning/dashboards/all.yml b/monitoring/grafana/provisioning/dashboards/all.yml index 864c9a4..1c96aa2 100644 --- a/monitoring/grafana/provisioning/dashboards/all.yml +++ b/monitoring/grafana/provisioning/dashboards/all.yml @@ -1,6 +1,10 @@ -- name: 'default' # name of this dashboard configuration (not dashboard itself) - org_id: 1 # id of the org to hold the dashboard - folder: '' # name of the folder to put the dashboard (http://docs.grafana.org/v5.0/reference/dashboard_folders/) - type: 'file' # type of dashboard description (json files) - options: - path: '/etc/grafana/provisioning/default_dashboards' # where dashboards are +apiVersion: 1 + +providers: + - name: 'default' + type: 'file' + updateIntervalSeconds: 30 + allowUiUpdates: true + options: + path: '/etc/grafana/provisioning/default_dashboards' + foldersFromFilesStructure: true \ No newline at end of file diff --git a/monitoring/grafana/provisioning/default_dashboards/client_dashboard.json b/monitoring/grafana/provisioning/default_dashboards/client_dashboard.json deleted file mode 100644 index 11feaae..0000000 --- a/monitoring/grafana/provisioning/default_dashboards/client_dashboard.json +++ /dev/null @@ -1,1346 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "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": 1, - "id": 3, - "iteration": 1648651132862, - "links": [], - "liveNow": false, - "panels": [ - { - "description": "Hashrate received from miners.", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] - }, - "unit": "GHs" - }, - "overrides": [] - }, - "id": 2, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": { - "titleSize": 14, - "valueSize": 16 - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=\"downstream\", status=\"accepted\", type=~\"$type\"}[5m]) * 4.294967296)", - "interval": "", - "legendFormat": "5min HR", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=\"downstream\", status=\"accepted\", type=~\"$type\"}[1h]) * 4.294967296)", - "hide": false, - "interval": "", - "legendFormat": "1hr HR", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=\"downstream\", status=\"accepted\", type=~\"$type\"}[24h]) * 4.294967296)", - "hide": false, - "interval": "", - "legendFormat": "24hr HR", - "refId": "C" - } - ], - "title": "Downstream hashrate", - "type": "stat" - }, - { - "description": "Hashrate sent to target pool(s).", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "purple", - "value": null - } - ] - }, - "unit": "GHs" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 6, - "y": 0 - }, - "id": 45, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": { - "titleSize": 14, - "valueSize": 16 - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=\"upstream\", status=\"validated\", type=~\"$type\"}[5m]) * 4.294967296)", - "interval": "", - "legendFormat": "5min HR", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=\"upstream\", status=\"validated\", type=~\"$type\"}[1h]) * 4.294967296)", - "hide": false, - "interval": "", - "legendFormat": "1hr HR", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=\"upstream\", status=\"validated\", type=~\"$type\"}[24h]) * 4.294967296)", - "hide": false, - "interval": "", - "legendFormat": "24hr HR", - "refId": "C" - } - ], - "title": "Upstream hashrate", - "type": "stat" - }, - { - "description": "Version of Farm Proxy", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 1, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 51, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": { - "titleSize": 1, - "valueSize": 14 - }, - "textMode": "name" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "FP_application_version_details", - "hide": false, - "interval": "", - "legendFormat": "Version: {{version_full}}", - "refId": "B" - } - ], - "type": "stat" - }, - { - "description": "Most recent Farm Proxy start date", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - } - ] - }, - "unit": "dateTimeAsLocal" - }, - "overrides": [] - }, - "gridPos": { - "h": 1, - "w": 12, - "x": 12, - "y": 1 - }, - "id": 55, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "vertical", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "/^started at:$/", - "values": false - }, - "text": { - "titleSize": 14, - "valueSize": 14 - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "FP_start_time_ms", - "hide": false, - "interval": "", - "legendFormat": "started at:", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "", - "hide": false, - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "type": "stat" - }, - { - "description": "Validity of certificate for devfee hashrate aggregation", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 0 - }, - { - "color": "#EAB839", - "value": 3 - }, - { - "color": "green", - "value": 7 - } - ] - }, - "unit": "day" - }, - "overrides": [] - }, - "gridPos": { - "h": 1, - "w": 12, - "x": 12, - "y": 2 - }, - "id": 52, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "titleSize": 14, - "valueSize": 14 - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "FP_remaining_certificate_validity_days", - "hide": false, - "interval": "", - "legendFormat": "Certificate valid for:", - "refId": "B" - } - ], - "type": "stat" - }, - { - "description": "Shares received from miners", - "fieldConfig": { - "defaults": { - "decimals": 3, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] - }, - "unit": "locale" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Invalid ratio" - }, - "properties": [ - { - "id": "unit", - "value": "percent" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 0.25 - }, - { - "color": "red", - "value": 0.5 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 0, - "y": 3 - }, - "id": 46, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": { - "titleSize": 14, - "valueSize": 16 - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_shares_total{direction=\"downstream\", status=\"accepted\", type=\"$type\"})", - "hide": false, - "interval": "", - "legendFormat": "Accepted", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_shares_total{direction=\"downstream\", status!=\"accepted\", type=\"$type\"})", - "hide": false, - "interval": "", - "legendFormat": "Invalid", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_shares_total{direction=\"downstream\", status!=\"accepted\", type=\"$type\"}) / sum(FP_shares_total{direction=\"downstream\", type=\"$type\"}) * 100", - "hide": false, - "interval": "", - "legendFormat": "Invalid ratio", - "refId": "C" - } - ], - "title": "Downstream shares", - "type": "stat" - }, - { - "description": "Shares sent to target pool(s).", - "fieldConfig": { - "defaults": { - "decimals": 3, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "purple", - "value": null - } - ] - }, - "unit": "locale" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Invalid ratio" - }, - "properties": [ - { - "id": "unit", - "value": "percent" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 0.25 - }, - { - "color": "red", - "value": 0.5 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 6, - "y": 3 - }, - "id": 48, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": { - "titleSize": 14, - "valueSize": 16 - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_shares_total{direction=\"upstream\", status=\"validated\",type=\"$type\"})", - "hide": false, - "interval": "", - "legendFormat": "Accepted", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_shares_total{direction=\"upstream\", status!=\"validated\",type=\"$type\"})", - "hide": false, - "interval": "", - "legendFormat": "Invalid", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_shares_total{direction=\"upstream\", status!=\"validated\",type=\"$type\"}) / sum(FP_shares_total{direction=\"upstream\", type=\"$type\"}) * 100", - "hide": false, - "interval": "", - "legendFormat": "Invalid ratio", - "refId": "C" - } - ], - "title": "Upstream shares", - "type": "stat" - }, - { - "description": "Count of currently connected miners by hashrate type", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 12, - "y": 3 - }, - "id": 8, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": { - "titleSize": 14, - "valueSize": 18 - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_subscription_size_to_target_total{goal!=\"#!!ii-DevFee\"})", - "hide": false, - "interval": "", - "legendFormat": "standard", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_subscription_size_to_target_total{goal=\"#!!ii-DevFee\"})", - "hide": false, - "interval": "", - "legendFormat": "devfee", - "refId": "C" - } - ], - "title": "Downstream connections", - "type": "stat" - }, - { - "description": "Count of connections to target pool(s) by hashrate type", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "purple", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 18, - "y": 3 - }, - "id": 44, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": { - "titleSize": 14, - "valueSize": 18 - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_connections_by_target{goal!=\"#!!ii-DevFee\"})", - "hide": false, - "interval": "", - "legendFormat": "standard", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_connections_by_target{goal=\"#!!ii-DevFee\"})", - "interval": "", - "legendFormat": "devfee", - "refId": "A" - } - ], - "title": "Upstream connections", - "type": "stat" - }, - { - "description": "Hashrate received from miners", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "GHs" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 12, - "x": 0, - "y": 6 - }, - "id": 9, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=\"downstream\", status=\"accepted\", type=~\"$type\"}[5m]) * 4.294967296) by (type)", - "interval": "", - "legendFormat": "{{type}} hashrate (accepted)", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=\"downstream\", status!=\"accepted\", type=~\"$type\"}[1m]) * 4.294967296) by (type)", - "hide": false, - "interval": "", - "legendFormat": "{{type}} hashrate (invalid)", - "refId": "B" - } - ], - "title": "Downstream hashrate", - "type": "timeseries" - }, - { - "description": "Theoretical aggregation based on ratio of upstream and downstream connections. Theoretical means the real aggregation can be lower due to network events (e.g. reconnections or job resets).", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "yellow", - "value": null - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 12, - "x": 12, - "y": 6 - }, - "id": 53, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "vertical", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false - }, - "text": { - "titleSize": 14, - "valueSize": 18 - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "100 - (sum(FP_connections_by_target{goal!=\"#!!ii-DevFee\"}) / sum(FP_subscription_size_to_target_total{goal!=\"#!!ii-DevFee\"})) * 100", - "interval": "", - "legendFormat": "Standard HR", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "100 - (sum(FP_connections_by_target{goal=\"#!!ii-DevFee\"}) / sum(FP_subscription_size_to_target_total{goal=\"#!!ii-DevFee\"})) * 100", - "hide": false, - "interval": "", - "legendFormat": "Devfee HR", - "refId": "B" - } - ], - "title": "Aggregation", - "type": "stat" - }, - { - "description": "History of theoretical aggregation", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "yellow", - "value": null - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, - "id": 54, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "100 - (sum(FP_connections_by_target{goal!=\"#!!ii-DevFee\"}) / sum(FP_subscription_size_to_target_total{goal!=\"#!!ii-DevFee\"})) * 100", - "interval": "", - "legendFormat": "Standard HR", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "100 - (sum(FP_connections_by_target{goal=\"#!!ii-DevFee\"}) / sum(FP_subscription_size_to_target_total{goal=\"#!!ii-DevFee\"})) * 100", - "hide": false, - "interval": "", - "legendFormat": "Devfee HR", - "refId": "B" - } - ], - "title": "Aggregation history", - "type": "timeseries" - }, - { - "description": "Hashrate sent to target pool(s)", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "purple", - "value": null - } - ] - }, - "unit": "GHs" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 12, - "x": 0, - "y": 11 - }, - "id": 50, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=\"upstream\", status=\"validated\", type=~\"$type\"}[5m]) * 4.294967296) by (type)", - "interval": "", - "legendFormat": "{{type}} hashrate (accepted)", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=\"upstream\", status!=\"validated\", type=~\"$type\"}[1m]) * 4.294967296) by (type)", - "hide": false, - "interval": "", - "legendFormat": "{{type}} hashrate (invalid)", - "refId": "D" - } - ], - "title": "Upstream hashrate", - "type": "timeseries" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 16 - }, - "id": 57, - "panels": [ - { - "description": "Split of standard hashrate among defined goals.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "mappings": [] - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 17 - }, - "id": 59, - "options": { - "displayLabels": [ - "name", - "percent" - ], - "legend": { - "displayMode": "list", - "placement": "bottom" - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "100* sum(FP_hash_rate_by_providers{goal!=\"#!!ii-DevFee\"}) by (goal) / ignoring(goal) group_left sum(FP_hash_rate_by_providers{goal!=\"#!!ii-DevFee\"})", - "interval": "", - "legendFormat": "{{goal}}", - "refId": "A" - } - ], - "title": "Split among goals", - "type": "piechart" - }, - { - "description": "Split of standard hashrate among targets (IP addresses behind pool URL).", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "mappings": [], - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 17 - }, - "id": 60, - "options": { - "displayLabels": [ - "percent" - ], - "legend": { - "displayMode": "list", - "placement": "right", - "values": [ - "percent" - ] - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=\"upstream\", status=\"validated\", type=\"standard\"}[5m])) by (server)", - "interval": "", - "legendFormat": "{{server}}", - "refId": "A" - } - ], - "title": "Split among targets", - "type": "piechart" - } - ], - "title": "Hashrate split", - "type": "row" - } - ], - "refresh": "5s", - "schemaVersion": 35, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "current": { - "selected": true, - "text": "standard", - "value": "standard" - }, - "hide": 0, - "includeAll": true, - "label": "Hashrate type", - "multi": false, - "name": "type", - "options": [ - { - "selected": false, - "text": "All", - "value": "$__all" - }, - { - "selected": true, - "text": "standard", - "value": "standard" - }, - { - "selected": false, - "text": "devfee", - "value": "devfee" - } - ], - "query": "standard,devfee", - "queryValue": "", - "skipUrlSync": false, - "type": "custom" - } - ] - }, - "time": { - "from": "now-3h", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Client Dashboard", - "uid": "9R0uBpynk", - "version": 1, - "weekStart": "" -} \ No newline at end of file diff --git a/monitoring/grafana/provisioning/default_dashboards/debug_dashboard.json b/monitoring/grafana/provisioning/default_dashboards/debug_dashboard.json deleted file mode 100644 index 5ad9fc1..0000000 --- a/monitoring/grafana/provisioning/default_dashboards/debug_dashboard.json +++ /dev/null @@ -1,2431 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "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": 1, - "id": 4, - "iteration": 1648104027799, - "links": [], - "liveNow": false, - "panels": [ - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "dateTimeAsIso" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 53, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "value_and_name" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "FP_start_time_ms", - "interval": "", - "legendFormat": "Router start time - {{instance}}:", - "refId": "A" - } - ], - "title": "Router start time", - "type": "stat" - }, - { - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "GHs" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 2, - "options": { - "legend": { - "calcs": [ - "lastNotNull", - "min", - "max" - ], - "displayMode": "table", - "placement": "bottom", - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(rate(FP_shares_total{direction=~\"$direction\",status=~\"$status\", type=~\"$type\"}[5m]) * 4.294967296) by (server, direction, status, type)", - "interval": "", - "legendFormat": "{{server}} {{status}} {{direction}} {{type}} hashrate", - "refId": "A" - } - ], - "title": "Hashrate", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [], - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "dark-red", - "value": null - }, - { - "color": "red", - "value": 0 - }, - { - "color": "green", - "value": 1 - } - ] - }, - "unit": "d" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 12, - "x": 0, - "y": 4 - }, - "id": 43, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "value_and_name" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "FP_remaining_certificate_validity_days", - "format": "time_series", - "instant": false, - "interval": "", - "legendFormat": "instance: {{instance}} ", - "refId": "A" - } - ], - "title": "Certificate validity", - "type": "stat" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 7 - }, - "id": 8, - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "text": { - "titleSize": 13, - "valueSize": 30 - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_connections_by_target{target=~\"$target\"}) + sum(FP_subscription_size_to_target_total{target=~\"$target\"})", - "interval": "", - "legendFormat": "#active connections", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_connections_by_target{goal!=\"#!!ii-DevFee\",target=~\"$target\"})", - "hide": false, - "interval": "", - "legendFormat": "upstream standard open connection", - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_subscription_size_to_target_total{goal!=\"#!!ii-DevFee\",target=~\"$target\"})", - "hide": false, - "interval": "", - "legendFormat": "downstream standard open connection", - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_connections_by_target{goal=\"#!!ii-DevFee\",target=~\"$target\"})", - "hide": false, - "interval": "", - "legendFormat": "upstream devfee open connection", - "refId": "D" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_subscription_size_to_target_total{goal=\"#!!ii-DevFee\",target=~\"$target\"})", - "hide": false, - "interval": "", - "legendFormat": "downstream devfee open connection", - "refId": "E" - } - ], - "title": "Connection", - "type": "gauge" - }, - { - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "submit/s", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 9 - }, - "id": 9, - "options": { - "legend": { - "calcs": [ - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(rate(FP_submits_total{direction=~\"$direction\",status=~\"$status\", type=~\"$type\"}[1m])) by (server, direction, status, type)", - "interval": "", - "legendFormat": "{{server}} {{status}} {{direction}} {{type}} submits", - "refId": "A" - } - ], - "title": "Submission Rate", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 16 - }, - "id": 23, - "options": { - "legend": { - "calcs": [ - "min", - "max", - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "100* sum(FP_shares_total{direction=\"upstream\",server=~\"$target\", type=\"standard\"}) by (server) / ignoring(server) group_left sum(FP_shares_total{direction=\"upstream\", type=\"standard\"})", - "interval": "", - "legendFormat": "standard {{server}}", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "100* sum(FP_shares_total{direction=\"upstream\",server=~\"$target\", type=\"devfee\"}) by (server) / ignoring(server) group_left sum(FP_shares_total{direction=\"upstream\", type=\"devfee\"})", - "hide": false, - "interval": "", - "legendFormat": "devfee {{server}}", - "refId": "B" - } - ], - "title": "Hashrate Split", - "type": "timeseries" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 25 - }, - "id": 41, - "panels": [ - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "THs" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 27 - }, - "id": 15, - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(rate(FP_allocated_hash_rate_by_providers[1m]) * 4.294967296) by (target)", - "interval": "", - "legendFormat": "{{target}}", - "refId": "A" - } - ], - "title": "Allocated HR", - "type": "gauge" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "mappings": [], - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 27 - }, - "id": 22, - "options": { - "displayLabels": [ - "name", - "value" - ], - "legend": { - "displayMode": "list", - "placement": "right", - "values": [ - "percent" - ] - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "100* sum(FP_hash_rate_by_providers{goal!=\"#!!ii-DevFee\"}) by (goal) / ignoring(goal) group_left sum(FP_hash_rate_by_providers{goal!=\"#!!ii-DevFee\"})", - "interval": "", - "legendFormat": "{{goal}}", - "refId": "A" - } - ], - "title": "Hashrate Split", - "type": "piechart" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "THs" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 35 - }, - "id": 17, - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "text": { - "titleSize": 2 - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(rate(FP_hash_rate_by_receivers[1m])* 4.294967296)", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "HashRate from Receivers", - "type": "gauge" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "THs" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 35 - }, - "id": 13, - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(rate(FP_hash_rate_by_providers[1m])* 4.294967296) by (target)", - "interval": "", - "legendFormat": "{{target}}", - "refId": "A" - } - ], - "title": "Measured HR on targets", - "type": "gauge" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "mappings": [], - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 43 - }, - "id": 33, - "options": { - "displayLabels": [ - "name", - "value" - ], - "legend": { - "displayMode": "list", - "placement": "right", - "values": [ - "percent" - ] - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "100* sum(FP_hash_rate_by_providers{goal=\"#!!ii-DevFee\"}) by (goal) / ignoring(goal) group_left sum(FP_hash_rate_by_providers{goal=\"#!!ii-DevFee\"})", - "interval": "", - "legendFormat": "{{goal}}", - "refId": "A" - } - ], - "title": "Hashrate Split - devfee", - "type": "piechart" - } - ], - "title": "HR split - detail", - "type": "row" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 26 - }, - "id": 39, - "panels": [], - "title": "Connection metrics", - "type": "row" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 11, - "w": 24, - "x": 0, - "y": 27 - }, - "id": 31, - "options": { - "legend": { - "calcs": [ - "min", - "max", - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_connections_by_target{target=~\"$target\"}) by (target, goal)", - "interval": "", - "legendFormat": "{{goal}} {{target}}", - "refId": "A" - } - ], - "title": "Connection to upstream", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 38 - }, - "id": 32, - "options": { - "legend": { - "calcs": [ - "min", - "max", - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_subscription_size_to_target_total{goal=\"#!!ii-DevFee\",target=~\"$target\"}) by (goal, target)", - "interval": "", - "legendFormat": "{{goal}} - {{target}}", - "refId": "A" - } - ], - "title": "Subscription by target - devfee", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 38 - }, - "id": 25, - "options": { - "legend": { - "calcs": [ - "min", - "max", - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_subscription_size_to_target_total{goal!=\"#!!ii-DevFee\",target=~\"$target\"}) by (goal, target)", - "interval": "", - "legendFormat": "{{goal}} - {{target}}", - "refId": "A" - } - ], - "title": "Subscription by target", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 46 - }, - "id": 19, - "options": { - "legend": { - "calcs": [ - "min", - "max", - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_mean_latency_s{target=~\"$target\"}) by (target)", - "interval": "", - "legendFormat": "{{target}}", - "refId": "A" - } - ], - "title": "Mean latency", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 46 - }, - "id": 20, - "options": { - "legend": { - "calcs": [ - "min", - "max", - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_std_dev_latency_s{target=~\"$target\"}) by (target)", - "interval": "", - "legendFormat": "{{target}}", - "refId": "A" - } - ], - "title": "Std dev latency", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 54 - }, - "id": 47, - "options": { - "legend": { - "calcs": [ - "min", - "max", - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_rejection_rate{target=~\"$target\"}) by (target)", - "interval": "", - "legendFormat": "{{target}}", - "refId": "A" - } - ], - "title": "Rejection rate", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 54 - }, - "id": 49, - "options": { - "legend": { - "calcs": [ - "min", - "max", - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_error_rate{target=~\"$target\"}) by (target)", - "interval": "", - "legendFormat": "{{target}}", - "refId": "A" - } - ], - "title": "Error rate", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "0": { - "color": "red", - "index": 1, - "text": "Down" - }, - "1": { - "color": "green", - "index": 2, - "text": "Up" - }, - "-1": { - "color": "light-blue", - "index": 0, - "text": "Unknown" - } - }, - "type": "value" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 62 - }, - "id": 51, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_target_status) by (target)", - "interval": "", - "legendFormat": "{{target}}", - "refId": "A" - } - ], - "title": "Target Status", - "type": "stat" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 70 - }, - "id": 11, - "panels": [], - "title": "Router metrics", - "type": "row" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 24, - "x": 0, - "y": 71 - }, - "id": 45, - "options": { - "legend": { - "calcs": [ - "min", - "max", - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_score_by_target{target=~\"$target\"}) by (target)", - "interval": "", - "legendFormat": "{{target}}", - "refId": "A" - } - ], - "title": "Score by target", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 81 - }, - "id": 37, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(rate(FP_upstream_request_timeout_queue[10m])) by (type)", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "Timeout counter v1 upstream", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 81 - }, - "id": 35, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(rate(FP_upstream_request_queue[10m]))", - "interval": "", - "legendFormat": "#request in Upstream queue", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(rate(FP_upstream_request_timeout_queue[10m]))", - "hide": false, - "interval": "", - "legendFormat": "#timeout request in Upstream queue", - "refId": "B" - } - ], - "title": "V1 upstream queue size", - "type": "timeseries" - }, - { - "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": 89 - }, - "id": 29, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_buffers_sizes) by (name)", - "interval": "", - "legendFormat": "{{name}}", - "refId": "A" - } - ], - "title": "Waiting queue monitoring", - "type": "stat" - }, - { - "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": 89 - }, - "id": 27, - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true - }, - "pluginVersion": "8.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(FP_provider_to_remove_size) by (type)", - "interval": "", - "legendFormat": "{{type}}", - "refId": "A" - } - ], - "title": "Providerds to remove", - "type": "gauge" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 97 - }, - "id": 55, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(increase(FP_job_submits_size[10m]))", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "Job submits map size", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 97 - }, - "id": 57, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(increase(FP_job_queue_size[10m]))", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "Job queue size", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 105 - }, - "id": 59, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "exemplar": true, - "expr": "sum(increase(FP_old_jobs[1m])) by (controller)", - "interval": "", - "legendFormat": "{{controller}}", - "refId": "A" - } - ], - "title": "Old jobs detection", - "type": "timeseries" - } - ], - "refresh": "1m", - "schemaVersion": 35, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "definition": "label_values(FP_shares_total, status)", - "hide": 0, - "includeAll": true, - "multi": false, - "name": "status", - "options": [], - "query": { - "query": "label_values(FP_shares_total, status)", - "refId": "StandardVariableQuery" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "type": "query" - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "hide": 0, - "includeAll": true, - "multi": true, - "name": "direction", - "options": [ - { - "selected": true, - "text": "All", - "value": "$__all" - }, - { - "selected": false, - "text": "upstream", - "value": "upstream" - }, - { - "selected": false, - "text": "downstream", - "value": "downstream" - } - ], - "query": "upstream,downstream", - "queryValue": "", - "skipUrlSync": false, - "type": "custom" - }, - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "definition": "label_values(FP_shares_total{direction=\"downstream\"}, server)", - "hide": 0, - "includeAll": true, - "multi": true, - "name": "server", - "options": [], - "query": { - "query": "label_values(FP_shares_total{direction=\"downstream\"}, server)", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "(\\w+).*", - "skipUrlSync": false, - "sort": 0, - "type": "query" - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "hide": 0, - "includeAll": true, - "multi": true, - "name": "type", - "options": [ - { - "selected": true, - "text": "All", - "value": "$__all" - }, - { - "selected": false, - "text": "standard", - "value": "standard" - }, - { - "selected": false, - "text": "devfee", - "value": "devfee" - } - ], - "query": "standard,devfee", - "queryValue": "", - "skipUrlSync": false, - "type": "custom" - }, - { - "current": { - "selected": true, - "text": "All", - "value": "$__all" - }, - "datasource": { - "type": "prometheus", - "uid": "PABF2E7BD7AE7B0F4" - }, - "definition": "label_values(FP_connections_by_target, target)", - "hide": 0, - "includeAll": true, - "multi": false, - "name": "target", - "options": [], - "query": { - "query": "label_values(FP_connections_by_target, target)", - "refId": "StandardVariableQuery" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "type": "query" - } - ] - }, - "time": { - "from": "now-30m", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Debug Dashboard FP", - "uid": "6JZhw2H7z9", - "version": 1, - "weekStart": "" -} diff --git a/monitoring/prometheus/prometheus.yml b/monitoring/prometheus/prometheus.yml index d5ea52a..9a053d7 100644 --- a/monitoring/prometheus/prometheus.yml +++ b/monitoring/prometheus/prometheus.yml @@ -16,3 +16,48 @@ scrape_configs: static_configs: - targets: ["localhost:8080"] + # Automatic discovery job - this is suitable for automatically keeping a list of large + # numbers of miners. See the file supercronic/scan_crontab on how to specify the IP + # ranges to be scanned. Each scanned IP range produces a file. Its name is currently assigned + # to label building dynamically. + - job_name: 'braiinsos-data' + metrics_path: '/metrics' + scrape_interval: 5s + file_sd_configs: + - files: + # read all files written by ssh_scan.sh + - /mnt/miners_*.json + refresh_interval: 15s + relabel_configs: + # Add file name as a label + - source_labels: ["__meta_filepath"] + regex: "\\/mnt\\/miners_(.+?)\\.json.*" + target_label: "building" + # Get rid of port in address + - source_labels: ["__address__"] + regex: "^(.+?):.*" + target_label: "instance" + ################################################################################### + # The following is optional. Useful if you manage your farm by using + # subnets. + # Extract the site ID (second octet of IPv4 address) + - source_labels: ["__address__"] + regex: "\\d+\\.(\\d+)\\.\\d+\\.\\d+.*" + target_label: "site_id" + # Extract the subnet ID (third octet of IPv4 address) + - source_labels: ["__address__"] + regex: "\\d+\\.\\d+\\.(\\d+)\\.\\d+.*" + target_label: "subnet_id" + # Extract the host ID (last octet of IPv4 address) + - source_labels: ["__address__"] + regex: "\\d+\\.\\d+\\.\\d+\\.(\\d+).*" + target_label: "host_id" + metric_relabel_configs: + ################################################################################### + # Some of the detailed metrics are better removed. You can comment out / remove + # the following section, however doing so will greatly increase the size needed to store + # all the data. Make sure you really need these metrics and your storage size is + # appropriate. + - source_labels: [ __name__ ] + regex: 'client_generated_work|client_order|client_start_total|client_stop_total|dangerous_temperature|fan_rpm_feedback|hashboard_power|hashboard_temperature|hot_temperature|chips_discovered|chips_expected|process_cpu_seconds_total|process_max_fds|process_open_fds|process_resident_memory_bytes|process_start_time_seconds|process_threads|process_virtual_memory_bytes|stratum_job_counter|stratum_last_difficulty|stratum_request_duration_bucket|stratum_request_duration_count|stratum_request_duration_sum|tuner_iteration' + action: drop