diff --git a/dashboards/service/blocky.json b/dashboards/service/blocky.json index 8d788d8..a862872 100644 --- a/dashboards/service/blocky.json +++ b/dashboards/service/blocky.json @@ -32,9 +32,12 @@ "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, - "description": "current service state", + "description": "", "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "mappings": [ { "options": { @@ -64,14 +67,13 @@ "value": 1 } ] - }, - "unit": "none" + } }, "overrides": [] }, "gridPos": { "h": 3, - "w": 6, + "w": 3, "x": 0, "y": 0 }, @@ -156,8 +158,8 @@ }, "gridPos": { "h": 3, - "w": 6, - "x": 6, + "w": 3, + "x": 3, "y": 0 }, "id": 43, @@ -205,6 +207,10 @@ "description": "Blocky [version](https://github.com/0xERR0R/blocky) number", "fieldConfig": { "defaults": { + "color": { + "fixedColor": "text", + "mode": "fixed" + }, "mappings": [], "thresholds": { "mode": "absolute", @@ -224,8 +230,8 @@ }, "gridPos": { "h": 3, - "w": 6, - "x": 12, + "w": 3, + "x": 6, "y": 0 }, "id": 55, @@ -284,12 +290,17 @@ "defaults": { "decimals": 0, "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null + }, + { + "color": "red", + "value": 86400 } ] }, @@ -299,8 +310,8 @@ }, "gridPos": { "h": 3, - "w": 6, - "x": 18, + "w": 3, + "x": 9, "y": 0 }, "id": 57, @@ -343,9 +354,13 @@ "datasource": { "uid": "${DS_PROMETHEUS}" }, - "description": "Number of denylist entries", + "description": "Number of all queries. Shows the last value", "fieldConfig": { "defaults": { + "color": { + "fixedColor": "text", + "mode": "fixed" + }, "mappings": [ { "options": { @@ -357,6 +372,7 @@ "type": "special" } ], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -366,7 +382,171 @@ } ] }, - "unit": "none" + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 6, + "x": 12, + "y": 0 + }, + "id": 4, + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "ceil(sum(increase(blocky_query_total[$__range]))) ", + "format": "table", + "instant": false, + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Query Count Total", + "transparent": true, + "type": "stat" + }, + { + "datasource": { + "uid": "${DS_PROMETHEUS}" + }, + "description": "Percentage of blocked queries", + "fieldConfig": { + "defaults": { + "decimals": 1, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "orange", + "value": 0.8 + }, + { + "color": "red", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 6, + "x": 18, + "y": 0 + }, + "id": 34, + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "sum(increase(blocky_response_total{response_type=\"BLOCKED\"}[$__range])) / sum(increase(blocky_query_total[$__range])) ", + "format": "table", + "instant": false, + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Queries blocked", + "transparent": true, + "type": "stat" + }, + { + "datasource": { + "uid": "${DS_PROMETHEUS}" + }, + "description": "Number of denylist entries", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "fixed" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" }, "overrides": [] }, @@ -380,7 +560,7 @@ "maxDataPoints": 100, "options": { "colorMode": "value", - "graphMode": "area", + "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", @@ -417,9 +597,10 @@ "datasource": { "uid": "${DS_PROMETHEUS}" }, - "description": "Average query response time for all query types", + "description": "Number of occured errors", "fieldConfig": { "defaults": { + "decimals": 0, "mappings": [ { "options": { @@ -435,30 +616,33 @@ "mode": "absolute", "steps": [ { - "color": "green", + "color": "#299c46", "value": null }, { - "color": "red", - "value": 80 + "color": "rgba(237, 129, 40, 0.89)", + "value": 1 + }, + { + "color": "#d44a3a" } ] }, - "unit": "ms" + "unit": "short" }, "overrides": [] }, "gridPos": { "h": 3, - "w": 6, + "w": 3, "x": 6, "y": 3 }, - "id": 24, + "id": 36, "maxDataPoints": 100, "options": { "colorMode": "value", - "graphMode": "area", + "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", @@ -479,7 +663,7 @@ "uid": "${DS_PROMETHEUS}" }, "exemplar": true, - "expr": "sum(increase(blocky_request_duration_ms_sum[$__range])) / sum(increase(blocky_request_duration_ms_count[$__range]))", + "expr": "sum(increase(blocky_error_total[$__range]))", "format": "table", "instant": false, "interval": "", @@ -487,7 +671,90 @@ "refId": "A" } ], - "title": "Avg response time", + "title": "Error count", + "transparent": true, + "type": "stat" + }, + { + "datasource": { + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "decimals": 1, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 128000000 + }, + { + "color": "red", + "value": 200000000 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 9, + "y": 3 + }, + "id": 28, + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "sum(go_memstats_sys_bytes{job=~\"$job\"})/sum(up{job=~\"$job\"})", + "format": "table", + "instant": false, + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Memory allocated", "transparent": true, "type": "stat" }, @@ -498,6 +765,10 @@ "description": "Number of entries in the cache. Shows the last value", "fieldConfig": { "defaults": { + "color": { + "fixedColor": "text", + "mode": "fixed" + }, "mappings": [], "thresholds": { "mode": "absolute", @@ -572,6 +843,14 @@ { "color": "green", "value": null + }, + { + "color": "#EAB839", + "value": 0.8 + }, + { + "color": "red", + "value": 1 } ] }, @@ -625,20 +904,14 @@ "datasource": { "uid": "${DS_PROMETHEUS}" }, - "description": "Number of all queries. Shows the last value", + "description": "Amount of performed DNS queries to prefetch cached queries", "fieldConfig": { "defaults": { - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], + "color": { + "fixedColor": "text", + "mode": "fixed" + }, + "mappings": [], "thresholds": { "mode": "absolute", "steps": [ @@ -648,23 +921,22 @@ } ] }, - "unit": "none" + "unit": "short" }, "overrides": [] }, "gridPos": { "h": 3, - "w": 6, + "w": 3, "x": 0, "y": 6 }, - "id": 4, - "maxDataPoints": 100, + "id": 53, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", - "orientation": "horizontal", + "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["lastNotNull"], @@ -683,15 +955,14 @@ "uid": "${DS_PROMETHEUS}" }, "exemplar": true, - "expr": "ceil(sum(increase(blocky_query_total[$__range]))) ", + "expr": "ceil(sum(increase(blocky_prefetch_count[$__range])))", "format": "table", - "instant": false, "interval": "", "legendFormat": "", "refId": "A" } ], - "title": "Query Count Total", + "title": "Prefetch count", "transparent": true, "type": "stat" }, @@ -699,10 +970,74 @@ "datasource": { "uid": "${DS_PROMETHEUS}" }, - "description": "Percentage of blocked queries", + "description": "Amount of unique domains in the prefetched cache", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 3, + "y": 6 + }, + "id": 49, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": true, + "expr": "sum(blocky_prefetch_domain_name_cache_count)/ sum(up{job=~\"$job\"})", + "format": "table", + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Prefetch domain count", + "transparent": true, + "type": "stat" + }, + { + "datasource": { + "uid": "${DS_PROMETHEUS}" + }, + "description": "Average query response time for all query types", "fieldConfig": { "defaults": { - "decimals": 2, "mappings": [ { "options": { @@ -714,8 +1049,6 @@ "type": "special" } ], - "max": 1, - "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -729,7 +1062,7 @@ } ] }, - "unit": "percentunit" + "unit": "ms" }, "overrides": [] }, @@ -739,7 +1072,7 @@ "x": 6, "y": 6 }, - "id": 34, + "id": 24, "maxDataPoints": 100, "options": { "colorMode": "value", @@ -764,7 +1097,7 @@ "uid": "${DS_PROMETHEUS}" }, "exemplar": true, - "expr": "sum(increase(blocky_response_total{response_type=\"BLOCKED\"}[$__range])) / sum(increase(blocky_query_total[$__range])) ", + "expr": "sum(increase(blocky_request_duration_ms_sum[$__range])) / sum(increase(blocky_request_duration_ms_count[$__range]))", "format": "table", "instant": false, "interval": "", @@ -772,7 +1105,7 @@ "refId": "A" } ], - "title": "Queries blocked", + "title": "Avg response time", "transparent": true, "type": "stat" }, @@ -860,6 +1193,14 @@ { "color": "green", "value": null + }, + { + "color": "red", + "value": 0 + }, + { + "color": "green", + "value": 0.5 } ] }, @@ -909,284 +1250,6 @@ "transparent": true, "type": "stat" }, - { - "datasource": { - "uid": "${DS_PROMETHEUS}" - }, - "description": "Amount of performed DNS queries to prefetch cached queries", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 0, - "y": 9 - }, - "id": 53, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["lastNotNull"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": true, - "expr": "ceil(sum(increase(blocky_prefetch_count[$__range])))", - "format": "table", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "Prefetch count", - "transparent": true, - "type": "stat" - }, - { - "datasource": { - "uid": "${DS_PROMETHEUS}" - }, - "description": "Amount of unique domains in the prefetched cache", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 6, - "y": 9 - }, - "id": 49, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["lastNotNull"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": true, - "expr": "sum(blocky_prefetch_domain_name_cache_count)/ sum(up{job=~\"$job\"})", - "format": "table", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "Prefetch domain count", - "transparent": true, - "type": "stat" - }, - { - "datasource": { - "uid": "${DS_PROMETHEUS}" - }, - "description": "Number of occured errors", - "fieldConfig": { - "defaults": { - "decimals": 0, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#299c46", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 1 - }, - { - "color": "#d44a3a" - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 12, - "y": 9 - }, - "id": 36, - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["lastNotNull"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": true, - "expr": "sum(increase(blocky_error_total[$__range]))", - "format": "table", - "instant": false, - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "Error count", - "transparent": true, - "type": "stat" - }, - { - "datasource": { - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "decimals": 2, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 18, - "y": 9 - }, - "id": 28, - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["lastNotNull"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": true, - "expr": "sum(go_memstats_sys_bytes{job=~\"$job\"})/sum(up{job=~\"$job\"})", - "format": "table", - "instant": false, - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "Memory allocated", - "transparent": true, - "type": "stat" - }, { "datasource": { "type": "prometheus", @@ -1195,7 +1258,8 @@ "fieldConfig": { "defaults": { "color": { - "mode": "palette-classic" + "fixedColor": "blue", + "mode": "fixed" }, "custom": { "axisBorderShow": false, @@ -1253,7 +1317,7 @@ "h": 7, "w": 24, "x": 0, - "y": 12 + "y": 9 }, "id": 10, "options": { @@ -1354,7 +1418,7 @@ "h": 7, "w": 24, "x": 0, - "y": 19 + "y": 16 }, "id": 52, "options": { @@ -1413,7 +1477,7 @@ "h": 9, "w": 24, "x": 0, - "y": 26 + "y": 23 }, "id": 22, "options": { @@ -1499,9 +1563,9 @@ }, "gridPos": { "h": 8, - "w": 12, + "w": 6, "x": 0, - "y": 35 + "y": 32 }, "id": 2, "maxDataPoints": 3, @@ -1569,9 +1633,9 @@ }, "gridPos": { "h": 8, - "w": 12, - "x": 12, - "y": 35 + "w": 6, + "x": 6, + "y": 32 }, "id": 8, "maxDataPoints": 3, @@ -1614,6 +1678,146 @@ "transparent": true, "type": "piechart" }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "decimals": 0, + "mappings": [], + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 6, + "x": 12, + "y": 32 + }, + "id": 14, + "maxDataPoints": 3, + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "values": ["value", "percent"] + }, + "pieType": "donut", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": false, + "expr": " sort_desc(sum by (reason) (ceil(increase(blocky_response_total[$__range]))))", + "format": "time_series", + "instant": true, + "interval": "", + "legendFormat": "{{reason}}", + "refId": "A" + } + ], + "title": "Response Reasons", + "transparent": true, + "type": "piechart" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "decimals": 0, + "mappings": [], + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 6, + "x": 18, + "y": 32 + }, + "id": 12, + "maxDataPoints": 3, + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "values": ["value", "percent"] + }, + "pieType": "donut", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "exemplar": false, + "expr": " sort_desc(sum by (response_code) (ceil(increase(blocky_response_total[$__range]))))", + "format": "time_series", + "instant": true, + "interval": "", + "legendFormat": "{{response_code}}", + "refId": "A" + } + ], + "title": "Response status", + "transparent": true, + "type": "piechart" + }, { "datasource": { "type": "prometheus", @@ -1641,7 +1845,7 @@ "h": 8, "w": 12, "x": 0, - "y": 43 + "y": 40 }, "id": 32, "maxDataPoints": 3, @@ -1711,77 +1915,7 @@ "h": 8, "w": 12, "x": 12, - "y": 43 - }, - "id": 14, - "maxDataPoints": 3, - "options": { - "legend": { - "calcs": [], - "displayMode": "table", - "placement": "right", - "showLegend": true, - "values": ["value", "percent"] - }, - "pieType": "donut", - "reduceOptions": { - "calcs": ["lastNotNull"], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": false, - "expr": " sort_desc(sum by (reason) (ceil(increase(blocky_response_total[$__range]))))", - "format": "time_series", - "instant": true, - "interval": "", - "legendFormat": "{{reason}}", - "refId": "A" - } - ], - "title": "Response Reasons", - "transparent": true, - "type": "piechart" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "decimals": 0, - "mappings": [], - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 51 + "y": 40 }, "id": 38, "maxDataPoints": 3, @@ -1823,76 +1957,6 @@ "title": "Response Type", "transparent": true, "type": "piechart" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "decimals": 0, - "mappings": [], - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 51 - }, - "id": 12, - "maxDataPoints": 3, - "options": { - "legend": { - "calcs": [], - "displayMode": "table", - "placement": "right", - "showLegend": true, - "values": ["value", "percent"] - }, - "pieType": "donut", - "reduceOptions": { - "calcs": ["lastNotNull"], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "exemplar": false, - "expr": " sort_desc(sum by (response_code) (ceil(increase(blocky_response_total[$__range]))))", - "format": "time_series", - "instant": true, - "interval": "", - "legendFormat": "{{response_code}}", - "refId": "A" - } - ], - "title": "Response status", - "transparent": true, - "type": "piechart" } ], "preload": true,