Grafana dashboard: FastnetMon / Per ASN Traffic
Description: Per ASN dashboard which uses Traffic Persistency in FastNetMon Advanced

FastNetMon Per ASN 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 ASN dashboard which uses Traffic Persistency in FastNetMon Advanced",
  "editable": true,
  "gnetId": 14082,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1615979923834,
  "links": [],
  "panels": [
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_CLICKHOUSE}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "links": [
            {
              "targetBlank": true,
              "title": "irb.3113 / SOFIA-BIX",
              "url": "http://10.16.16.3:81/d/qML3Ee-Gk/per-upstream-traffic-v3?orgId=1&from=now-3h&to=now&var-snmpindex=1091"
            }
          ]
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "1066"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3110 / SOFIA-FACEBOOK-1"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1067"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3111 / SOFIA-FACEBOOK-2"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1057"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3106 / FR5-FACEBOOK-1"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1090"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "et-19/1/0 / TIS-00000074275-YEREVAN-POP"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1113"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3120 / MSK-IX"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1109"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3119 / EURASIA-IX"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1105"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3118 / PITER-IX"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1101"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3117 / BALKIAN-IX-TIS"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1011"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3102 / AMS-IX"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1091"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3113 / SOFIA-BIX"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1030"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3103 / NL-IX"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "715"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3101 / LINX"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1049"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3104 / DE-CIX"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1054"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3105 / EQUINIX-IX"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1100"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3116 / BALKAN-IX-REGIONAL"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "987"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "ae17.598 / AS44395 (UCOM_BGP)"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1058"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3107 / FR5-FACEBOOK-2"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1097"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3114 / OM-NIX"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1600"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3124 / ECIX"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1099"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3115 / BALKAN-IX-LOCAL-BG"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "778"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3127 / SOFIA-COGENT-1"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1064"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3108 / SOFIA-GOOGLE-1"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1065"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3109 / SOFIA-GOOGLE-2"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "2218"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3125 / SOFIA-AMAZON-1"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "2219"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3126 / SOFIA-AMAZON-2"
              }
            ]
          }
        ]
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 10,
        "w": 24,
        "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": "max",
        "sortDesc": false,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null as zero",
      "options": {
        "alertThreshold": false
      },
      "percentage": false,
      "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,
          "intervalFactor": 1,
          "query": "SELECT\n (intDiv(toUInt32(packetDateTime),($to - $from) / 100 AS discret ) * discret) * 1000 AS t,\n inputInterface,\n sum(length * sampleRatio * 8) / discret\n\nFROM $table\n\nWHERE packetDate >= toDate($from) and packetDate <= toDate($to) \n    AND packetDateTime >= toDateTime($from) and packetDateTime <= toDateTime($to)\n    AND srcAsn=$asn\n\nGROUP BY t, inputInterface\n\nORDER BY t\n",
          "rawQuery": "SELECT\n (intDiv(toUInt32(packetDateTime),(1614643061 - 1614641261) / 100 AS discret ) * discret) * 1000 AS t,\n inputInterface,\n sum(length * sampleRatio * 8) / discret\n\nFROM fastnetmon.traffic\n\nWHERE packetDate >= toDate(1614641261) and packetDate <= toDate(1614643061) \n    AND packetDateTime >= toDateTime(1614641261) and packetDateTime <= toDateTime(1614643061)\n    AND srcAsn=16509\n\nGROUP BY t, inputInterface\n\nORDER BY t",
          "refId": "A",
          "round": "0s",
          "skip_comments": true,
          "table": "traffic",
          "tableLoading": false
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Traffic rate (stacked)",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:345",
          "format": "bps",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "$$hashKey": "object:346",
          "format": "bps",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": 100
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_CLICKHOUSE}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "links": [
            {
              "targetBlank": true,
              "title": "irb.3113 / SOFIA-BIX",
              "url": "http://10.16.16.3:81/d/qML3Ee-Gk/per-upstream-traffic-v3?orgId=1&from=now-3h&to=now&var-snmpindex=1091"
            }
          ]
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "1066"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3110 / SOFIA-FACEBOOK-1"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1067"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3111 / SOFIA-FACEBOOK-2"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1057"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3106 / FR5-FACEBOOK-1"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1090"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "et-19/1/0 / TIS-00000074275-YEREVAN-POP"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1113"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3120 / MSK-IX"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1109"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3119 / EURASIA-IX"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1105"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3118 / PITER-IX"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1101"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3117 / BALKIAN-IX-TIS"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1011"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3102 / AMS-IX"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1091"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3113 / SOFIA-BIX"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1030"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3103 / NL-IX"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "715"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3101 / LINX"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1049"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3104 / DE-CIX"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1054"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3105 / EQUINIX-IX"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1100"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3116 / BALKAN-IX-REGIONAL"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "987"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "ae17.598 / AS44395 (UCOM_BGP)"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1058"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3107 / FR5-FACEBOOK-2"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1097"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3114 / OM-NIX"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1600"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3124 / ECIX"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1099"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3115 / BALKAN-IX-LOCAL-BG"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "778"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3127 / SOFIA-COGENT-1"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1064"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3108 / SOFIA-GOOGLE-1"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1065"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3109 / SOFIA-GOOGLE-2"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "2218"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3125 / SOFIA-AMAZON-1"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "2219"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "irb.3126 / SOFIA-AMAZON-2"
              }
            ]
          }
        ]
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 10,
        "w": 24,
        "x": 0,
        "y": 10
      },
      "hiddenSeries": false,
      "id": 5,
      "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,
          "intervalFactor": 1,
          "query": "SELECT\n (intDiv(toUInt32(packetDateTime),($to - $from) / 100 AS discret ) * discret) * 1000 AS t,\n inputInterface,\n sum(length * sampleRatio * 8) / discret\n\nFROM $table\n\nWHERE packetDate >= toDate($from) and packetDate <= toDate($to) \n    AND packetDateTime >= toDateTime($from) and packetDateTime <= toDateTime($to)\n    AND srcAsn=$asn\n\nGROUP BY t, inputInterface\n\nORDER BY t\n",
          "rawQuery": "SELECT\n (intDiv(toUInt32(packetDateTime),(1614643138 - 1614641338) / 100 AS discret ) * discret) * 1000 AS t,\n inputInterface,\n sum(length * sampleRatio * 8) / discret\n\nFROM fastnetmon.traffic\n\nWHERE packetDate >= toDate(1614641338) and packetDate <= toDate(1614643138) \n    AND packetDateTime >= toDateTime(1614641338) and packetDateTime <= toDateTime(1614643138)\n    AND srcAsn=16509\n\nGROUP BY t, inputInterface\n\nORDER BY t",
          "refId": "A",
          "round": "0s",
          "skip_comments": true,
          "table": "traffic",
          "tableLoading": false
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Traffic rate (stacked percent)",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:345",
          "format": "bps",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:346",
          "format": "bps",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": 100
      }
    }
  ],
  "refresh": false,
  "schemaVersion": 26,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {
          "selected": false,
          "text": "6185",
          "value": "6185"
        },
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": "ASN",
        "multi": false,
        "name": "asn",
        "options": [
          {
            "selected": false,
            "text": "15169",
            "value": "15169"
          }
        ],
        "query": "15169",
        "queryValue": "16509",
        "skipUrlSync": false,
        "type": "custom"
      }
    ]
  },
  "time": {
    "from": "now-2d",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "",
  "title": "FastnetMon / Per ASN Traffic",
  "uid": "FOca_8fGz",
  "version": 12
}