Grafana dashboard: FastNetMon / Traffic Per Outgoing Interface
Description: Per upstream/IX dashboard which uses Traffic Persistency in FastNetMon Advanced

FastNetMon Per Interface Advanced Traffic

{
  "__inputs": [
    {
      "name": "DS_CLICKHOUSE",
      "label": "ClickHouse",
      "description": "",
      "type": "datasource",
      "pluginId": "vertamedia-clickhouse-datasource",
      "pluginName": "ClickHouse"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "7.3.7"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "vertamedia-clickhouse-datasource",
      "name": "ClickHouse",
      "version": "2.1.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "Per upstream/IX dashboard which uses Traffic Persistency in FastNetMon Advanced",
  "editable": true,
  "gnetId": 14083,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1615980042070,
  "links": [],
  "panels": [
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_CLICKHOUSE}",
      "decimals": null,
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 20,
        "w": 18,
        "x": 0,
        "y": 0
      },
      "hiddenSeries": false,
      "id": 4,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": false,
        "hideEmpty": true,
        "hideZero": true,
        "max": true,
        "min": false,
        "rightSide": true,
        "show": true,
        "sort": "avg",
        "sortDesc": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null as zero",
      "options": {
        "alertThreshold": false
      },
      "percentage": true,
      "pluginVersion": "7.3.7",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": true,
      "steppedLine": false,
      "targets": [
        {
          "database": "fastnetmon",
          "dateColDataType": "",
          "dateLoading": false,
          "dateTimeColDataType": "packetDateTime",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "extrapolate": true,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "hide": false,
          "interval": "",
          "intervalFactor": 1,
          "query": "SELECT\n    (intDiv(toUInt32(packetDateTime), ($to - $from) / 100 AS discret ) * discret) * 1000 AS t,\n    srcAsn,\n    if(((sum(length * sampleRatio * 8) / discret) as rate) > 1, rate, null) as Rate\nFROM $table\n\nWHERE\n    $timeFilter\n    AND outputInterface = $snmpindex\nGROUP BY\n    t,\n    srcAsn\nORDER BY t\n",
          "rawQuery": "SELECT\n    (intDiv(toUInt32(packetDateTime), (1610822660 - 1610820860) / 100 AS discret ) * discret) * 1000 AS t,\n    srcAsn,\n    if(((sum(length * sampleRatio * 8) / discret) as rate) > 1, rate, null) as Rate\nFROM fastnetmon.traffic\n\nWHERE\n    packetDateTime >= toDateTime(1610820860)\n    AND outputInterface = 1011\nGROUP BY\n    t,\n    srcAsn\nORDER BY t",
          "refId": "A",
          "round": "0s",
          "skip_comments": false,
          "table": "traffic",
          "tableLoading": false
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Traffic rate",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "transformations": [],
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:345",
          "decimals": null,
          "format": "bps",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "$$hashKey": "object:346",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": true,
        "alignLevel": 0
      }
    }
  ],
  "refresh": false,
  "schemaVersion": 26,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {
          "selected": true,
          "text": "1011",
          "value": "1011"
        },
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": "Interface Index",
        "multi": false,
        "name": "snmpindex",
        "options": [
          {
            "selected": false,
            "text": "1090",
            "value": "1090"
          },
          {
            "selected": false,
            "text": "715",
            "value": "715"
          },
          {
            "selected": true,
            "text": "1011",
            "value": "1011"
          },
          {
            "selected": false,
            "text": "1030",
            "value": "1030"
          },
          {
            "selected": false,
            "text": "1049",
            "value": "1049"
          },
          {
            "selected": false,
            "text": "1054",
            "value": "1054"
          },
          {
            "selected": false,
            "text": "1057",
            "value": "1057"
          },
          {
            "selected": false,
            "text": "1058",
            "value": "1058"
          },
          {
            "selected": false,
            "text": "1064",
            "value": "1064"
          },
          {
            "selected": false,
            "text": "1065",
            "value": "1065"
          },
          {
            "selected": false,
            "text": "1066",
            "value": "1066"
          },
          {
            "selected": false,
            "text": "1067",
            "value": "1067"
          },
          {
            "selected": false,
            "text": "1091",
            "value": "1091"
          },
          {
            "selected": false,
            "text": "1097",
            "value": "1097"
          },
          {
            "selected": false,
            "text": "1099",
            "value": "1099"
          },
          {
            "selected": false,
            "text": "1100",
            "value": "1100"
          },
          {
            "selected": false,
            "text": "1101",
            "value": "1101"
          },
          {
            "selected": false,
            "text": "1105",
            "value": "1105"
          },
          {
            "selected": false,
            "text": "1109",
            "value": "1109"
          },
          {
            "selected": false,
            "text": "1113",
            "value": "1113"
          },
          {
            "selected": false,
            "text": "1600",
            "value": "1600"
          },
          {
            "selected": false,
            "text": "4672",
            "value": "4672"
          },
          {
            "selected": false,
            "text": "4675",
            "value": "4675"
          },
          {
            "selected": false,
            "text": "987",
            "value": "987"
          }
        ],
        "query": "1090,715,1011,1030,1049,1054,1057,1058,1064,1065,1066,1067,1091,1097,1099,1100,1101,1105,1109,1113,1600,4672,4675,987",
        "queryValue": "",
        "skipUrlSync": false,
        "type": "custom"
      }
    ]
  },
  "time": {
    "from": "now-30m",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "",
  "title": "FastNetMon / Traffic Per Outgoing Interface",
  "uid": "LRqueNBMk",
  "version": 4
}