{
  "annotations": [
    {
      "kind": "AnnotationQuery",
      "spec": {
        "builtIn": true,
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "query": {
          "group": "grafana",
          "kind": "DataQuery",
          "spec": {
            "limit": 100,
            "matchAny": false,
            "tags": [],
            "type": "dashboard"
          },
          "version": "v0"
        }
      }
    }
  ],
  "cursorSync": "Crosshair",
  "description": "DNS query counts and per-second query rates broken down by Knot DNS zone.",
  "editable": true,
  "elements": {
    "panel-1": {
      "kind": "Panel",
      "spec": {
        "data": {
          "kind": "QueryGroup",
          "spec": {
            "queries": [],
            "queryOptions": {},
            "transformations": []
          }
        },
        "description": "",
        "id": 1,
        "links": [],
        "title": "",
        "vizConfig": {
          "group": "text",
          "kind": "VizConfig",
          "spec": {
            "fieldConfig": {
              "defaults": {},
              "overrides": []
            },
            "options": {
              "code": {
                "language": "plaintext",
                "showLineNumbers": false,
                "showMiniMap": false
              },
              "content": "# <font color='#3ba05f'>Knot DNS &mdash; Queries per Zone</font>\nQuery volume and queries/second broken down by DNS zone. Filters: data source **$datasource** &middot; job **$job** &middot; zone **$zone** &middot; showing top **$topk** zones.",
              "mode": "markdown"
            }
          },
          "version": "13.0.2"
        }
      }
    },
    "panel-10": {
      "kind": "Panel",
      "spec": {
        "data": {
          "kind": "QueryGroup",
          "spec": {
            "queries": [
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "${datasource}"
                    },
                    "group": "prometheus",
                    "kind": "DataQuery",
                    "spec": {
                      "exemplar": false,
                      "expr": "topk($topk, sum by (zone) (rate(knot_zone_stats_server_operation_total{job=~\"$job\", module=\"mod-stats\", zone=~\"$zone\", type=\"query\"}[$__rate_interval])))",
                      "interval": "",
                      "legendFormat": "{{zone}}"
                    },
                    "version": "v0"
                  },
                  "refId": "A"
                }
              }
            ],
            "queryOptions": {},
            "transformations": []
          }
        },
        "description": "Per-second DNS query rate for each zone. rate() over the counter knot_zone_stats_server_operation_total{type=\"query\"}.",
        "id": 10,
        "links": [],
        "title": "Queries/sec per zone (top $topk)",
        "vizConfig": {
          "group": "timeseries",
          "kind": "VizConfig",
          "spec": {
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "palette-classic"
                },
                "custom": {
                  "axisBorderShow": false,
                  "axisCenteredZero": false,
                  "axisColorMode": "text",
                  "axisLabel": "",
                  "axisPlacement": "auto",
                  "barAlignment": 0,
                  "barWidthFactor": 0.6,
                  "drawStyle": "line",
                  "fillOpacity": 10,
                  "gradientMode": "none",
                  "hideFrom": {
                    "legend": false,
                    "tooltip": false,
                    "viz": false
                  },
                  "insertNulls": false,
                  "lineInterpolation": "smooth",
                  "lineWidth": 2,
                  "pointSize": 5,
                  "scaleDistribution": {
                    "type": "linear"
                  },
                  "showPoints": "never",
                  "showValues": false,
                  "spanNulls": false,
                  "stacking": {
                    "group": "A",
                    "mode": "none"
                  },
                  "thresholdsStyle": {
                    "mode": "off"
                  }
                },
                "min": 0,
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": 0
                    }
                  ]
                },
                "unit": "reqps"
              },
              "overrides": []
            },
            "options": {
              "annotations": {
                "clustering": -1,
                "multiLane": false
              },
              "legend": {
                "calcs": [
                  "mean",
                  "max",
                  "lastNotNull"
                ],
                "displayMode": "table",
                "placement": "right",
                "showLegend": true,
                "sortBy": "Max",
                "sortDesc": true
              },
              "tooltip": {
                "hideZeros": false,
                "mode": "multi",
                "sort": "desc"
              }
            }
          },
          "version": "13.0.2"
        }
      }
    },
    "panel-11": {
      "kind": "Panel",
      "spec": {
        "data": {
          "kind": "QueryGroup",
          "spec": {
            "queries": [
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "${datasource}"
                    },
                    "group": "prometheus",
                    "kind": "DataQuery",
                    "spec": {
                      "exemplar": false,
                      "expr": "topk($topk, sum by (zone) (rate(knot_zone_stats_server_operation_total{job=~\"$job\", module=\"mod-stats\", zone=~\"$zone\", type=\"query\"}[$__rate_interval])))",
                      "instant": true,
                      "interval": "",
                      "legendFormat": "{{zone}}",
                      "range": false
                    },
                    "version": "v0"
                  },
                  "refId": "A"
                }
              }
            ],
            "queryOptions": {},
            "transformations": []
          }
        },
        "description": "",
        "id": 11,
        "links": [],
        "title": "Top $topk zones by queries/sec (now)",
        "vizConfig": {
          "group": "bargauge",
          "kind": "VizConfig",
          "spec": {
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "continuous-GrYlRd"
                },
                "decimals": 2,
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": 0
                    }
                  ]
                },
                "unit": "reqps"
              },
              "overrides": []
            },
            "options": {
              "displayMode": "gradient",
              "legend": {
                "calcs": [],
                "displayMode": "list",
                "placement": "bottom",
                "showLegend": false
              },
              "maxVizHeight": 300,
              "minVizHeight": 16,
              "minVizWidth": 8,
              "namePlacement": "left",
              "orientation": "horizontal",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "showUnfilled": true,
              "sizing": "auto",
              "valueMode": "color"
            }
          },
          "version": "13.0.2"
        }
      }
    },
    "panel-2": {
      "kind": "Panel",
      "spec": {
        "data": {
          "kind": "QueryGroup",
          "spec": {
            "queries": [
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "${datasource}"
                    },
                    "group": "prometheus",
                    "kind": "DataQuery",
                    "spec": {
                      "exemplar": false,
                      "expr": "sum(knot_zone_stats_server_operation_total{job=~\"$job\", module=\"mod-stats\", zone=~\"$zone\", type=\"query\"})",
                      "interval": "",
                      "legendFormat": "queries"
                    },
                    "version": "v0"
                  },
                  "refId": "A"
                }
              }
            ],
            "queryOptions": {},
            "transformations": []
          }
        },
        "description": "Cumulative DNS queries served across all selected zones.",
        "id": 2,
        "links": [],
        "title": "Total queries (selected zones)",
        "vizConfig": {
          "group": "stat",
          "kind": "VizConfig",
          "spec": {
            "fieldConfig": {
              "defaults": {
                "color": {
                  "fixedColor": "green",
                  "mode": "fixed"
                },
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": 0
                    }
                  ]
                },
                "unit": "short"
              },
              "overrides": []
            },
            "options": {
              "colorMode": "background",
              "graphMode": "area",
              "justifyMode": "center",
              "orientation": "auto",
              "percentChangeColorMode": "standard",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "showPercentChange": false,
              "text": {},
              "textMode": "auto",
              "wideLayout": true
            }
          },
          "version": "13.0.2"
        }
      }
    },
    "panel-20": {
      "kind": "Panel",
      "spec": {
        "data": {
          "kind": "QueryGroup",
          "spec": {
            "queries": [
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "${datasource}"
                    },
                    "group": "prometheus",
                    "kind": "DataQuery",
                    "spec": {
                      "exemplar": false,
                      "expr": "topk($topk, sum by (zone) (knot_zone_stats_server_operation_total{job=~\"$job\", module=\"mod-stats\", zone=~\"$zone\", type=\"query\"}))",
                      "interval": "",
                      "legendFormat": "{{zone}}"
                    },
                    "version": "v0"
                  },
                  "refId": "A"
                }
              }
            ],
            "queryOptions": {},
            "transformations": []
          }
        },
        "description": "Raw counter value - total queries served per zone since Knot started.",
        "id": 20,
        "links": [],
        "title": "Cumulative queries per zone (top $topk)",
        "vizConfig": {
          "group": "timeseries",
          "kind": "VizConfig",
          "spec": {
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "palette-classic"
                },
                "custom": {
                  "axisBorderShow": false,
                  "axisCenteredZero": false,
                  "axisColorMode": "text",
                  "axisLabel": "",
                  "axisPlacement": "auto",
                  "barAlignment": 0,
                  "barWidthFactor": 0.6,
                  "drawStyle": "line",
                  "fillOpacity": 10,
                  "gradientMode": "none",
                  "hideFrom": {
                    "legend": false,
                    "tooltip": false,
                    "viz": false
                  },
                  "insertNulls": false,
                  "lineInterpolation": "smooth",
                  "lineWidth": 2,
                  "pointSize": 5,
                  "scaleDistribution": {
                    "type": "linear"
                  },
                  "showPoints": "never",
                  "showValues": false,
                  "spanNulls": false,
                  "stacking": {
                    "group": "A",
                    "mode": "none"
                  },
                  "thresholdsStyle": {
                    "mode": "off"
                  }
                },
                "min": 0,
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": 0
                    }
                  ]
                },
                "unit": "short"
              },
              "overrides": []
            },
            "options": {
              "annotations": {
                "clustering": -1,
                "multiLane": false
              },
              "legend": {
                "calcs": [
                  "mean",
                  "max",
                  "lastNotNull"
                ],
                "displayMode": "table",
                "placement": "right",
                "showLegend": true,
                "sortBy": "Last *",
                "sortDesc": true
              },
              "tooltip": {
                "hideZeros": false,
                "mode": "multi",
                "sort": "desc"
              }
            }
          },
          "version": "13.0.2"
        }
      }
    },
    "panel-21": {
      "kind": "Panel",
      "spec": {
        "data": {
          "kind": "QueryGroup",
          "spec": {
            "queries": [
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "${datasource}"
                    },
                    "group": "prometheus",
                    "kind": "DataQuery",
                    "spec": {
                      "exemplar": false,
                      "expr": "topk($topk, sum by (zone) (increase(knot_zone_stats_server_operation_total{job=~\"$job\", module=\"mod-stats\", zone=~\"$zone\", type=\"query\"}[1m])))",
                      "interval": "",
                      "legendFormat": "{{zone}}"
                    },
                    "version": "v0"
                  },
                  "refId": "A"
                }
              }
            ],
            "queryOptions": {},
            "transformations": []
          }
        },
        "description": "",
        "id": 21,
        "links": [],
        "title": "Queries per minute per zone (top $topk)",
        "vizConfig": {
          "group": "timeseries",
          "kind": "VizConfig",
          "spec": {
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "palette-classic"
                },
                "custom": {
                  "axisBorderShow": false,
                  "axisCenteredZero": false,
                  "axisColorMode": "text",
                  "axisLabel": "",
                  "axisPlacement": "auto",
                  "barAlignment": 0,
                  "barWidthFactor": 0.6,
                  "drawStyle": "line",
                  "fillOpacity": 60,
                  "gradientMode": "none",
                  "hideFrom": {
                    "legend": false,
                    "tooltip": false,
                    "viz": false
                  },
                  "insertNulls": false,
                  "lineInterpolation": "smooth",
                  "lineWidth": 2,
                  "pointSize": 5,
                  "scaleDistribution": {
                    "type": "linear"
                  },
                  "showPoints": "never",
                  "showValues": false,
                  "spanNulls": false,
                  "stacking": {
                    "group": "A",
                    "mode": "normal"
                  },
                  "thresholdsStyle": {
                    "mode": "off"
                  }
                },
                "min": 0,
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": 0
                    }
                  ]
                },
                "unit": "short"
              },
              "overrides": []
            },
            "options": {
              "annotations": {
                "clustering": -1,
                "multiLane": false
              },
              "legend": {
                "calcs": [
                  "mean",
                  "max",
                  "lastNotNull"
                ],
                "displayMode": "table",
                "placement": "right",
                "showLegend": true,
                "sortBy": "Last *",
                "sortDesc": true
              },
              "tooltip": {
                "hideZeros": false,
                "mode": "multi",
                "sort": "desc"
              }
            }
          },
          "version": "13.0.2"
        }
      }
    },
    "panel-22": {
      "kind": "Panel",
      "spec": {
        "data": {
          "kind": "QueryGroup",
          "spec": {
            "queries": [
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "${datasource}"
                    },
                    "group": "prometheus",
                    "kind": "DataQuery",
                    "spec": {
                      "exemplar": false,
                      "expr": "topk($topk, sum by (zone) (rate(knot_zone_stats_server_operation_total{job=~\"$job\", module=\"mod-stats\", zone=~\"$zone\", type=\"query\"}[$__rate_interval])))",
                      "instant": true,
                      "interval": "",
                      "legendFormat": "{{zone}}",
                      "range": false
                    },
                    "version": "v0"
                  },
                  "refId": "A"
                }
              }
            ],
            "queryOptions": {},
            "transformations": []
          }
        },
        "description": "",
        "id": 22,
        "links": [],
        "title": "Share of queries by zone (top $topk)",
        "vizConfig": {
          "group": "piechart",
          "kind": "VizConfig",
          "spec": {
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "palette-classic"
                },
                "custom": {
                  "hideFrom": {
                    "legend": false,
                    "tooltip": false,
                    "viz": false
                  }
                },
                "unit": "reqps"
              },
              "overrides": []
            },
            "options": {
              "displayLabels": [
                "percent"
              ],
              "legend": {
                "displayMode": "table",
                "placement": "right",
                "showLegend": true,
                "values": [
                  "value",
                  "percent"
                ]
              },
              "pieType": "donut",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "sort": "desc",
              "tooltip": {
                "hideZeros": false,
                "mode": "single",
                "sort": "none"
              }
            }
          },
          "version": "13.0.2"
        }
      }
    },
    "panel-3": {
      "kind": "Panel",
      "spec": {
        "data": {
          "kind": "QueryGroup",
          "spec": {
            "queries": [
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "${datasource}"
                    },
                    "group": "prometheus",
                    "kind": "DataQuery",
                    "spec": {
                      "exemplar": false,
                      "expr": "sum(rate(knot_zone_stats_server_operation_total{job=~\"$job\", module=\"mod-stats\", zone=~\"$zone\", type=\"query\"}[$__rate_interval]))",
                      "interval": "",
                      "legendFormat": "qps"
                    },
                    "version": "v0"
                  },
                  "refId": "A"
                }
              }
            ],
            "queryOptions": {},
            "transformations": []
          }
        },
        "description": "",
        "id": 3,
        "links": [],
        "title": "Queries/sec (all selected zones)",
        "vizConfig": {
          "group": "stat",
          "kind": "VizConfig",
          "spec": {
            "fieldConfig": {
              "defaults": {
                "color": {
                  "fixedColor": "blue",
                  "mode": "fixed"
                },
                "decimals": 2,
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "blue",
                      "value": 0
                    }
                  ]
                },
                "unit": "reqps"
              },
              "overrides": []
            },
            "options": {
              "colorMode": "background",
              "graphMode": "area",
              "justifyMode": "center",
              "orientation": "auto",
              "percentChangeColorMode": "standard",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "showPercentChange": false,
              "text": {},
              "textMode": "auto",
              "wideLayout": true
            }
          },
          "version": "13.0.2"
        }
      }
    },
    "panel-30": {
      "kind": "Panel",
      "spec": {
        "data": {
          "kind": "QueryGroup",
          "spec": {
            "queries": [
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "${datasource}"
                    },
                    "group": "prometheus",
                    "kind": "DataQuery",
                    "spec": {
                      "exemplar": false,
                      "expr": "topk($topk, sum by (zone, type) (rate(knot_zone_stats_request_protocol_total{job=~\"$job\", module=\"mod-stats\", zone=~\"$zone\"}[$__rate_interval])))",
                      "interval": "",
                      "legendFormat": "{{zone}} {{type}}"
                    },
                    "version": "v0"
                  },
                  "refId": "A"
                }
              }
            ],
            "queryOptions": {},
            "transformations": []
          }
        },
        "description": "Incoming request rate split by udp4/udp6/tcp4/tcp6.",
        "id": 30,
        "links": [],
        "title": "Queries/sec per zone by transport (top $topk)",
        "vizConfig": {
          "group": "timeseries",
          "kind": "VizConfig",
          "spec": {
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "palette-classic"
                },
                "custom": {
                  "axisBorderShow": false,
                  "axisCenteredZero": false,
                  "axisColorMode": "text",
                  "axisLabel": "",
                  "axisPlacement": "auto",
                  "barAlignment": 0,
                  "barWidthFactor": 0.6,
                  "drawStyle": "line",
                  "fillOpacity": 60,
                  "gradientMode": "none",
                  "hideFrom": {
                    "legend": false,
                    "tooltip": false,
                    "viz": false
                  },
                  "insertNulls": false,
                  "lineInterpolation": "smooth",
                  "lineWidth": 2,
                  "pointSize": 5,
                  "scaleDistribution": {
                    "type": "linear"
                  },
                  "showPoints": "never",
                  "showValues": false,
                  "spanNulls": false,
                  "stacking": {
                    "group": "A",
                    "mode": "normal"
                  },
                  "thresholdsStyle": {
                    "mode": "off"
                  }
                },
                "min": 0,
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": 0
                    }
                  ]
                },
                "unit": "reqps"
              },
              "overrides": []
            },
            "options": {
              "annotations": {
                "clustering": -1,
                "multiLane": false
              },
              "legend": {
                "calcs": [
                  "mean",
                  "max",
                  "lastNotNull"
                ],
                "displayMode": "table",
                "placement": "right",
                "showLegend": true,
                "sortBy": "Last *",
                "sortDesc": true
              },
              "tooltip": {
                "hideZeros": false,
                "mode": "multi",
                "sort": "desc"
              }
            }
          },
          "version": "13.0.2"
        }
      }
    },
    "panel-31": {
      "kind": "Panel",
      "spec": {
        "data": {
          "kind": "QueryGroup",
          "spec": {
            "queries": [
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "${datasource}"
                    },
                    "group": "prometheus",
                    "kind": "DataQuery",
                    "spec": {
                      "exemplar": false,
                      "expr": "topk($topk, sum by (zone, type) (rate(knot_zone_stats_response_code_total{job=~\"$job\", module=\"mod-stats\", zone=~\"$zone\"}[$__rate_interval])))",
                      "interval": "",
                      "legendFormat": "{{zone}} {{type}}"
                    },
                    "version": "v0"
                  },
                  "refId": "A"
                }
              }
            ],
            "queryOptions": {},
            "transformations": []
          }
        },
        "description": "",
        "id": 31,
        "links": [],
        "title": "Response codes/sec per zone (top $topk)",
        "vizConfig": {
          "group": "timeseries",
          "kind": "VizConfig",
          "spec": {
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "palette-classic"
                },
                "custom": {
                  "axisBorderShow": false,
                  "axisCenteredZero": false,
                  "axisColorMode": "text",
                  "axisLabel": "",
                  "axisPlacement": "auto",
                  "barAlignment": 0,
                  "barWidthFactor": 0.6,
                  "drawStyle": "line",
                  "fillOpacity": 60,
                  "gradientMode": "none",
                  "hideFrom": {
                    "legend": false,
                    "tooltip": false,
                    "viz": false
                  },
                  "insertNulls": false,
                  "lineInterpolation": "smooth",
                  "lineWidth": 2,
                  "pointSize": 5,
                  "scaleDistribution": {
                    "type": "linear"
                  },
                  "showPoints": "never",
                  "showValues": false,
                  "spanNulls": false,
                  "stacking": {
                    "group": "A",
                    "mode": "normal"
                  },
                  "thresholdsStyle": {
                    "mode": "off"
                  }
                },
                "min": 0,
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": 0
                    }
                  ]
                },
                "unit": "reqps"
              },
              "overrides": []
            },
            "options": {
              "annotations": {
                "clustering": -1,
                "multiLane": false
              },
              "legend": {
                "calcs": [
                  "mean",
                  "max",
                  "lastNotNull"
                ],
                "displayMode": "table",
                "placement": "right",
                "showLegend": true,
                "sortBy": "Last *",
                "sortDesc": true
              },
              "tooltip": {
                "hideZeros": false,
                "mode": "multi",
                "sort": "desc"
              }
            }
          },
          "version": "13.0.2"
        }
      }
    },
    "panel-32": {
      "kind": "Panel",
      "spec": {
        "data": {
          "kind": "QueryGroup",
          "spec": {
            "queries": [
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "${datasource}"
                    },
                    "group": "prometheus",
                    "kind": "DataQuery",
                    "spec": {
                      "exemplar": false,
                      "expr": "topk($topk, sum by (zone, type) (rate(knot_zone_stats_server_operation_total{job=~\"$job\", module=\"mod-stats\", zone=~\"$zone\", type=~\"axfr|ixfr|notify|update\"}[$__rate_interval])))",
                      "interval": "",
                      "legendFormat": "{{zone}} {{type}}"
                    },
                    "version": "v0"
                  },
                  "refId": "A"
                }
              }
            ],
            "queryOptions": {},
            "transformations": []
          }
        },
        "description": "",
        "id": 32,
        "links": [],
        "title": "Zone transfers & notifies/sec (top $topk)",
        "vizConfig": {
          "group": "timeseries",
          "kind": "VizConfig",
          "spec": {
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "palette-classic"
                },
                "custom": {
                  "axisBorderShow": false,
                  "axisCenteredZero": false,
                  "axisColorMode": "text",
                  "axisLabel": "",
                  "axisPlacement": "auto",
                  "barAlignment": 0,
                  "barWidthFactor": 0.6,
                  "drawStyle": "line",
                  "fillOpacity": 10,
                  "gradientMode": "none",
                  "hideFrom": {
                    "legend": false,
                    "tooltip": false,
                    "viz": false
                  },
                  "insertNulls": false,
                  "lineInterpolation": "smooth",
                  "lineWidth": 2,
                  "pointSize": 5,
                  "scaleDistribution": {
                    "type": "linear"
                  },
                  "showPoints": "never",
                  "showValues": false,
                  "spanNulls": false,
                  "stacking": {
                    "group": "A",
                    "mode": "none"
                  },
                  "thresholdsStyle": {
                    "mode": "off"
                  }
                },
                "min": 0,
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": 0
                    }
                  ]
                },
                "unit": "ops"
              },
              "overrides": []
            },
            "options": {
              "annotations": {
                "clustering": -1,
                "multiLane": false
              },
              "legend": {
                "calcs": [
                  "mean",
                  "max",
                  "lastNotNull"
                ],
                "displayMode": "table",
                "placement": "right",
                "showLegend": true,
                "sortBy": "Last *",
                "sortDesc": true
              },
              "tooltip": {
                "hideZeros": false,
                "mode": "multi",
                "sort": "desc"
              }
            }
          },
          "version": "13.0.2"
        }
      }
    },
    "panel-4": {
      "kind": "Panel",
      "spec": {
        "data": {
          "kind": "QueryGroup",
          "spec": {
            "queries": [
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "${datasource}"
                    },
                    "group": "prometheus",
                    "kind": "DataQuery",
                    "spec": {
                      "exemplar": false,
                      "expr": "count(count by (zone) (knot_zone_stats_server_operation_total{job=~\"$job\", module=\"mod-stats\", zone=~\"$zone\", type=\"query\"}))",
                      "interval": "",
                      "legendFormat": "zones"
                    },
                    "version": "v0"
                  },
                  "refId": "A"
                }
              }
            ],
            "queryOptions": {},
            "transformations": []
          }
        },
        "description": "Number of zones that have served at least one query.",
        "id": 4,
        "links": [],
        "title": "Zones receiving queries",
        "vizConfig": {
          "group": "stat",
          "kind": "VizConfig",
          "spec": {
            "fieldConfig": {
              "defaults": {
                "color": {
                  "fixedColor": "purple",
                  "mode": "fixed"
                },
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "purple",
                      "value": 0
                    }
                  ]
                },
                "unit": "short"
              },
              "overrides": []
            },
            "options": {
              "colorMode": "background",
              "graphMode": "area",
              "justifyMode": "center",
              "orientation": "auto",
              "percentChangeColorMode": "standard",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "showPercentChange": false,
              "text": {},
              "textMode": "auto",
              "wideLayout": true
            }
          },
          "version": "13.0.2"
        }
      }
    },
    "panel-40": {
      "kind": "Panel",
      "spec": {
        "data": {
          "kind": "QueryGroup",
          "spec": {
            "queries": [
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "${datasource}"
                    },
                    "group": "prometheus",
                    "kind": "DataQuery",
                    "spec": {
                      "exemplar": false,
                      "expr": "sum by (zone) (knot_zone_stats_server_operation_total{job=~\"$job\", module=\"mod-stats\", zone=~\"$zone\", type=\"query\"})",
                      "format": "table",
                      "instant": true,
                      "interval": "",
                      "legendFormat": "",
                      "range": false
                    },
                    "version": "v0"
                  },
                  "refId": "A"
                }
              },
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "${datasource}"
                    },
                    "group": "prometheus",
                    "kind": "DataQuery",
                    "spec": {
                      "exemplar": false,
                      "expr": "sum by (zone) (rate(knot_zone_stats_server_operation_total{job=~\"$job\", module=\"mod-stats\", zone=~\"$zone\", type=\"query\"}[$__rate_interval]))",
                      "format": "table",
                      "instant": true,
                      "interval": "",
                      "legendFormat": "",
                      "range": false
                    },
                    "version": "v0"
                  },
                  "refId": "B"
                }
              },
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "${datasource}"
                    },
                    "group": "prometheus",
                    "kind": "DataQuery",
                    "spec": {
                      "exemplar": false,
                      "expr": "sum by (zone) (rate(knot_zone_stats_request_protocol_total{job=~\"$job\", module=\"mod-stats\", zone=~\"$zone\", type=~\"udp.*\"}[$__rate_interval]))",
                      "format": "table",
                      "instant": true,
                      "interval": "",
                      "legendFormat": "",
                      "range": false
                    },
                    "version": "v0"
                  },
                  "refId": "C"
                }
              },
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "${datasource}"
                    },
                    "group": "prometheus",
                    "kind": "DataQuery",
                    "spec": {
                      "exemplar": false,
                      "expr": "sum by (zone) (rate(knot_zone_stats_request_protocol_total{job=~\"$job\", module=\"mod-stats\", zone=~\"$zone\", type=~\"tcp.*\"}[$__rate_interval]))",
                      "format": "table",
                      "instant": true,
                      "interval": "",
                      "legendFormat": "",
                      "range": false
                    },
                    "version": "v0"
                  },
                  "refId": "D"
                }
              },
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "${datasource}"
                    },
                    "group": "prometheus",
                    "kind": "DataQuery",
                    "spec": {
                      "exemplar": false,
                      "expr": "sum by (zone) (knot_zone_stats_response_code_total{job=~\"$job\", module=\"mod-stats\", zone=~\"$zone\", type=\"NXDOMAIN\"})",
                      "format": "table",
                      "instant": true,
                      "interval": "",
                      "legendFormat": "",
                      "range": false
                    },
                    "version": "v0"
                  },
                  "refId": "E"
                }
              },
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "${datasource}"
                    },
                    "group": "prometheus",
                    "kind": "DataQuery",
                    "spec": {
                      "exemplar": false,
                      "expr": "sum by (zone) (knot_zone_stats_response_bytes_total{job=~\"$job\", module=\"mod-stats\", zone=~\"$zone\", type=\"reply\"})",
                      "format": "table",
                      "instant": true,
                      "interval": "",
                      "legendFormat": "",
                      "range": false
                    },
                    "version": "v0"
                  },
                  "refId": "F"
                }
              }
            ],
            "queryOptions": {},
            "transformations": [
              {
                "group": "joinByField",
                "kind": "Transformation",
                "spec": {
                  "options": {
                    "byField": "zone",
                    "mode": "outer"
                  }
                }
              },
              {
                "group": "organize",
                "kind": "Transformation",
                "spec": {
                  "options": {
                    "excludeByName": {
                      "Time": true,
                      "Time 1": true,
                      "Time 2": true,
                      "Time 3": true,
                      "Time 4": true,
                      "Time 5": true,
                      "Time 6": true,
                      "job": true,
                      "job 1": true,
                      "job 2": true,
                      "job 3": true,
                      "job 4": true,
                      "job 5": true,
                      "job 6": true,
                      "module": true,
                      "module 1": true,
                      "module 2": true,
                      "module 3": true,
                      "module 4": true,
                      "module 5": true,
                      "module 6": true,
                      "type": true,
                      "type 1": true,
                      "type 2": true,
                      "type 3": true,
                      "type 4": true,
                      "type 5": true,
                      "type 6": true
                    },
                    "indexByName": {},
                    "renameByName": {
                      "Value #A": "Total queries",
                      "Value #B": "Queries/s",
                      "Value #C": "UDP q/s",
                      "Value #D": "TCP q/s",
                      "Value #E": "NXDOMAIN",
                      "Value #F": "Reply bytes",
                      "zone": "Zone"
                    }
                  }
                }
              },
              {
                "group": "sortBy",
                "kind": "Transformation",
                "spec": {
                  "options": {
                    "fields": {},
                    "sort": [
                      {
                        "desc": true,
                        "field": "Queries/s"
                      }
                    ]
                  }
                }
              }
            ]
          }
        },
        "description": "One row per zone. Instant queries joined on the zone label.",
        "id": 40,
        "links": [],
        "title": "Per-zone query summary",
        "vizConfig": {
          "group": "table",
          "kind": "VizConfig",
          "spec": {
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "custom": {
                  "align": "auto",
                  "cellOptions": {
                    "type": "auto"
                  },
                  "filterable": true,
                  "footer": {
                    "reducers": []
                  },
                  "inspect": false
                },
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "text",
                      "value": 0
                    }
                  ]
                }
              },
              "overrides": [
                {
                  "matcher": {
                    "id": "byName",
                    "options": "Queries/s"
                  },
                  "properties": [
                    {
                      "id": "unit",
                      "value": "reqps"
                    },
                    {
                      "id": "decimals",
                      "value": 3
                    },
                    {
                      "id": "custom.cellOptions",
                      "value": {
                        "mode": "gradient",
                        "type": "gauge",
                        "valueDisplayMode": "text"
                      }
                    },
                    {
                      "id": "color",
                      "value": {
                        "mode": "continuous-GrYlRd"
                      }
                    }
                  ]
                },
                {
                  "matcher": {
                    "id": "byName",
                    "options": "UDP q/s"
                  },
                  "properties": [
                    {
                      "id": "unit",
                      "value": "reqps"
                    },
                    {
                      "id": "decimals",
                      "value": 3
                    }
                  ]
                },
                {
                  "matcher": {
                    "id": "byName",
                    "options": "TCP q/s"
                  },
                  "properties": [
                    {
                      "id": "unit",
                      "value": "reqps"
                    },
                    {
                      "id": "decimals",
                      "value": 3
                    }
                  ]
                },
                {
                  "matcher": {
                    "id": "byName",
                    "options": "Total queries"
                  },
                  "properties": [
                    {
                      "id": "unit",
                      "value": "short"
                    }
                  ]
                },
                {
                  "matcher": {
                    "id": "byName",
                    "options": "NXDOMAIN"
                  },
                  "properties": [
                    {
                      "id": "unit",
                      "value": "short"
                    }
                  ]
                },
                {
                  "matcher": {
                    "id": "byName",
                    "options": "Reply bytes"
                  },
                  "properties": [
                    {
                      "id": "unit",
                      "value": "bytes"
                    }
                  ]
                }
              ]
            },
            "options": {
              "cellHeight": "sm",
              "footer": {
                "countRows": false,
                "fields": "",
                "reducer": [
                  "sum"
                ],
                "show": true
              },
              "showHeader": true,
              "sortBy": [
                {
                  "desc": true,
                  "displayName": "Queries/s"
                }
              ]
            }
          },
          "version": "13.0.2"
        }
      }
    },
    "panel-5": {
      "kind": "Panel",
      "spec": {
        "data": {
          "kind": "QueryGroup",
          "spec": {
            "queries": [
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "${datasource}"
                    },
                    "group": "prometheus",
                    "kind": "DataQuery",
                    "spec": {
                      "exemplar": false,
                      "expr": "max(sum by (zone) (rate(knot_zone_stats_server_operation_total{job=~\"$job\", module=\"mod-stats\", zone=~\"$zone\", type=\"query\"}[$__rate_interval])))",
                      "interval": "",
                      "legendFormat": "peak zone qps"
                    },
                    "version": "v0"
                  },
                  "refId": "A"
                }
              }
            ],
            "queryOptions": {},
            "transformations": []
          }
        },
        "description": "",
        "id": 5,
        "links": [],
        "title": "Busiest zone (queries/s)",
        "vizConfig": {
          "group": "stat",
          "kind": "VizConfig",
          "spec": {
            "fieldConfig": {
              "defaults": {
                "color": {
                  "fixedColor": "orange",
                  "mode": "fixed"
                },
                "decimals": 2,
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "orange",
                      "value": 0
                    }
                  ]
                },
                "unit": "reqps"
              },
              "overrides": []
            },
            "options": {
              "colorMode": "background",
              "graphMode": "area",
              "justifyMode": "center",
              "orientation": "auto",
              "percentChangeColorMode": "standard",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "showPercentChange": false,
              "text": {},
              "textMode": "auto",
              "wideLayout": true
            }
          },
          "version": "13.0.2"
        }
      }
    },
    "panel-6": {
      "kind": "Panel",
      "spec": {
        "data": {
          "kind": "QueryGroup",
          "spec": {
            "queries": [
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "${datasource}"
                    },
                    "group": "prometheus",
                    "kind": "DataQuery",
                    "spec": {
                      "exemplar": false,
                      "expr": "sum(rate(knot_zone_stats_server_operation_total{job=~\"$job\", module=\"mod-stats\", zone=~\"$zone\", type=\"query\"}[$__rate_interval])) / count(count by (zone) (knot_zone_stats_server_operation_total{job=~\"$job\", module=\"mod-stats\", zone=~\"$zone\", type=\"query\"}))",
                      "interval": "",
                      "legendFormat": "avg qps/zone"
                    },
                    "version": "v0"
                  },
                  "refId": "A"
                }
              }
            ],
            "queryOptions": {},
            "transformations": []
          }
        },
        "description": "",
        "id": 6,
        "links": [],
        "title": "Avg queries/s per active zone",
        "vizConfig": {
          "group": "stat",
          "kind": "VizConfig",
          "spec": {
            "fieldConfig": {
              "defaults": {
                "color": {
                  "fixedColor": "blue",
                  "mode": "fixed"
                },
                "decimals": 3,
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "blue",
                      "value": 0
                    }
                  ]
                },
                "unit": "reqps"
              },
              "overrides": []
            },
            "options": {
              "colorMode": "background",
              "graphMode": "area",
              "justifyMode": "center",
              "orientation": "auto",
              "percentChangeColorMode": "standard",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "showPercentChange": false,
              "text": {},
              "textMode": "auto",
              "wideLayout": true
            }
          },
          "version": "13.0.2"
        }
      }
    },
    "panel-7": {
      "kind": "Panel",
      "spec": {
        "data": {
          "kind": "QueryGroup",
          "spec": {
            "queries": [
              {
                "kind": "PanelQuery",
                "spec": {
                  "hidden": false,
                  "query": {
                    "datasource": {
                      "name": "${datasource}"
                    },
                    "group": "prometheus",
                    "kind": "DataQuery",
                    "spec": {
                      "exemplar": false,
                      "expr": "sum(rate(knot_zone_stats_response_code_total{job=~\"$job\", module=\"mod-stats\", zone=~\"$zone\", type=\"NXDOMAIN\"}[$__rate_interval])) / clamp_min(sum(rate(knot_zone_stats_response_code_total{job=~\"$job\", module=\"mod-stats\", zone=~\"$zone\"}[$__rate_interval])), 0.0001)",
                      "interval": "",
                      "legendFormat": "nxdomain share"
                    },
                    "version": "v0"
                  },
                  "refId": "A"
                }
              }
            ],
            "queryOptions": {},
            "transformations": []
          }
        },
        "description": "Share of responses answered NXDOMAIN across the selected zones.",
        "id": 7,
        "links": [],
        "title": "NXDOMAIN rate",
        "vizConfig": {
          "group": "stat",
          "kind": "VizConfig",
          "spec": {
            "fieldConfig": {
              "defaults": {
                "color": {
                  "fixedColor": "red",
                  "mode": "fixed"
                },
                "decimals": 2,
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "red",
                      "value": 0
                    }
                  ]
                },
                "unit": "percentunit"
              },
              "overrides": []
            },
            "options": {
              "colorMode": "background",
              "graphMode": "area",
              "justifyMode": "center",
              "orientation": "auto",
              "percentChangeColorMode": "standard",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "showPercentChange": false,
              "text": {},
              "textMode": "auto",
              "wideLayout": true
            }
          },
          "version": "13.0.2"
        }
      }
    }
  },
  "layout": {
    "kind": "RowsLayout",
    "spec": {
      "rows": [
        {
          "kind": "RowsLayoutRow",
          "spec": {
            "collapse": false,
            "hideHeader": true,
            "layout": {
              "kind": "GridLayout",
              "spec": {
                "items": [
                  {
                    "kind": "GridLayoutItem",
                    "spec": {
                      "element": {
                        "kind": "ElementReference",
                        "name": "panel-1"
                      },
                      "height": 3,
                      "width": 24,
                      "x": 0,
                      "y": 0
                    }
                  },
                  {
                    "kind": "GridLayoutItem",
                    "spec": {
                      "element": {
                        "kind": "ElementReference",
                        "name": "panel-2"
                      },
                      "height": 4,
                      "width": 4,
                      "x": 0,
                      "y": 3
                    }
                  },
                  {
                    "kind": "GridLayoutItem",
                    "spec": {
                      "element": {
                        "kind": "ElementReference",
                        "name": "panel-3"
                      },
                      "height": 4,
                      "width": 4,
                      "x": 4,
                      "y": 3
                    }
                  },
                  {
                    "kind": "GridLayoutItem",
                    "spec": {
                      "element": {
                        "kind": "ElementReference",
                        "name": "panel-4"
                      },
                      "height": 4,
                      "width": 4,
                      "x": 8,
                      "y": 3
                    }
                  },
                  {
                    "kind": "GridLayoutItem",
                    "spec": {
                      "element": {
                        "kind": "ElementReference",
                        "name": "panel-5"
                      },
                      "height": 4,
                      "width": 4,
                      "x": 12,
                      "y": 3
                    }
                  },
                  {
                    "kind": "GridLayoutItem",
                    "spec": {
                      "element": {
                        "kind": "ElementReference",
                        "name": "panel-6"
                      },
                      "height": 4,
                      "width": 4,
                      "x": 16,
                      "y": 3
                    }
                  },
                  {
                    "kind": "GridLayoutItem",
                    "spec": {
                      "element": {
                        "kind": "ElementReference",
                        "name": "panel-7"
                      },
                      "height": 4,
                      "width": 4,
                      "x": 20,
                      "y": 3
                    }
                  }
                ]
              }
            },
            "title": ""
          }
        },
        {
          "kind": "RowsLayoutRow",
          "spec": {
            "collapse": false,
            "hideHeader": false,
            "layout": {
              "kind": "GridLayout",
              "spec": {
                "items": [
                  {
                    "kind": "GridLayoutItem",
                    "spec": {
                      "element": {
                        "kind": "ElementReference",
                        "name": "panel-10"
                      },
                      "height": 10,
                      "width": 16,
                      "x": 0,
                      "y": 0
                    }
                  },
                  {
                    "kind": "GridLayoutItem",
                    "spec": {
                      "element": {
                        "kind": "ElementReference",
                        "name": "panel-11"
                      },
                      "height": 10,
                      "width": 8,
                      "x": 16,
                      "y": 0
                    }
                  }
                ]
              }
            },
            "title": "Queries per second, by zone"
          }
        },
        {
          "kind": "RowsLayoutRow",
          "spec": {
            "collapse": false,
            "hideHeader": false,
            "layout": {
              "kind": "GridLayout",
              "spec": {
                "items": [
                  {
                    "kind": "GridLayoutItem",
                    "spec": {
                      "element": {
                        "kind": "ElementReference",
                        "name": "panel-20"
                      },
                      "height": 9,
                      "width": 12,
                      "x": 0,
                      "y": 0
                    }
                  },
                  {
                    "kind": "GridLayoutItem",
                    "spec": {
                      "element": {
                        "kind": "ElementReference",
                        "name": "panel-21"
                      },
                      "height": 9,
                      "width": 12,
                      "x": 12,
                      "y": 0
                    }
                  },
                  {
                    "kind": "GridLayoutItem",
                    "spec": {
                      "element": {
                        "kind": "ElementReference",
                        "name": "panel-22"
                      },
                      "height": 9,
                      "width": 24,
                      "x": 0,
                      "y": 9
                    }
                  }
                ]
              }
            },
            "title": "Query volume, by zone"
          }
        },
        {
          "kind": "RowsLayoutRow",
          "spec": {
            "collapse": false,
            "hideHeader": false,
            "layout": {
              "kind": "GridLayout",
              "spec": {
                "items": [
                  {
                    "kind": "GridLayoutItem",
                    "spec": {
                      "element": {
                        "kind": "ElementReference",
                        "name": "panel-30"
                      },
                      "height": 9,
                      "width": 12,
                      "x": 0,
                      "y": 0
                    }
                  },
                  {
                    "kind": "GridLayoutItem",
                    "spec": {
                      "element": {
                        "kind": "ElementReference",
                        "name": "panel-31"
                      },
                      "height": 9,
                      "width": 12,
                      "x": 12,
                      "y": 0
                    }
                  },
                  {
                    "kind": "GridLayoutItem",
                    "spec": {
                      "element": {
                        "kind": "ElementReference",
                        "name": "panel-32"
                      },
                      "height": 8,
                      "width": 24,
                      "x": 0,
                      "y": 9
                    }
                  }
                ]
              }
            },
            "title": "Breakdown by transport and response code"
          }
        },
        {
          "kind": "RowsLayoutRow",
          "spec": {
            "collapse": false,
            "hideHeader": false,
            "layout": {
              "kind": "GridLayout",
              "spec": {
                "items": [
                  {
                    "kind": "GridLayoutItem",
                    "spec": {
                      "element": {
                        "kind": "ElementReference",
                        "name": "panel-40"
                      },
                      "height": 14,
                      "width": 24,
                      "x": 0,
                      "y": 0
                    }
                  }
                ]
              }
            },
            "title": "Per-zone summary table"
          }
        }
      ]
    }
  },
  "links": [],
  "liveNow": false,
  "preload": false,
  "tags": [
    "knot",
    "dns",
    "zones",
    "prometheus"
  ],
  "timeSettings": {
    "autoRefresh": "30s",
    "autoRefreshIntervals": [
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "1d"
    ],
    "fiscalYearStartMonth": 0,
    "from": "now-6h",
    "hideTimepicker": false,
    "timezone": "GMT",
    "to": "now"
  },
  "title": "Knot DNS - Queries per Zone v2",
  "variables": [
    {
      "kind": "DatasourceVariable",
      "spec": {
        "allowCustomValue": true,
        "current": {
          "text": "prometheus",
          "value": "ffo5nr9lz16v4a"
        },
        "description": "Prometheus data source scraping the Knot exporter",
        "hide": "dontHide",
        "includeAll": false,
        "label": "Data source",
        "multi": false,
        "name": "datasource",
        "options": [],
        "pluginId": "prometheus",
        "refresh": "onDashboardLoad",
        "regex": "",
        "skipUrlSync": false
      }
    },
    {
      "kind": "QueryVariable",
      "spec": {
        "allowCustomValue": true,
        "current": {
          "text": "All",
          "value": "$__all"
        },
        "definition": "label_values(knot_zone_stats_server_operation_total, job)",
        "description": "",
        "hide": "dontHide",
        "includeAll": true,
        "label": "Job",
        "multi": false,
        "name": "job",
        "options": [],
        "query": {
          "datasource": {
            "name": "${datasource}"
          },
          "group": "prometheus",
          "kind": "DataQuery",
          "spec": {
            "qryType": 1,
            "query": "label_values(knot_zone_stats_server_operation_total, job)",
            "refId": "PrometheusVariableQueryEditor-VariableQuery"
          },
          "version": "v0"
        },
        "refresh": "onDashboardLoad",
        "regex": "",
        "regexApplyTo": "value",
        "skipUrlSync": false,
        "sort": "alphabeticalAsc"
      }
    },
    {
      "kind": "QueryVariable",
      "spec": {
        "allowCustomValue": true,
        "current": {
          "text": [
            "All"
          ],
          "value": [
            "$__all"
          ]
        },
        "definition": "label_values(knot_zone_stats_server_operation_total, zone)",
        "description": "DNS zone(s) to include",
        "hide": "dontHide",
        "includeAll": true,
        "label": "Zone",
        "multi": true,
        "name": "zone",
        "options": [],
        "query": {
          "datasource": {
            "name": "${datasource}"
          },
          "group": "prometheus",
          "kind": "DataQuery",
          "spec": {
            "qryType": 1,
            "query": "label_values(knot_zone_stats_server_operation_total, zone)",
            "refId": "PrometheusVariableQueryEditor-VariableQuery"
          },
          "version": "v0"
        },
        "refresh": "onDashboardLoad",
        "regex": "",
        "regexApplyTo": "value",
        "skipUrlSync": false,
        "sort": "alphabeticalAsc"
      }
    },
    {
      "kind": "CustomVariable",
      "spec": {
        "allowCustomValue": true,
        "current": {
          "text": "10",
          "value": "10"
        },
        "description": "How many zones the topk() panels show",
        "hide": "dontHide",
        "includeAll": false,
        "label": "Top N",
        "multi": false,
        "name": "topk",
        "options": [],
        "query": "5,10,15,20,30,50,100",
        "skipUrlSync": false,
        "valuesFormat": "csv"
      }
    }
  ]
}
