{ "__inputs": [ { "name": "DS_LOCAL_BYTEBLOWER GUI", "label": "Local ByteBlower GUI", "description": "", "type": "datasource", "pluginId": "prometheus", "pluginName": "Prometheus" } ], "__elements": [], "__requires": [ { "type": "panel", "id": "gauge", "name": "Gauge", "version": "" }, { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "8.5.2" }, { "type": "datasource", "id": "prometheus", "name": "Prometheus", "version": "1.0.0" }, { "type": "panel", "id": "table", "name": "Table", "version": "" }, { "type": "panel", "id": "timeseries", "name": "Time series", "version": "" } ], "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "target": { "limit": 100, "matchAny": false, "tags": [], "type": "dashboard" }, "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": null, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "prometheus", "uid": "${DS_LOCAL_BYTEBLOWER GUI}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "displayMode": "auto", "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "percentunit" }, "overrides": [] }, "gridPos": { "h": 8, "w": 11, "x": 0, "y": 0 }, "id": 4, "options": { "footer": { "enablePagination": true, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": false }, "pluginVersion": "8.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_LOCAL_BYTEBLOWER GUI}" }, "editorMode": "code", "exemplar": false, "expr": "(sum by(flow) (byteblower_gui_traffic_bytes_total{direction=\"tx\"}) - sum by (flow) (byteblower_gui_traffic_bytes_total{direction=\"rx\"})) / sum by(flow) (byteblower_gui_traffic_bytes_total{direction=\"tx\"})", "format": "table", "instant": true, "range": false, "refId": "A" } ], "title": "Traffic Loss percentage", "transformations": [ { "id": "filterFieldsByName", "options": { "include": { "names": [ "flow", "Value" ] } } } ], "type": "table" }, { "datasource": { "type": "prometheus", "uid": "${DS_LOCAL_BYTEBLOWER GUI}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "decbytes" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 11, "y": 0 }, "id": 6, "options": { "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true }, "pluginVersion": "8.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_LOCAL_BYTEBLOWER GUI}" }, "expr": "sum(byteblower_gui_traffic_bytes_total{direction=\"tx\"}) - sum(byteblower_gui_traffic_bytes_total{direction=\"rx\"})", "refId": "A" } ], "title": "Total traffic lost", "type": "gauge" }, { "datasource": { "type": "prometheus", "uid": "${DS_LOCAL_BYTEBLOWER GUI}" }, "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": "decbytes" }, "overrides": [] }, "gridPos": { "h": 8, "w": 23, "x": 0, "y": 8 }, "id": 2, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "8.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_LOCAL_BYTEBLOWER GUI}" }, "editorMode": "code", "expr": "sum by(flow) (byteblower_gui_traffic_bytes_total{direction=\"tx\"}) - sum by (flow) (byteblower_gui_traffic_bytes_total{direction=\"rx\"})", "legendFormat": "{{label_name}}", "range": true, "refId": "A" } ], "title": "Lost traffic", "type": "timeseries" } ], "refresh": "", "schemaVersion": 36, "style": "dark", "tags": [], "templating": { "list": [] }, "time": { "from": "now-6h", "to": "now" }, "timepicker": {}, "timezone": "", "title": "Flow loss counters", "uid": "w9dvjFg4k", "version": 5, "weekStart": "" }