{ "__inputs": [ { "name": "DS_PROMETHEUS", "label": "Prometheus", "description": "prometheus metric collector that receives metric from freeRouter control plane", "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" } ] }, "editable": true, "gnetId": 13159, "graphTooltip": 0, "id": null, "iteration": 1602514693556, "links": [], "panels": [ { "datasource": "${DS_PROMETHEUS}", "fieldConfig": { "defaults": { "custom": { "align": null, "filterable": false }, "mappings": [ { "from": "", "id": 0, "text": "down", "to": "", "type": 1, "value": "0" }, { "from": "", "id": 1, "text": "down", "to": "", "type": 1, "value": "0" }, { "from": "", "id": 2, "text": "init", "to": "", "type": 1, "value": "1" }, { "from": "", "id": 3, "text": "shutdown", "to": "", "type": 1, "value": "-1" }, { "from": "", "id": 4, "text": "up", "to": "", "type": 1, "value": "2" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "black", "value": null }, { "color": "black", "value": -1 }, { "color": "dark-red", "value": -0.1 }, { "color": "dark-yellow", "value": 1 }, { "color": "dark-green", "value": 1.1 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Field" }, "properties": [ { "id": "custom.width", "value": 314 } ] } ] }, "gridPos": { "h": 2, "w": 3.4285714285714284, "x": 0, "y": 0 }, "id": 2, "maxPerRow": 8, "options": { "colorMode": "background", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "last" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "7.2.0", "repeat": "bfd_peer", "repeatDirection": "h", "targets": [ { "expr": "bfd${afi}_state{instance=\"$instance\",ip=\"$bfd_peer\"}", "instant": true, "interval": "", "legendFormat": "", "refId": "A" } ], "timeFrom": null, "timeShift": null, "title": "${bfd_peer}", "transformations": [], "type": "stat" } ], "schemaVersion": 26, "style": "dark", "tags": [ "[scope:local]" ], "templating": { "list": [ { "allValue": null, "current": {}, "datasource": "${DS_PROMETHEUS}", "definition": "label_values({__name__=~\"^bfd.*\"},instance)", "hide": 0, "includeAll": false, "label": null, "multi": false, "name": "instance", "options": [], "query": "label_values({__name__=~\"^bfd.*\"},instance)", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": { "selected": true, "text": "6", "value": "6" }, "hide": 0, "includeAll": false, "label": null, "multi": false, "name": "afi", "options": [ { "selected": true, "text": "4", "value": "4" }, { "selected": false, "text": "6", "value": "6" } ], "query": "4,6", "queryValue": "", "skipUrlSync": false, "type": "custom" }, { "allValue": null, "current": {}, "datasource": "${DS_PROMETHEUS}", "definition": "label_values(bfd${afi}_state{instance=\"$instance\"},ip)", "hide": 0, "includeAll": true, "label": null, "multi": true, "name": "bfd_peer", "options": [], "query": "label_values(bfd${afi}_state{instance=\"$instance\"},ip)", "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 - BFD states", "uid": "AoN8AMcGza", "version": 38, "description": "Display BFP state metrics" }