{ "__inputs": [ { "name": "DS_PROMETHEUS", "label": "Prometheus", "description": "", "type": "datasource", "pluginId": "prometheus", "pluginName": "Prometheus" }, { "name": "VAR_PROM_PREFIX", "type": "constant", "label": "prom_prefix", "value": "dnscollector", "description": "" } ], "__elements": {}, "__requires": [ { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "11.2.2" }, { "type": "panel", "id": "piechart", "name": "Pie chart", "version": "" }, { "type": "datasource", "id": "prometheus", "name": "Prometheus", "version": "1.0.0" }, { "type": "panel", "id": "stat", "name": "Stat", "version": "" }, { "type": "panel", "id": "table", "name": "Table", "version": "" }, { "type": "panel", "id": "timeseries", "name": "Time series", "version": "" } ], "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "datasource", "uid": "grafana" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "target": { "limit": 100, "matchAny": false, "tags": [], "type": "dashboard" }, "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "gnetId": 16630, "graphTooltip": 0, "id": null, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "light-purple", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 3, "w": 2, "x": 0, "y": 0 }, "id": 79, "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "center", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "/^version$/", "values": false }, "showPercentChange": false, "text": { "valueSize": 15 }, "textMode": "value", "wideLayout": true }, "pluginVersion": "11.2.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, "expr": "${prom_prefix}_build_info{job=~\"$job\"}", "format": "table", "hide": false, "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "__auto", "range": true, "refId": "A", "step": 240 } ], "title": "DNScollector", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "light-orange", "value": null } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 2, "x": 2, "y": 0 }, "id": 56, "maxDataPoints": 100, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "center", "orientation": "vertical", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "text": {}, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.2.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, "expr": "count(sum(${prom_prefix}_dnsmessages_total{job=~\"$job\", stream_id=~\"$stream_id\"}) by (stream_id))", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": " ", "range": true, "refId": "A", "step": 240 } ], "title": "Total Streams", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "dark-orange", "value": null } ] }, "unit": "ops" }, "overrides": [] }, "gridPos": { "h": 3, "w": 2, "x": 4, "y": 0 }, "id": 40, "maxDataPoints": 100, "options": { "colorMode": "background", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "text": {}, "textMode": "value_and_name", "wideLayout": true }, "pluginVersion": "11.2.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, "expr": "sum (${prom_prefix}_throughput_ops{job=~\"$job\", stream_id=~\"$stream_id\"})", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": " ", "range": true, "refId": "A", "step": 240 } ], "title": "Throughput", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "light-orange", "value": null } ] }, "unit": "ops" }, "overrides": [] }, "gridPos": { "h": 3, "w": 2, "x": 6, "y": 0 }, "id": 78, "maxDataPoints": 100, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "center", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "text": {}, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.2.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, "expr": "sum (${prom_prefix}_throughput_ops_max{job=~\"$job\", stream_id=~\"$stream_id\"})", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "Maximum", "range": true, "refId": "A", "step": 240 } ], "title": "Maximum", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "blue", "value": null } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 3, "w": 3, "x": 8, "y": 0 }, "id": 77, "maxDataPoints": 100, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "center", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "text": {}, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.2.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, "expr": "sum (${prom_prefix}_total_requesters_lru{job=~\"$job\", stream_id=~\"$stream_id\"})", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": " ", "range": true, "refId": "A", "step": 240 } ], "title": "Total Clients", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "blue", "value": null } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 3, "w": 3, "x": 11, "y": 0 }, "id": 27, "maxDataPoints": 100, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "center", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "text": {}, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.2.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, "expr": "sum (${prom_prefix}_total_domains_lru{job=~\"$job\", stream_id=~\"$stream_id\"})", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": " ", "range": true, "refId": "A", "step": 240 } ], "title": "Total Domains", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "blue", "value": null } ] }, "unit": "decbytes" }, "overrides": [] }, "gridPos": { "h": 3, "w": 2, "x": 14, "y": 0 }, "id": 81, "maxDataPoints": 100, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "center", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "text": {}, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.2.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, "expr": "sum (${prom_prefix}_bytes_total{job=~\"$job\", stream_id=~\"$stream_id\"})", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": " ", "range": true, "refId": "A", "step": 240 } ], "title": "Total Bytes", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "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": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 16, "y": 0 }, "id": 84, "options": { "legend": { "calcs": [ "mean", "min", "max" ], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "8.2.6", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, "expr": "sum (increase(${prom_prefix}_dnsmessages_total{job=~\"$job\",stream_id=~\"$stream_id\"}[5m]))", "interval": "", "legendFormat": "Pkts [5m] rate", "range": true, "refId": "A" } ], "title": "Packets [rate-5m]", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "hideFrom": { "legend": false, "tooltip": false, "viz": false } }, "mappings": [], "unit": "short" }, "overrides": [] }, "gridPos": { "h": 8, "w": 4, "x": 0, "y": 3 }, "id": 93, "options": { "displayLabels": [ "percent" ], "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true, "values": [ "percent" ] }, "pieType": "donut", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "9.2.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, "expr": "sum by (operation) (increase(${prom_prefix}_operations_total{job=~\"$job\", stream_id=~\"$stream_id\"}[$__range])) != 0", "format": "time_series", "instant": false, "interval": "", "legendFormat": "__auto", "refId": "A" } ], "title": "DNS messages per operations", "type": "piechart" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "hideFrom": { "legend": false, "tooltip": false, "viz": false } }, "mappings": [], "unit": "short" }, "overrides": [] }, "gridPos": { "h": 8, "w": 4, "x": 4, "y": 3 }, "id": 74, "options": { "displayLabels": [ "percent" ], "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true, "values": [ "percent" ] }, "pieType": "donut", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "9.2.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, "expr": "sum by (return_code) (increase(${prom_prefix}_rcodes_total{job=~\"$job\", stream_id=~\"$stream_id\", return_code!=\"-\"}[$__range])) != 0", "format": "time_series", "instant": false, "interval": "", "legendFormat": "{{query_type}}", "refId": "A" } ], "title": "Replies per return code", "type": "piechart" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "hideFrom": { "legend": false, "tooltip": false, "viz": false } }, "mappings": [], "unit": "short" }, "overrides": [] }, "gridPos": { "h": 8, "w": 5, "x": 8, "y": 3 }, "id": 70, "options": { "displayLabels": [ "percent" ], "legend": { "displayMode": "table", "placement": "right", "showLegend": true, "values": [ "percent" ] }, "pieType": "donut", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "9.2.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, "expr": "sum by (query_type) (increase(${prom_prefix}_qtypes_total{job=~\"$job\", stream_id=~\"$stream_id\"}[$__range])) != 0", "format": "time_series", "instant": false, "interval": "", "legendFormat": "{{query_type}}", "refId": "A" } ], "title": "Queries per type", "type": "piechart" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "hideFrom": { "legend": false, "tooltip": false, "viz": false } }, "mappings": [] }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 13, "y": 3 }, "id": 76, "options": { "legend": { "displayMode": "table", "placement": "right", "showLegend": true, "values": [ "percent" ] }, "pieType": "donut", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "9.2.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, "expr": "sum by (net_transport) (increase(${prom_prefix}_ipprotocol_total{job=~\"$job\", stream_id=~\"$stream_id\"}[$__range])) != 0", "format": "time_series", "hide": false, "instant": false, "interval": "", "legendFormat": "{{net_transport}}", "refId": "B" } ], "title": "Transports", "type": "piechart" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "description": "", "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": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "decimals": 2, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 5, "w": 8, "x": 16, "y": 6 }, "id": 92, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "right", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "8.2.6", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, "expr": "topk(20,sum(rate(${prom_prefix}_top_requesters{job=~\"$job\", stream_id=~\"$stream_id\"}[5m])) by (ip))", "interval": "", "legendFormat": "{{ip}}", "range": true, "refId": "A" } ], "title": "Top Clients [rate-5m] ", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "hideFrom": { "legend": false, "tooltip": false, "viz": false } }, "mappings": [] }, "overrides": [ { "matcher": { "id": "byName", "options": "INET" }, "properties": [ { "id": "displayName", "value": "IPv4" } ] } ] }, "gridPos": { "h": 4, "w": 3, "x": 13, "y": 7 }, "id": 75, "options": { "legend": { "displayMode": "table", "placement": "right", "showLegend": true, "values": [ "percent" ] }, "pieType": "donut", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "9.2.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, "expr": "sum by (net_family) (increase(${prom_prefix}_ipversion_total{job=~\"$job\", stream_id=~\"$stream_id\", return_code != \"-\"}[$__range])) != 0", "format": "time_series", "hide": false, "instant": false, "interval": "", "legendFormat": "{{net_family}}", "refId": "B" } ], "title": "IP Protocols", "type": "piechart" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [ { "matcher": { "id": "byName", "options": "Domains" }, "properties": [ { "id": "custom.width", "value": 1040 } ] } ] }, "gridPos": { "h": 11, "w": 16, "x": 0, "y": 11 }, "id": 62, "options": { "cellHeight": "sm", "footer": { "countRows": false, "enablePagination": false, "fields": "", "reducer": [ "sum" ], "show": false }, "frameIndex": 0, "showHeader": false, "sortBy": [] }, "pluginVersion": "11.2.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, "expr": "topk(20, sum by(domain) (increase(${prom_prefix}_top_noerror_domains{job=~\"$job\", stream_id=~\"$stream_id\"}[$__range]))) != 0", "format": "table", "instant": true, "interval": "", "legendFormat": "", "range": false, "refId": "NOERROR" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, "expr": "topk(20, sum by(domain) (increase(${prom_prefix}_top_nonexistent_domains{job=~\"$job\", stream_id=~\"$stream_id\"}[$__range]))) != 0", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "__auto", "refId": "NXDOMAIN" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, "expr": "topk(20, sum by(domain) (increase(${prom_prefix}_top_servfail_domains{job=~\"$job\", stream_id=~\"$stream_id\"}[$__range]))) != 0", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "__auto", "refId": "SERVFAIL" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, "expr": "topk(20, sum by(domain) (increase(${prom_prefix}_top_suspicious{job=~\"$job\", stream_id=~\"$stream_id\"}[$__range]))) != 0", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "__auto", "refId": "Suspicious" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, "expr": "topk(20, sum by(suffix) (increase(${prom_prefix}_top_tlds{job=~\"$job\", stream_id=~\"$stream_id\"}[$__range]))) != 0", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "__auto", "refId": "TLDS" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, "expr": "topk(20, sum by(ip) (increase(${prom_prefix}_top_requesters{job=~\"$job\", stream_id=~\"$stream_id\"}[$__range]))) != 0", "format": "table", "hide": false, "instant": true, "interval": "", "legendFormat": "__auto", "refId": "CLIENTS" } ], "title": "Top", "transformations": [ { "id": "renameByRegex", "options": { "regex": "Value #NOERROR", "renamePattern": "NoError Hits" } }, { "id": "renameByRegex", "options": { "regex": "Value #NXDOMAIN", "renamePattern": "NonExistent Hits" } }, { "id": "renameByRegex", "options": { "regex": "Value #SERVFAIL", "renamePattern": "ServFail Hits" } }, { "id": "renameByRegex", "options": { "regex": "domain", "renamePattern": "Top Domains" } }, { "id": "renameByRegex", "options": { "regex": "Value #Suspicious", "renamePattern": "Suspicious Hits" } }, { "id": "renameByRegex", "options": { "regex": "Value #TLDS", "renamePattern": "TLDs Hits" } }, { "id": "renameByRegex", "options": { "regex": "Value #CLIENTS", "renamePattern": "Clients Hits" } }, { "id": "renameByRegex", "options": { "regex": "ip", "renamePattern": "Top Query IPs" } }, { "id": "renameByRegex", "options": { "regex": "suffix", "renamePattern": "Top TLDs" } }, { "id": "groupBy", "options": { "fields": { "Clients Hits": { "aggregations": [], "operation": "groupby" }, "NoError Hits": { "aggregations": [], "operation": "groupby" }, "NonExistent Hits": { "aggregations": [], "operation": "groupby" }, "ServFail Hits": { "aggregations": [], "operation": "groupby" }, "Suspicious Hits": { "aggregations": [], "operation": "groupby" }, "TLDs Hits": { "aggregations": [], "operation": "groupby" }, "Top Domains": { "aggregations": [], "operation": "groupby" }, "Top Query IPs": { "aggregations": [], "operation": "groupby" }, "Top TLDs": { "aggregations": [], "operation": "groupby" } } } } ], "type": "table" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 11, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineStyle": { "fill": "solid" }, "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "decimals": 2, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 16, "y": 11 }, "id": 88, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "right", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, "expr": "sum(rate(${prom_prefix}_qtypes_total{job=~\"$job\",stream_id=~\"$stream_id\"}[5m])) by (query_type)", "interval": "", "legendFormat": "{{ query_type }}", "range": true, "refId": "A" } ], "title": "Packet by Qtype [rate-5m]", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 11, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineStyle": { "fill": "solid" }, "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "decimals": 2, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 5, "w": 8, "x": 16, "y": 17 }, "id": 90, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "right", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": true, "expr": "sum(rate(${prom_prefix}_rcodes_total{job=~\"$job\", stream_id=~\"$stream_id\", return_code!=\"-\"}[5m])) by ( return_code )", "interval": "", "legendFormat": "{{ return_code }}", "range": true, "refId": "A" } ], "title": "Packet by Return Code [rate-5m]", "type": "timeseries" } ], "refresh": "5s", "schemaVersion": 39, "tags": [], "templating": { "list": [ { "hide": 2, "name": "prom_prefix", "query": "${VAR_PROM_PREFIX}", "skipUrlSync": false, "type": "constant", "current": { "value": "${VAR_PROM_PREFIX}", "text": "${VAR_PROM_PREFIX}", "selected": false }, "options": [ { "value": "${VAR_PROM_PREFIX}", "text": "${VAR_PROM_PREFIX}", "selected": false } ] }, { "current": {}, "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "definition": "label_values(job)", "hide": 0, "includeAll": false, "label": "Job", "multi": false, "name": "job", "options": [], "query": { "query": "label_values(job)", "refId": "StandardVariableQuery" }, "refresh": 1, "regex": "/dnscollector.*/", "skipUrlSync": false, "sort": 0, "type": "query" }, { "current": {}, "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "definition": "label_values({job=\"$job\"},stream_id)", "hide": 0, "includeAll": true, "label": "Stream", "multi": true, "name": "stream_id", "options": [], "query": { "query": "label_values({job=\"$job\"},stream_id)", "refId": "StandardVariableQuery" }, "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "type": "query" } ] }, "time": { "from": "now-5m", "to": "now" }, "timepicker": {}, "timezone": "", "title": "DNScollector - Dashboard for Prometheus", "uid": "6uPErf6nz", "version": 2, "weekStart": "" }