Grafana dashboard: Knot-resolver DNS
Description: Knot-resolver metrics

knot-resolver DNS graphs.

Some rows from kresd.conf

net.listen('127.0.0.1', 8453, { kind = 'webmgmt' })

modules = {

        'hints > iterate',  -- Load /etc/hosts and allow custom root hints

        'stats',            -- Track internal statistics

        'predict',          -- Prefetch expiring/frequent records

        'http',

}

http.config({
    tls = false,
})

http.prometheus.namespace = 'resolver_'

Prometheus gets stats like this

  - job_name: knot

    static_configs:

      - targets: ['192.168.1.1:8453']

{
  "__inputs": [
    {
      "name": "DS_PROMETHEUS",
      "label": "Prometheus",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.7.3"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "$$hashKey": "object:90",
        "builtIn": 1,
        "datasource": "${DS_PROMETHEUS}",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "limit": 100,
        "name": "Annotations & Alerts",
        "showIn": 0,
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 12743,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1596372504561,
  "links": [],
  "panels": [
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "description": "",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 11,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "hiddenSeries": false,
      "id": 4,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "increase(resolver_request_total{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Requests Total",
          "refId": "A"
        },
        {
          "expr": "increase(resolver_answer_total{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Answers Total",
          "refId": "B"
        },
        {
          "expr": "increase(resolver_answer_cached{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Answers Cached",
          "refId": "C"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Knot-resolver req/resp",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:149",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:150",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "description": "answer.total - total number of answered queries\n\nanswer.cached - queries answered from cache\n\nanswer.noerror - NOERROR answers\n\nanswer.nodata - NOERROR, but empty answers\n\nanswer.nxdomain - NXDOMAIN answers\n\nanswer.servfail - SERVFAIL answers",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 11,
        "w": 24,
        "x": 0,
        "y": 11
      },
      "hiddenSeries": false,
      "id": 3,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "increase(resolver_answer_total{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Answers Total",
          "refId": "A"
        },
        {
          "expr": "increase(resolver_answer_cached{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Answers Cached",
          "refId": "B"
        },
        {
          "expr": "increase(resolver_answer_noerror{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Answers NoError",
          "refId": "C"
        },
        {
          "expr": "increase(resolver_answer_nodata{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Answers NoData",
          "refId": "D"
        },
        {
          "expr": "increase(resolver_answer_nxdomain{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Answers NXDomain",
          "refId": "E"
        },
        {
          "expr": "increase(resolver_answer_servfail{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Answers Servfail",
          "refId": "F"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Knot-resolver answers",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:149",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:150",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "description": "request.total - total number of DNS requests (including internal client requests)\n\nrequest.internal - internal requests generated by Knot Resolver (e.g. DNSSEC trust anchor updates)\n\nrequest.udp - external requests received over plain UDP (RFC 1035)\n\nrequest.tcp - external requests received over plain TCP (RFC 1035)\n\nrequest.dot - external requests received over DNS-over-TLS (RFC 7858)\n\nrequest.doh - external requests received over DNS-over-HTTP (RFC 8484)",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 11,
        "w": 24,
        "x": 0,
        "y": 22
      },
      "hiddenSeries": false,
      "id": 2,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "increase(resolver_request_total{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Requests Total",
          "refId": "A"
        },
        {
          "expr": "increase(resolver_request_internal{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Requests Internal",
          "refId": "B"
        },
        {
          "expr": "increase(resolver_request_udp{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Requests UDP",
          "refId": "C"
        },
        {
          "expr": "increase(resolver_request_tcp{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Requests TCP",
          "refId": "D"
        },
        {
          "expr": "increase(resolver_request_doh{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Requests DoH",
          "refId": "E"
        },
        {
          "expr": "increase(resolver_request_dot{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Requests DoT",
          "refId": "F"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Knot-resolver requests",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:149",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:150",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "description": "answer.aa - authoritative answer\n\nanswer.tc - truncated answer\n\nanswer.ra - recursion available\n\nanswer.rd - recursion desired (in answer!)\n\nanswer.ad - authentic data (DNSSEC)\n\nanswer.cd - checking disabled (DNSSEC)\n\nanswer.do - DNSSEC answer OK\n\nanswer.edns0 - EDNS0 present",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 11,
        "w": 24,
        "x": 0,
        "y": 33
      },
      "hiddenSeries": false,
      "id": 5,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "increase(resolver_answer_total{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Answers Total",
          "refId": "A"
        },
        {
          "expr": "increase(resolver_answer_aa{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Answers Authoritative (aa)",
          "refId": "B"
        },
        {
          "expr": "increase(resolver_answer_tc{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Answers Truncated (tc)",
          "refId": "C"
        },
        {
          "expr": "increase(resolver_answer_ra{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Answers RA",
          "refId": "D"
        },
        {
          "expr": "increase(resolver_answer_rd{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Answers RD",
          "refId": "E"
        },
        {
          "expr": "increase(resolver_answer_cd{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Answers CD",
          "refId": "F"
        },
        {
          "expr": "increase(resolver_answer_do{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Answers DO",
          "refId": "G"
        },
        {
          "expr": "increase(resolver_answer_edns0{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Answers edns0",
          "refId": "H"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Knot-resolver answers",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:149",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:150",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "description": "query.edns - queries with EDNS present\n\nquery.dnssec - queries with DNSSEC DO=1",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 11,
        "w": 24,
        "x": 0,
        "y": 44
      },
      "hiddenSeries": false,
      "id": 6,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "increase(resolver_query_edns{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Query EDNS",
          "refId": "A"
        },
        {
          "expr": "increase(resolver_query_dnssec{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Query DNSSEC",
          "refId": "B"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Knot-resolver queries",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:149",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:150",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "description": "",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 11,
        "w": 24,
        "x": 0,
        "y": 55
      },
      "hiddenSeries": false,
      "id": 7,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "increase(resolver_cache_commit{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Cache commit",
          "refId": "A"
        },
        {
          "expr": "increase(resolver_cache_read{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Cache read",
          "refId": "B"
        },
        {
          "expr": "increase(resolver_cache_read_leq{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Cache read leq",
          "refId": "C"
        },
        {
          "expr": "increase(resolver_cache_read_leq_miss{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Cache read leq miss",
          "refId": "D"
        },
        {
          "expr": "increase(resolver_cache_read_miss{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Cache read miss",
          "refId": "E"
        },
        {
          "expr": "increase(resolver_cache_write{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Cache write",
          "refId": "F"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Knot-resolver cache",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:149",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:150",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "description": "1ms - completed in 1ms\n\n10ms - completed in 10ms\n\n50ms - completed in 50ms\n\n100ms - completed in 100ms\n\n250ms - completed in 250ms\n\n500ms - completed in 500ms\n\n1000ms - completed in 1000ms\n\n1500ms - completed in 1500ms\n\n+Inf - completed in more than 1500ms",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 11,
        "w": 24,
        "x": 0,
        "y": 66
      },
      "hiddenSeries": false,
      "id": 8,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "increase(resolver_latency_bucket{instance=\"$node:$port\",job=\"$job\",le=\"1\"}[120s])",
          "interval": "",
          "legendFormat": "1 ms",
          "refId": "A"
        },
        {
          "expr": "increase(resolver_latency_bucket{instance=\"$node:$port\",job=\"$job\",le=\"10\"}[120s])",
          "interval": "",
          "legendFormat": "10 ms",
          "refId": "B"
        },
        {
          "expr": "increase(resolver_latency_bucket{instance=\"$node:$port\",job=\"$job\",le=\"50\"}[120s])",
          "interval": "",
          "legendFormat": "50 ms",
          "refId": "C"
        },
        {
          "expr": "increase(resolver_latency_bucket{instance=\"$node:$port\",job=\"$job\",le=\"100\"}[120s])",
          "interval": "",
          "legendFormat": "100 ms",
          "refId": "D"
        },
        {
          "expr": "increase(resolver_latency_bucket{instance=\"$node:$port\",job=\"$job\",le=\"250\"}[120s])",
          "interval": "",
          "legendFormat": "250 ms",
          "refId": "E"
        },
        {
          "expr": "increase(resolver_latency_bucket{instance=\"$node:$port\",job=\"$job\",le=\"500\"}[120s])",
          "interval": "",
          "legendFormat": "500 ms",
          "refId": "F"
        },
        {
          "expr": "increase(resolver_latency_bucket{instance=\"$node:$port\",job=\"$job\",le=\"1000\"}[120s])",
          "interval": "",
          "legendFormat": "1000 ms",
          "refId": "G"
        },
        {
          "expr": "increase(resolver_latency_bucket{instance=\"$node:$port\",job=\"$job\",le=\"1500\"}[120s])",
          "interval": "",
          "legendFormat": "1500 ms",
          "refId": "H"
        },
        {
          "expr": "increase(resolver_latency_bucket{instance=\"$node:$port\",job=\"$job\",le=\"+Inf\"}[120s])",
          "interval": "",
          "legendFormat": "+Inf ms",
          "refId": "I"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Knot-resolver Latency Bucket",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:149",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:150",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "description": "",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 11,
        "w": 12,
        "x": 0,
        "y": 77
      },
      "hiddenSeries": false,
      "id": 9,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "resolver_worker_concurrent{instance=\"$node:$port\",job=\"$job\"}",
          "interval": "",
          "legendFormat": "worker_concurrent",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Knot-resolver Worker Concurrent",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:149",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:150",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "description": "",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 11,
        "w": 12,
        "x": 12,
        "y": 77
      },
      "hiddenSeries": false,
      "id": 11,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "increase(resolver_worker_dropped{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Worker dropped",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Knot-resolver Worker Dropped",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:149",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:150",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "description": "",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 11,
        "w": 12,
        "x": 0,
        "y": 88
      },
      "hiddenSeries": false,
      "id": 10,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "increase(resolver_worker_csw{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Worker CSW",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Knot-resolver Worker CSW",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:149",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:150",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "description": "",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 11,
        "w": 12,
        "x": 12,
        "y": 88
      },
      "hiddenSeries": false,
      "id": 12,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "increase(resolver_worker_ipv4{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Worker IPv4",
          "refId": "A"
        },
        {
          "expr": "increase(resolver_worker_ipv6{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Worker IPv6",
          "refId": "B"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Knot-resolver Worker IP",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:149",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:150",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "description": "",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 11,
        "w": 12,
        "x": 0,
        "y": 99
      },
      "hiddenSeries": false,
      "id": 14,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "increase(resolver_worker_tcp{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Worker TCP",
          "refId": "A"
        },
        {
          "expr": "increase(resolver_worker_udp{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Worker UDP",
          "refId": "B"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Knot-resolver Worker TCP/UDP",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:149",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:150",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "description": "",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 11,
        "w": 12,
        "x": 12,
        "y": 99
      },
      "hiddenSeries": false,
      "id": 13,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "increase(resolver_worker_queries{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Worker queries",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Knot-resolver Worker Queries",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:149",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:150",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "description": "",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 11,
        "w": 12,
        "x": 12,
        "y": 110
      },
      "hiddenSeries": false,
      "id": 15,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "increase(resolver_worker_timeout{instance=\"$node:$port\",job=\"$job\"}[120s])",
          "interval": "",
          "legendFormat": "Worker timeout",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Knot-resolver Worker Timeout",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:149",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:150",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "refresh": false,
  "schemaVersion": 22,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(resolver_worker_concurrent,instance)",
        "hide": 0,
        "includeAll": false,
        "index": -1,
        "label": "Host:",
        "multi": false,
        "name": "node",
        "options": [],
        "query": "label_values(resolver_worker_concurrent,instance)",
        "refresh": 1,
        "regex": "/([^:]+):.*/",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(resolver_worker_concurrent{instance=~\"$node:(.*)\"}, instance)",
        "hide": 0,
        "includeAll": false,
        "index": -1,
        "label": "Port",
        "multi": false,
        "name": "port",
        "options": [],
        "query": "label_values(resolver_worker_concurrent{instance=~\"$node:(.*)\"}, instance)",
        "refresh": 1,
        "regex": "/[^:]+:(.*)/",
        "skipUrlSync": false,
        "sort": 3,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(resolver_worker_concurrent, job)",
        "hide": 0,
        "includeAll": false,
        "index": -1,
        "label": "Job",
        "multi": false,
        "name": "job",
        "options": [],
        "query": "label_values(resolver_worker_concurrent, job)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "Knot-resolver DNS",
  "uid": "dQh9G_4Mk",
  "variables": {
    "list": []
  },
  "version": 22,
  "description": "Knot-resolver metrics"
}