Grafana dashboard: RARE/freeRouter  - Link State IGP peers / reachability & neighbor count summary
Description: Display link state IGP peer reachability and neighbor count metrics


{
  "__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": 16843,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1602514756701,
  "links": [],
  "panels": [
    {
      "datasource": "${DS_PROMETHEUS}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "mappings": [
            {
              "from": "",
              "id": 0,
              "text": "up",
              "to": "",
              "type": 1,
              "value": "0"
            },
            {
              "from": "",
              "id": 1,
              "text": "down",
              "to": "",
              "type": 1,
              "value": "-1"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "#000000",
                "value": null
              },
              {
                "color": "dark-red",
                "value": -1
              },
              {
                "color": "dark-green",
                "value": 0
              },
              {
                "color": "#000000",
                "value": 0.1
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 2,
        "w": 3,
        "x": 0,
        "y": 0
      },
      "id": 2,
      "maxPerRow": 8,
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "center",
        "orientation": "vertical",
        "reduceOptions": {
          "calcs": [
            "last"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "value"
      },
      "pluginVersion": "7.2.0",
      "repeat": "igp_peer",
      "repeatDirection": "h",
      "targets": [
        {
          "expr": "${igp_type}_peers_reachable{instance=\"$instance\",proto=\"$protocol\",node=\"$igp_peer\"}-1",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        },
        {
          "expr": "${igp_type}_peers_neighbors{instance=\"$instance\",proto=\"$protocol\",node=\"$igp_peer\"}",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "B"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "${protocol}:${igp_peer}",
      "transformations": [],
      "type": "stat"
    }
  ],
  "refresh": "5s",
  "schemaVersion": 26,
  "style": "dark",
  "tags": [
    "[scope:global]"
  ],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values({__name__=~\"^lsigp.*\"},instance)",
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "instance",
        "options": [],
        "query": "label_values({__name__=~\"^lsigp.*\"},instance)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {
          "selected": true,
          "text": "lsigp4",
          "value": "lsigp4"
        },
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "igp_type",
        "options": [
          {
            "selected": true,
            "text": "lsigp4",
            "value": "lsigp4"
          },
          {
            "selected": false,
            "text": "lsigp6",
            "value": "lsigp6"
          }
        ],
        "query": "lsigp4,lsigp6",
        "queryValue": "",
        "skipUrlSync": false,
        "type": "custom"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(${igp_type}_peers_neighbors{instance=\"$instance\"},proto)",
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "protocol",
        "options": [],
        "query": "label_values(${igp_type}_peers_neighbors{instance=\"$instance\"},proto)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(${igp_type}_peers_neighbors{instance=\"$instance\"},node)",
        "hide": 0,
        "includeAll": true,
        "label": null,
        "multi": true,
        "name": "igp_peer",
        "options": [],
        "query": "label_values(${igp_type}_peers_neighbors{instance=\"$instance\"},node)",
        "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  - Link State IGP peers / reachability & neighbor count summary",
  "uid": "LGmFlW5Gz",
  "version": 68,
  "description": "Display link state IGP peer reachability and neighbor count metrics"
}