{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "datasource",
          "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": [
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 10,
      "panels": [],
      "title": "Applications",
      "type": "row"
    },
    {
      "datasource": {
        "uid": "${flowds}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "Bps"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/\\(In/"
            },
            "properties": [
              {
                "id": "custom.stacking",
                "value": {
                  "group": "A",
                  "mode": "normal"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/\\(Out/"
            },
            "properties": [
              {
                "id": "custom.stacking",
                "value": {
                  "group": "B",
                  "mode": "normal"
                }
              },
              {
                "id": "custom.transform",
                "value": "negative-Y"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 16,
        "x": 0,
        "y": 1
      },
      "id": 12,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "9.4.7",
      "targets": [
        {
          "datasource": {
            "uid": "${flowds}"
          },
          "exemplar": true,
          "expr": "sum by (application) (sum_over_time(BY_TOS_AND_APP_${node}_${interface}{dscp=~\"$dscp\", direction=\"in\"}[30s])) / 30 and ignoring (direction) topk($topk, sum by (application) (sum_over_time (BY_TOS_AND_APP_${node}_${interface}{dscp=~\"$dscp\"}[$__range] @ end())))",
          "hide": false,
          "interval": "",
          "legendFormat": "{{application}} (In)",
          "refId": "A"
        },
        {
          "datasource": {
            "uid": "${flowds}"
          },
          "exemplar": true,
          "expr": "sum by (application) (sum_over_time(BY_TOS_AND_APP_${node}_${interface}{dscp=~\"$dscp\", direction=\"out\"}[30s])) / 30 and ignoring (direction) topk($topk, sum by (application) (sum_over_time (BY_TOS_AND_APP_${node}_${interface}{dscp=~\"$dscp\"}[$__range] @ end())))",
          "hide": false,
          "interval": "",
          "legendFormat": "{{application}} (Out)",
          "refId": "B"
        },
        {
          "datasource": {
            "uid": "${flowds}"
          },
          "exemplar": true,
          "expr": "(sum by () (sum_over_time(EXPORTER_INTERFACE_TOS{nodeId=\"$node\", ifIndex=\"$interface\", dscp=~\"$dscp\", direction=\"in\"}[30s])) / 30) - sum by () (sum by (application) (sum_over_time(BY_TOS_AND_APP_${node}_${interface}{dscp=~\"$dscp\", direction=\"in\"}[30s])) / 30 and ignoring (direction) topk($topk, sum by (application) (sum_over_time (BY_TOS_AND_APP_${node}_${interface}{dscp=~\"$dscp\"}[$__range] @ end()))))",
          "hide": false,
          "interval": "",
          "legendFormat": "Other (In)",
          "refId": "C"
        },
        {
          "datasource": {
            "uid": "${flowds}"
          },
          "exemplar": true,
          "expr": "(sum by () (sum_over_time(EXPORTER_INTERFACE_TOS{nodeId=\"$node\", ifIndex=\"$interface\", dscp=~\"$dscp\", direction=\"out\"}[30s])) / 30) - sum by () (sum by (application) (sum_over_time(BY_TOS_AND_APP_${node}_${interface}{dscp=~\"$dscp\", direction=\"out\"}[30s])) / 30 and ignoring (direction) topk($topk, sum by (application) (sum_over_time (BY_TOS_AND_APP_${node}_${interface}{dscp=~\"$dscp\"}[$__range] @ end()))))",
          "hide": false,
          "interval": "",
          "legendFormat": "Other (Out)",
          "refId": "D"
        }
      ],
      "title": "Throughput by Application (TopK)",
      "type": "timeseries"
    },
    {
      "datasource": {
        "uid": "${flowds}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "cellOptions": {
              "type": "auto"
            },
            "filterable": false,
            "inspect": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "hiddenSort"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": -1
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "application"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 105
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "(In|Out)"
            },
            "properties": [
              {
                "id": "unit",
                "value": "decbytes"
              },
              {
                "id": "decimals",
                "value": 2
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 8,
        "x": 16,
        "y": 1
      },
      "id": 14,
      "options": {
        "footer": {
          "countRows": false,
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "9.4.7",
      "targets": [
        {
          "datasource": {
            "uid": "${flowds}"
          },
          "exemplar": true,
          "expr": "sort_desc(topk($topk, sum by (application) (sum_over_time (BY_TOS_AND_APP_${node}_${interface}{dscp=~\"$dscp\"}[$__range])))) or label_replace(vector(0), \"application\", \"Other\", \"none\", \".*\")",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        },
        {
          "datasource": {
            "uid": "${flowds}"
          },
          "exemplar": true,
          "expr": "sum by (application) (sum_over_time(BY_TOS_AND_APP_${node}_${interface}{dscp=~\"$dscp\", direction=\"in\"}[$__range])) and ignoring (direction) topk($topk, sum by (application) (sum_over_time (BY_TOS_AND_APP_${node}_${interface}{dscp=~\"$dscp\"}[$__range]))) or label_replace(sum by () (sum_over_time(EXPORTER_INTERFACE_TOS{nodeId=\"$node\", ifIndex=\"$interface\", dscp=~\"$dscp\", direction=\"in\"}[$__range])) - sum by () (sum by (application) (sum_over_time (BY_TOS_AND_APP_${node}_${interface}{dscp=~\"$dscp\",direction=\"in\"}[$__range])) and ignoring (direction) topk($topk, sum by (application) (sum_over_time (BY_TOS_AND_APP_${node}_${interface}{dscp=~\"$dscp\"}[$__range])))), \"application\", \"Other\", \"none\", \".*\")",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "B"
        },
        {
          "datasource": {
            "uid": "${flowds}"
          },
          "exemplar": true,
          "expr": "sum by (application) (sum_over_time(BY_TOS_AND_APP_${node}_${interface}{dscp=~\"$dscp\", direction=\"out\"}[$__range])) and ignoring (direction) topk($topk, sum by (application) (sum_over_time (BY_TOS_AND_APP_${node}_${interface}{dscp=~\"$dscp\"}[$__range]))) or label_replace(sum by () (sum_over_time(EXPORTER_INTERFACE_TOS{nodeId=\"$node\", ifIndex=\"$interface\", dscp=~\"$dscp\", direction=\"out\"}[$__range])) - sum by () (sum by (application) (sum_over_time (BY_TOS_AND_APP_${node}_${interface}{dscp=~\"$dscp\",direction=\"out\"}[$__range])) and ignoring (direction) topk($topk, sum by (application) (sum_over_time (BY_TOS_AND_APP_${node}_${interface}{dscp=~\"$dscp\"}[$__range])))), \"application\", \"Other\", \"none\", \".*\")",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "C"
        }
      ],
      "title": "Data Usage by Application",
      "transformations": [
        {
          "id": "seriesToColumns",
          "options": {
            "byField": "application"
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Time 1": true,
              "Time 2": true,
              "Time 3": true
            },
            "indexByName": {
              "Time 1": 1,
              "Time 2": 2,
              "Time 3": 4,
              "Value #A": 6,
              "Value #B": 3,
              "Value #C": 5,
              "application": 0
            },
            "renameByName": {
              "Value #A": "hiddenSort",
              "Value #B": "In",
              "Value #C": "Out"
            }
          }
        },
        {
          "id": "sortBy",
          "options": {
            "fields": {},
            "sort": [
              {
                "desc": true,
                "field": "hiddenSort"
              }
            ]
          }
        }
      ],
      "type": "table"
    },
    {
      "collapsed": true,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 9
      },
      "id": 16,
      "panels": [
        {
          "datasource": {
            "uid": "${flowds}"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisCenteredZero": false,
                "axisColorMode": "text",
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 10,
                "gradientMode": "none",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "Bps"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byRegexp",
                  "options": "/\\(In/"
                },
                "properties": [
                  {
                    "id": "custom.stacking",
                    "value": {
                      "group": "A",
                      "mode": "normal"
                    }
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byRegexp",
                  "options": "/\\(Out/"
                },
                "properties": [
                  {
                    "id": "custom.stacking",
                    "value": {
                      "group": "B",
                      "mode": "normal"
                    }
                  },
                  {
                    "id": "custom.transform",
                    "value": "negative-Y"
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 8,
            "w": 16,
            "x": 0,
            "y": 10
          },
          "id": 18,
          "options": {
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom",
              "showLegend": true
            },
            "tooltip": {
              "mode": "multi",
              "sort": "none"
            }
          },
          "pluginVersion": "9.4.7",
          "targets": [
            {
              "datasource": {
                "uid": "${flowds}"
              },
              "exemplar": true,
              "expr": "sum by (host) (sum_over_time(BY_TOS_AND_HOST_${node}_${interface}{dscp=~\"$dscp\", direction=\"in\"}[30s])) / 30 and ignoring (direction) topk($topk, sum by (host) (sum_over_time (BY_TOS_AND_HOST_${node}_${interface}{dscp=~\"$dscp\"}[$__range] @ end())))",
              "hide": false,
              "interval": "",
              "legendFormat": "{{host}} (In)",
              "refId": "A"
            },
            {
              "datasource": {
                "uid": "${flowds}"
              },
              "exemplar": true,
              "expr": "sum by (host) (sum_over_time(BY_TOS_AND_HOST_${node}_${interface}{dscp=~\"$dscp\", direction=\"out\"}[30s])) / 30 and ignoring (direction) topk($topk, sum by (host) (sum_over_time (BY_TOS_AND_HOST_${node}_${interface}{dscp=~\"$dscp\"}[$__range] @ end())))",
              "hide": false,
              "interval": "",
              "legendFormat": "{{host}} (Out)",
              "refId": "B"
            },
            {
              "datasource": {
                "uid": "${flowds}"
              },
              "exemplar": true,
              "expr": "(sum by () (sum_over_time(EXPORTER_INTERFACE_TOS{nodeId=\"$node\", ifIndex=\"$interface\", dscp=~\"$dscp\", direction=\"in\"}[30s])) / 30) - sum by () (sum by (host) (sum_over_time(BY_TOS_AND_HOST_${node}_${interface}{dscp=~\"$dscp\", direction=\"in\"}[30s])) / 30 and ignoring (direction) topk($topk, sum by (host) (sum_over_time (BY_TOS_AND_HOST_${node}_${interface}{dscp=~\"$dscp\"}[$__range] @ end()))))",
              "hide": false,
              "interval": "",
              "legendFormat": "Other (In)",
              "refId": "C"
            },
            {
              "datasource": {
                "uid": "${flowds}"
              },
              "exemplar": true,
              "expr": "(sum by () (sum_over_time(EXPORTER_INTERFACE_TOS{nodeId=\"$node\", ifIndex=\"$interface\", dscp=~\"$dscp\", direction=\"out\"}[30s])) / 30) - sum by () (sum by (host) (sum_over_time(BY_TOS_AND_HOST_${node}_${interface}{dscp=~\"$dscp\", direction=\"out\"}[30s])) / 30 and ignoring (direction) topk($topk, sum by (host) (sum_over_time (BY_TOS_AND_HOST_${node}_${interface}{dscp=~\"$dscp\"}[$__range] @ end()))))",
              "hide": false,
              "interval": "",
              "legendFormat": "Other (Out)",
              "refId": "D"
            }
          ],
          "title": "Throughput by Host (TopK)",
          "type": "timeseries"
        },
        {
          "datasource": {
            "uid": "${flowds}"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "custom": {
                "cellOptions": {
                  "type": "auto"
                },
                "filterable": false,
                "inspect": false
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              }
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byName",
                  "options": "hiddenSort"
                },
                "properties": [
                  {
                    "id": "custom.width",
                    "value": -1
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "application"
                },
                "properties": [
                  {
                    "id": "custom.width",
                    "value": 105
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byRegexp",
                  "options": "(In|Out)"
                },
                "properties": [
                  {
                    "id": "unit",
                    "value": "decbytes"
                  },
                  {
                    "id": "decimals",
                    "value": 2
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 8,
            "w": 8,
            "x": 16,
            "y": 10
          },
          "id": 20,
          "options": {
            "footer": {
              "countRows": false,
              "fields": "",
              "reducer": [
                "sum"
              ],
              "show": false
            },
            "showHeader": true,
            "sortBy": []
          },
          "pluginVersion": "9.4.7",
          "targets": [
            {
              "datasource": {
                "uid": "${flowds}"
              },
              "exemplar": true,
              "expr": "sort_desc(topk($topk, sum by (host) (sum_over_time (BY_TOS_AND_HOST_${node}_${interface}{dscp=~\"$dscp\"}[$__range]))) ) or label_replace(vector(0), \"host\", \"Other\", \"none\", \".*\")",
              "format": "table",
              "hide": false,
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            },
            {
              "datasource": {
                "uid": "${flowds}"
              },
              "exemplar": true,
              "expr": "sum by (host) (sum_over_time(BY_TOS_AND_HOST_${node}_${interface}{dscp=~\"$dscp\", direction=\"in\"}[$__range])) and ignoring (direction) topk($topk, sum by (host) (sum_over_time (BY_TOS_AND_HOST_${node}_${interface}{dscp=~\"$dscp\"}[$__range]))) or label_replace(2 * sum by () (sum_over_time(EXPORTER_INTERFACE_TOS{nodeId=\"$node\", ifIndex=\"$interface\", dscp=~\"$dscp\", direction=\"in\"}[$__range])) - (sum by () (sum by (host) (sum_over_time (BY_TOS_AND_HOST_${node}_${interface}{dscp=~\"$dscp\", direction=\"in\"}[$__range])) and ignoring (direction) topk($topk, sum by (host) (sum_over_time (BY_TOS_AND_HOST_${node}_${interface}{dscp=~\"$dscp\"}[$__range]))) or vector(0))), \"host\", \"Other\", \"none\", \".*\")",
              "format": "table",
              "hide": false,
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "B"
            },
            {
              "datasource": {
                "uid": "${flowds}"
              },
              "exemplar": true,
              "expr": "sum by (host) (sum_over_time(BY_TOS_AND_HOST_${node}_${interface}{dscp=~\"$dscp\", direction=\"out\"}[$__range])) and ignoring (direction) topk($topk, sum by (host) (sum_over_time (BY_TOS_AND_HOST_${node}_${interface}{dscp=~\"$dscp\"}[$__range]))) or label_replace(2 * sum by () (sum_over_time(EXPORTER_INTERFACE_TOS{nodeId=\"$node\", ifIndex=\"$interface\", dscp=~\"$dscp\", direction=\"out\"}[$__range])) - (sum by () (sum by (host) (sum_over_time (BY_TOS_AND_HOST_${node}_${interface}{dscp=~\"$dscp\", direction=\"out\"}[$__range])) and ignoring (direction) topk($topk, sum by (host) (sum_over_time (BY_TOS_AND_HOST_${node}_${interface}{dscp=~\"$dscp\"}[$__range]))) or vector(0))), \"host\", \"Other\", \"none\", \".*\")",
              "format": "table",
              "hide": false,
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "C"
            }
          ],
          "title": "Data Usage by Host",
          "transformations": [
            {
              "id": "seriesToColumns",
              "options": {
                "byField": "host"
              }
            },
            {
              "id": "organize",
              "options": {
                "excludeByName": {
                  "Time 1": true,
                  "Time 2": true,
                  "Time 3": true
                },
                "indexByName": {
                  "Time 1": 3,
                  "Time 2": 4,
                  "Time 3": 5,
                  "Value #A": 6,
                  "Value #B": 1,
                  "Value #C": 2,
                  "host": 0
                },
                "renameByName": {
                  "Value #A": "hiddenSort",
                  "Value #B": "In",
                  "Value #C": "Out"
                }
              }
            },
            {
              "id": "sortBy",
              "options": {
                "fields": {},
                "sort": [
                  {
                    "desc": true,
                    "field": "hiddenSort"
                  }
                ]
              }
            }
          ],
          "type": "table"
        }
      ],
      "title": "Hosts",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 10
      },
      "id": 8,
      "panels": [
        {
          "datasource": {
            "uid": "${flowds}"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisCenteredZero": false,
                "axisColorMode": "text",
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 10,
                "gradientMode": "none",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "Bps"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byRegexp",
                  "options": "/In/"
                },
                "properties": [
                  {
                    "id": "custom.stacking",
                    "value": {
                      "group": "A",
                      "mode": "normal"
                    }
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byRegexp",
                  "options": "/Out/"
                },
                "properties": [
                  {
                    "id": "custom.stacking",
                    "value": {
                      "group": "B",
                      "mode": "normal"
                    }
                  },
                  {
                    "id": "custom.transform",
                    "value": "negative-Y"
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 11,
            "w": 16,
            "x": 0,
            "y": 11
          },
          "id": 2,
          "options": {
            "legend": {
              "calcs": [
                "mean",
                "max",
                "min"
              ],
              "displayMode": "table",
              "placement": "bottom",
              "showLegend": true
            },
            "tooltip": {
              "mode": "multi",
              "sort": "none"
            }
          },
          "pluginVersion": "9.4.7",
          "targets": [
            {
              "datasource": {
                "uid": "${flowds}"
              },
              "exemplar": true,
              "expr": "sum by (dscp) (sum_over_time(EXPORTER_INTERFACE_TOS{nodeId=\"$node\", ifIndex=\"$interface\", dscp=~\"$dscp\", direction=\"in\"}[30s])) / 30",
              "interval": "",
              "legendFormat": "{{dscp}} (In)",
              "refId": "A"
            },
            {
              "datasource": {
                "uid": "${flowds}"
              },
              "exemplar": true,
              "expr": "sum by (dscp) (sum_over_time(EXPORTER_INTERFACE_TOS{nodeId=\"$node\", ifIndex=\"$interface\", dscp=~\"$dscp\", direction=\"out\"}[30s])) / 30",
              "hide": false,
              "interval": "",
              "legendFormat": "{{dscp}} (Out)",
              "refId": "B"
            }
          ],
          "title": "Throughput by DSCP",
          "type": "timeseries"
        },
        {
          "datasource": {
            "uid": "${flowds}"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "custom": {
                "cellOptions": {
                  "type": "auto"
                },
                "filterable": false,
                "inspect": false
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              }
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byRegexp",
                  "options": "(In|Out)"
                },
                "properties": [
                  {
                    "id": "unit",
                    "value": "decbytes"
                  },
                  {
                    "id": "decimals",
                    "value": 2
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "DSCP"
                },
                "properties": [
                  {
                    "id": "custom.width",
                    "value": 81
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "DSCP"
                },
                "properties": [
                  {
                    "id": "unit",
                    "value": "short"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "hiddenSort"
                },
                "properties": [
                  {
                    "id": "custom.width",
                    "value": -1
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 11,
            "w": 8,
            "x": 16,
            "y": 11
          },
          "id": 6,
          "options": {
            "footer": {
              "countRows": false,
              "fields": "",
              "reducer": [
                "sum"
              ],
              "show": false
            },
            "showHeader": true,
            "sortBy": []
          },
          "pluginVersion": "9.4.7",
          "targets": [
            {
              "datasource": {
                "uid": "${flowds}"
              },
              "exemplar": true,
              "expr": "sort_desc(sum by (dscp) (sum_over_time(EXPORTER_INTERFACE_TOS{nodeId=\"$node\", ifIndex=\"$interface\", dscp=~\"$dscp\"}[$__range])))",
              "format": "table",
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            },
            {
              "datasource": {
                "uid": "${flowds}"
              },
              "exemplar": true,
              "expr": "sum by (dscp) (sum_over_time(EXPORTER_INTERFACE_TOS{nodeId=\"$node\", ifIndex=\"$interface\", dscp=~\"$dscp\", direction=\"in\"}[$__range]))",
              "format": "table",
              "hide": false,
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "B"
            },
            {
              "datasource": {
                "uid": "${flowds}"
              },
              "exemplar": true,
              "expr": "sum by (dscp) (sum_over_time(EXPORTER_INTERFACE_TOS{nodeId=\"$node\", ifIndex=\"$interface\", dscp=~\"$dscp\", direction=\"out\"}[$__range]))",
              "format": "table",
              "hide": false,
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "C"
            }
          ],
          "title": "Data Usage by DSCP",
          "transformations": [
            {
              "id": "seriesToColumns",
              "options": {
                "byField": "dscp"
              }
            },
            {
              "id": "organize",
              "options": {
                "excludeByName": {
                  "Time 1": true,
                  "Time 2": true,
                  "Time 3": true,
                  "Value #A": false
                },
                "indexByName": {
                  "Time 1": 1,
                  "Time 2": 2,
                  "Time 3": 4,
                  "Value #A": 6,
                  "Value #B": 3,
                  "Value #C": 5,
                  "dscp": 0
                },
                "renameByName": {
                  "Value #A": "hiddenSort",
                  "Value #B": "In",
                  "Value #C": "Out",
                  "dscp": "DSCP"
                }
              }
            },
            {
              "id": "sortBy",
              "options": {
                "fields": {},
                "sort": [
                  {
                    "desc": true,
                    "field": "hiddenSort"
                  }
                ]
              }
            }
          ],
          "type": "table"
        }
      ],
      "title": "DSCPs",
      "type": "row"
    }
  ],
  "refresh": "",
  "revision": 1,
  "schemaVersion": 38,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "selected": false,
          "text": "Prometheus",
          "value": "Prometheus"
        },
        "hide": 0,
        "includeAll": false,
        "label": "FlowDataSource",
        "multi": false,
        "name": "flowds",
        "options": [],
        "query": "prometheus",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "type": "datasource"
      },
      {
        "current": {
          "selected": false,
          "text": "2",
          "value": "2"
        },
        "datasource": {
          "uid": "${flowds}"
        },
        "definition": "query_result(sum by (nodeId) (min_over_time(EXPORTER_INTERFACE[$__range])))",
        "hide": 0,
        "includeAll": false,
        "label": "Node",
        "multi": false,
        "name": "node",
        "options": [],
        "query": {
          "query": "query_result(sum by (nodeId) (min_over_time(EXPORTER_INTERFACE[$__range])))",
          "refId": "StandardVariableQuery"
        },
        "refresh": 2,
        "regex": "/\"([^\"]+)\"/",
        "skipUrlSync": false,
        "sort": 3,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "current": {
          "selected": false,
          "text": "3",
          "value": "3"
        },
        "datasource": {
          "uid": "${flowds}"
        },
        "definition": "query_result(sum by (ifIndex) (min_over_time(EXPORTER_INTERFACE{nodeId=\"${node}\"}[$__range])))",
        "hide": 0,
        "includeAll": false,
        "label": "Interface",
        "multi": false,
        "name": "interface",
        "options": [],
        "query": {
          "query": "query_result(sum by (ifIndex) (min_over_time(EXPORTER_INTERFACE{nodeId=\"${node}\"}[$__range])))",
          "refId": "StandardVariableQuery"
        },
        "refresh": 2,
        "regex": "/\"([^\"]+)\"/",
        "skipUrlSync": false,
        "sort": 3,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "current": {
          "selected": true,
          "text": [
            "All"
          ],
          "value": [
            "$__all"
          ]
        },
        "datasource": {
          "uid": "${flowds}"
        },
        "definition": "query_result(sum by (dscp) (min_over_time(EXPORTER_INTERFACE_TOS{nodeId=\"${node}\", ifIndex=\"${interface}\"}[$__range])))",
        "hide": 0,
        "includeAll": true,
        "label": "DSCP",
        "multi": true,
        "name": "dscp",
        "options": [],
        "query": {
          "query": "query_result(sum by (dscp) (min_over_time(EXPORTER_INTERFACE_TOS{nodeId=\"${node}\", ifIndex=\"${interface}\"}[$__range])))",
          "refId": "StandardVariableQuery"
        },
        "refresh": 2,
        "regex": "/\"([^\"]+)\"/",
        "skipUrlSync": false,
        "sort": 3,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "current": {
          "selected": true,
          "text": "10",
          "value": "10"
        },
        "hide": 0,
        "includeAll": false,
        "label": "TopK",
        "multi": false,
        "name": "topk",
        "options": [
          {
            "selected": false,
            "text": "3",
            "value": "3"
          },
          {
            "selected": false,
            "text": "5",
            "value": "5"
          },
          {
            "selected": true,
            "text": "10",
            "value": "10"
          },
          {
            "selected": false,
            "text": "15",
            "value": "15"
          },
          {
            "selected": false,
            "text": "20",
            "value": "20"
          }
        ],
        "query": "3,5,10,15,20",
        "queryValue": "",
        "skipUrlSync": false,
        "type": "custom"
      }
    ]
  },
  "time": {
    "from": "now-1h",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Cortex Flow Deep Dive | OpenNMS Plugin for Grafana",
  "version": 42,
  "weekStart": ""
}
