{ "__inputs": [ { "name": "DS_MP-LS.PROMETHEUS", "label": "mp-ls.prometheus", "description": "", "type": "datasource", "pluginId": "prometheus", "pluginName": "Prometheus" } ], "__requires": [ { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "7.2.0" }, { "type": "panel", "id": "graph", "name": "Graph", "version": "" }, { "type": "datasource", "id": "prometheus", "name": "Prometheus", "version": "1.0.0" } ], "annotations": { "list": [ { "builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "description": "Display interface packet metrics", "editable": true, "gnetId": 13152, "graphTooltip": 0, "id": null, "iteration": 1602766731244, "links": [], "panels": [ { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "${DS_MP-LS.PROMETHEUS}", "fieldConfig": { "defaults": { "custom": {}, "links": [], "unit": "pps" }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 9, "w": 8, "x": 0, "y": 0 }, "hiddenSeries": false, "id": 2, "legend": { "alignAsTable": true, "avg": false, "current": true, "max": true, "min": true, "rightSide": false, "show": true, "total": false, "values": true }, "lines": true, "linewidth": 1, "maxPerRow": 3, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.2.0", "pointradius": 2, "points": false, "renderer": "flot", "repeat": "instance_iface", "repeatDirection": "h", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "rate(iface_${cntr_type}_pack_tx{ifc=\"$instance_iface\",instance=\"$instance\"}[1m])", "interval": "", "legendFormat": "tx", "refId": "A" }, { "expr": "rate(iface_${cntr_type}_pack_rx{ifc=\"$instance_iface\",instance=\"$instance\"}[1m])", "interval": "", "legendFormat": "rx", "refId": "B" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "${cntr_type}:${instance_iface}", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "pps", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } } ], "refresh": "5s", "schemaVersion": 26, "style": "dark", "tags": [ "[scope:local]" ], "templating": { "list": [ { "allValue": null, "current": {}, "datasource": "${DS_MP-LS.PROMETHEUS}", "definition": "label_values({__name__=~\"^iface_.*\"},instance)", "hide": 0, "includeAll": false, "label": null, "multi": false, "name": "instance", "options": [], "query": "label_values({__name__=~\"^iface_.*\"},instance)", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": { "selected": true, "text": "hw", "value": "hw" }, "hide": 0, "includeAll": false, "label": "", "multi": false, "name": "cntr_type", "options": [ { "selected": true, "text": "hw", "value": "hw" }, { "selected": false, "text": "sw", "value": "sw" } ], "query": "hw,sw", "queryValue": "", "skipUrlSync": false, "type": "custom" }, { "allValue": null, "current": { "selected": false, "text": "tx", "value": "tx" }, "hide": 2, "includeAll": false, "label": null, "multi": false, "name": "dir", "options": [ { "selected": true, "text": "tx", "value": "tx" }, { "selected": false, "text": "rx", "value": "rx" } ], "query": "tx,rx", "queryValue": "", "skipUrlSync": false, "type": "custom" }, { "allValue": null, "current": {}, "datasource": "${DS_MP-LS.PROMETHEUS}", "definition": "label_values(iface_${cntr_type}_pack_${dir}{instance=\"$instance\"},ifc)", "hide": 0, "includeAll": true, "label": null, "multi": true, "name": "instance_iface", "options": [], "query": "label_values(iface_${cntr_type}_pack_${dir}{instance=\"$instance\"},ifc)", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-30m", "to": "now" }, "timepicker": { "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ] }, "timezone": "", "title": "RARE/freeRouter - interfaces packets", "uid": "sqqgkzcee", "version": 2 }