Grafana dashboard: DNSBL Blocks by Destination
Description: Lists blocked requests from pfBlocker dnsbl.log


{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "Lists blocked requests from pfBlocker dnsbl.log",
  "editable": true,
  "gnetId": 10862,
  "graphTooltip": 0,
  "id": 26,
  "iteration": 1568425294611,
  "links": [],
  "panels": [
    {
      "aliasColors": {},
      "bars": true,
      "dashLength": 10,
      "dashes": false,
      "datasource": "pfSense",
      "decimals": 0,
      "fill": 1,
      "gridPos": {
        "h": 9,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 2,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": false,
        "hideEmpty": true,
        "hideZero": true,
        "max": false,
        "min": false,
        "rightSide": true,
        "show": true,
        "sideWidth": 300,
        "sort": "total",
        "sortDesc": true,
        "total": true,
        "values": true
      },
      "lines": false,
      "linewidth": 0,
      "links": [],
      "nullPointMode": "null as zero",
      "options": {},
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": true,
      "steppedLine": false,
      "targets": [
        {
          "alias": "\"[[tag_destination]]\"",
          "groupBy": [
            {
              "params": [
                "5m"
              ],
              "type": "time"
            },
            {
              "params": [
                "destination"
              ],
              "type": "tag"
            }
          ],
          "hide": false,
          "measurement": "dnsbl_log",
          "orderByTime": "ASC",
          "policy": "autogen",
          "query": "SELECT mean(\"value\") FROM \"measurement\" WHERE $timeFilter GROUP BY time($__interval) fill(null)",
          "rawQuery": false,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "hitormiss"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "count"
              }
            ]
          ],
          "tags": [
            {
              "key": "source",
              "operator": "=~",
              "value": "/^$Source$/"
            },
            {
              "condition": "AND",
              "key": "DefinedList",
              "operator": "=~",
              "value": "/^$BlockList$/"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "DNSBL Blocks by Destination",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "cumulative"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "none",
          "label": "Blocked requests",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": true,
      "dashLength": 10,
      "dashes": false,
      "datasource": "pfSense",
      "fill": 1,
      "gridPos": {
        "h": 11,
        "w": 24,
        "x": 0,
        "y": 9
      },
      "id": 4,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": false,
        "hideEmpty": true,
        "hideZero": true,
        "max": false,
        "min": false,
        "rightSide": true,
        "show": true,
        "sideWidth": 300,
        "sort": "total",
        "sortDesc": true,
        "total": true,
        "values": true
      },
      "lines": false,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null as zero",
      "options": {},
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": true,
      "steppedLine": false,
      "targets": [
        {
          "alias": "\"[[tag_DefinedList]]\"",
          "groupBy": [
            {
              "params": [
                "5m"
              ],
              "type": "time"
            },
            {
              "params": [
                "DefinedList"
              ],
              "type": "tag"
            }
          ],
          "hide": false,
          "measurement": "dnsbl_log",
          "orderByTime": "ASC",
          "policy": "autogen",
          "query": "SELECT mean(\"value\") FROM \"measurement\" WHERE $timeFilter GROUP BY time($__interval) fill(null)",
          "rawQuery": false,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "hitormiss"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "count"
              }
            ]
          ],
          "tags": [
            {
              "key": "source",
              "operator": "=~",
              "value": "/^$Source$/"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "DNSBL Blocks by Blocklist",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 0,
          "format": "none",
          "label": "Blocked Requests",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "refresh": "1m",
  "schemaVersion": 18,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {
          "text": "All",
          "value": [
            "$__all"
          ]
        },
        "datasource": "pfSense",
        "definition": "SHOW TAG VALUES FROM dnsbl_log WITH KEY=source",
        "hide": 0,
        "includeAll": true,
        "label": "Source",
        "multi": true,
        "name": "Source",
        "options": [
          {
            "selected": true,
            "text": "All",
            "value": "$__all"
          },
          {
            "selected": false,
            "text": "192.168.0.12",
            "value": "192.168.0.12"
          },
          {
            "selected": false,
            "text": "192.168.0.150",
            "value": "192.168.0.150"
          },
          {
            "selected": false,
            "text": "192.168.0.154",
            "value": "192.168.0.154"
          },
          {
            "selected": false,
            "text": "192.168.0.155",
            "value": "192.168.0.155"
          },
          {
            "selected": false,
            "text": "192.168.0.156",
            "value": "192.168.0.156"
          },
          {
            "selected": false,
            "text": "192.168.0.160",
            "value": "192.168.0.160"
          },
          {
            "selected": false,
            "text": "192.168.0.166",
            "value": "192.168.0.166"
          },
          {
            "selected": false,
            "text": "192.168.0.168",
            "value": "192.168.0.168"
          },
          {
            "selected": false,
            "text": "192.168.0.173",
            "value": "192.168.0.173"
          },
          {
            "selected": false,
            "text": "192.168.0.176",
            "value": "192.168.0.176"
          },
          {
            "selected": false,
            "text": "192.168.0.249",
            "value": "192.168.0.249"
          },
          {
            "selected": false,
            "text": "192.168.0.251",
            "value": "192.168.0.251"
          },
          {
            "selected": false,
            "text": "192.168.0.254",
            "value": "192.168.0.254"
          },
          {
            "selected": false,
            "text": "192.168.0.36",
            "value": "192.168.0.36"
          }
        ],
        "query": "SHOW TAG VALUES FROM dnsbl_log WITH KEY=source",
        "refresh": 0,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {
          "tags": [],
          "text": "All",
          "value": [
            "$__all"
          ]
        },
        "datasource": "pfSense",
        "definition": "SHOW TAG VALUES FROM dnsbl_log WITH KEY=DefinedList",
        "hide": 0,
        "includeAll": true,
        "label": "Block List",
        "multi": true,
        "name": "BlockList",
        "options": [
          {
            "selected": true,
            "text": "All",
            "value": "$__all"
          },
          {
            "selected": false,
            "text": "Abuse_URLBL",
            "value": "Abuse_URLBL"
          },
          {
            "selected": false,
            "text": "Adaway",
            "value": "Adaway"
          },
          {
            "selected": false,
            "text": "Adguard_simplified",
            "value": "Adguard_simplified"
          },
          {
            "selected": false,
            "text": "AntiSocial_BD",
            "value": "AntiSocial_BD"
          },
          {
            "selected": false,
            "text": "Cameleon",
            "value": "Cameleon"
          },
          {
            "selected": false,
            "text": "D_Me_ADs",
            "value": "D_Me_ADs"
          },
          {
            "selected": false,
            "text": "D_Me_Tracking",
            "value": "D_Me_Tracking"
          },
          {
            "selected": false,
            "text": "EasyPrivacy",
            "value": "EasyPrivacy"
          },
          {
            "selected": false,
            "text": "NoTrack_Tracker",
            "value": "NoTrack_Tracker"
          },
          {
            "selected": false,
            "text": "SBL_ADs",
            "value": "SBL_ADs"
          },
          {
            "selected": false,
            "text": "SWC",
            "value": "SWC"
          },
          {
            "selected": false,
            "text": "Shallalist_adv",
            "value": "Shallalist_adv"
          },
          {
            "selected": false,
            "text": "Shallalist_tracker",
            "value": "Shallalist_tracker"
          },
          {
            "selected": false,
            "text": "StevenBlack",
            "value": "StevenBlack"
          },
          {
            "selected": false,
            "text": "UT1_marketingware",
            "value": "UT1_marketingware"
          },
          {
            "selected": false,
            "text": "Unknown",
            "value": "Unknown"
          },
          {
            "selected": false,
            "text": "Yoyo",
            "value": "Yoyo"
          },
          {
            "selected": false,
            "text": "hpHosts",
            "value": "hpHosts"
          },
          {
            "selected": false,
            "text": "hpHosts_ATS",
            "value": "hpHosts_ATS"
          }
        ],
        "query": "SHOW TAG VALUES FROM dnsbl_log WITH KEY=DefinedList",
        "refresh": 0,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-1h",
    "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": "DNSBL Blocks by Destination",
  "uid": "mbqje05Zz",
  "version": 16
}