{ "__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": "datasource", "id": "prometheus", "name": "Prometheus", "version": "1.0.0" }, { "type": "panel", "id": "stat", "name": "Stat", "version": "" } ], "annotations": { "list": [ { "builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "description": "Display BMP metrics", "editable": true, "gnetId": 13156, "graphTooltip": 0, "id": null, "iteration": 1602750643800, "links": [], "panels": [ { "datasource": "${DS_MP-LS.PROMETHEUS}", "description": "", "fieldConfig": { "defaults": { "custom": {}, "mappings": [ { "from": "", "id": 0, "text": "up", "to": "", "type": 1, "value": "-1" }, { "from": "", "id": 1, "text": "down", "to": "", "type": 1, "value": "-2" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "black", "value": null }, { "color": "dark-red", "value": -2 }, { "color": "dark-green", "value": -1 }, { "color": "black", "value": 0 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 2, "w": 6, "x": 0, "y": 0 }, "id": 2, "maxPerRow": 12, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "vertical", "reduceOptions": { "calcs": [ "last" ], "fields": "", "values": false }, "textMode": "value" }, "pluginVersion": "7.2.0", "repeat": "remote_peer", "repeatDirection": "h", "targets": [ { "expr": "bmp_state{instance=\"$instance\",from=\"$bmp_agent\",rpeer=\"$remote_peer\"}-2", "instant": true, "interval": "", "legendFormat": "{{met}}", "refId": "A" }, { "expr": "bmp_asn{instance=\"$instance\",from=\"$bmp_agent\",rpeer=\"$remote_peer\"}", "instant": true, "interval": "", "legendFormat": "", "refId": "B" }, { "expr": "bmp_flaps{instance=\"$instance\",from=\"$bmp_agent\",rpeer=\"$remote_peer\"}", "instant": true, "interval": "", "legendFormat": "", "refId": "C" } ], "timeFrom": null, "timeShift": null, "title": "${remote_peer}", "transformations": [], "type": "stat" } ], "schemaVersion": 26, "style": "dark", "tags": [ "[scope:global]" ], "templating": { "list": [ { "allValue": null, "current": {}, "datasource": "${DS_MP-LS.PROMETHEUS}", "definition": "label_values({__name__=~\"bmp_.*\"},instance)", "hide": 0, "includeAll": false, "label": null, "multi": false, "name": "instance", "options": [], "query": "label_values({__name__=~\"bmp_.*\"},instance)", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": {}, "datasource": "${DS_MP-LS.PROMETHEUS}", "definition": "label_values({from=~\".*\",instance=\"$instance\"},from)", "hide": 0, "includeAll": false, "label": null, "multi": false, "name": "bmp_agent", "options": [], "query": "label_values({from=~\".*\",instance=\"$instance\"},from)", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": {}, "datasource": "${DS_MP-LS.PROMETHEUS}", "definition": "bmp_asn{instance=\"$instance\",from=\"$bmp_agent\"}", "hide": 2, "includeAll": true, "label": null, "multi": true, "name": "agent_asn", "options": [], "query": "bmp_asn{instance=\"$instance\",from=\"$bmp_agent\"}", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": {}, "datasource": "${DS_MP-LS.PROMETHEUS}", "definition": "label_values({from=\"$bmp_agent\",instance=\"$instance\"},rpeer)", "hide": 0, "includeAll": true, "label": null, "multi": true, "name": "remote_peer", "options": [], "query": "label_values({from=\"$bmp_agent\",instance=\"$instance\"},rpeer)", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-6h", "to": "now" }, "timepicker": {}, "timezone": "", "title": "RARE/freeRouter - BMP metrics", "uid": "vZWgBhcMks", "version": 2 }