diff --git a/dashboards/service/blocky.json b/dashboards/service/blocky.json index 6fc6f51..8d788d8 100644 --- a/dashboards/service/blocky.json +++ b/dashboards/service/blocky.json @@ -24,7 +24,7 @@ "editable": false, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 203, + "id": 65, "links": [], "panels": [ { @@ -197,33 +197,6 @@ "transparent": true, "type": "stat" }, - { - "description": "Enable Ad disable blocking", - "fieldConfig": { - "defaults": {}, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 42, - "options": { - "code": { - "language": "plaintext", - "showLineNumbers": false, - "showMiniMap": false - }, - "content": "\n
\n ×Done!\n
\n
\n \n \n \n
\n\n\n", - "mode": "html" - }, - "pluginVersion": "11.4.0", - "title": "Blocking status", - "transparent": true, - "type": "text" - }, { "datasource": { "type": "prometheus", @@ -252,8 +225,8 @@ "gridPos": { "h": 3, "w": 6, - "x": 0, - "y": 3 + "x": 12, + "y": 0 }, "id": 55, "options": { @@ -301,6 +274,145 @@ "transparent": true, "type": "stat" }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Time since last list refresh", + "fieldConfig": { + "defaults": { + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 6, + "x": 18, + "y": 0 + }, + "id": 57, + "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": false, + "expr": "sum(time() -blocky_last_list_group_refresh)/ sum(up{job=~\"$job\"})", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Last list refresh", + "transparent": true, + "type": "stat" + }, + { + "datasource": { + "uid": "${DS_PROMETHEUS}" + }, + "description": "Number of denylist entries", + "fieldConfig": { + "defaults": { + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 6, + "x": 0, + "y": 3 + }, + "id": 30, + "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(blocky_denylist_cache) / sum(up{job=~\"$job\"})", + "format": "table", + "instant": false, + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Denylist entries total", + "transparent": true, + "type": "stat" + }, { "datasource": { "uid": "${DS_PROMETHEUS}" @@ -383,20 +495,10 @@ "datasource": { "uid": "${DS_PROMETHEUS}" }, - "description": "Number of denylist entries", + "description": "Number of entries in the cache. Shows the last value", "fieldConfig": { "defaults": { - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], + "mappings": [], "thresholds": { "mode": "absolute", "steps": [ @@ -405,8 +507,7 @@ "value": null } ] - }, - "unit": "none" + } }, "overrides": [] }, @@ -414,18 +515,17 @@ "h": 3, "w": 6, "x": 12, - "y": 5 + "y": 3 }, - "id": 30, - "maxDataPoints": 100, + "id": 45, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", - "orientation": "horizontal", + "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": ["last"], "fields": "", "values": false }, @@ -441,7 +541,7 @@ "uid": "${DS_PROMETHEUS}" }, "exemplar": true, - "expr": "sum(blocky_denylist_cache) / sum(up{job=~\"$job\"})", + "expr": "sum(blocky_cache_entry_count)/ sum(up{job=~\"$job\"})", "format": "table", "instant": false, "interval": "", @@ -449,20 +549,23 @@ "refId": "A" } ], - "title": "Denylist entries total", + "title": "Cache entries count", "transparent": true, "type": "stat" }, { "datasource": { - "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, - "description": "Time since last list refresh", + "description": "Cache Hit/Miss ratio. 100 % means, all queries could be answered from the cache, 0% - all queries must be resolved via external DNS", "fieldConfig": { "defaults": { - "decimals": 0, + "color": { + "mode": "thresholds" + }, "mappings": [], + "max": 1, + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -472,7 +575,7 @@ } ] }, - "unit": "s" + "unit": "percentunit" }, "overrides": [] }, @@ -480,9 +583,9 @@ "h": 3, "w": 6, "x": 18, - "y": 5 + "y": 3 }, - "id": 57, + "id": 47, "options": { "colorMode": "value", "graphMode": "area", @@ -490,7 +593,7 @@ "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["lastNotNull"], + "calcs": ["mean"], "fields": "", "values": false }, @@ -505,16 +608,16 @@ "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, - "exemplar": false, - "expr": "sum(time() -blocky_last_list_group_refresh)/ sum(up{job=~\"$job\"})", + "exemplar": true, + "expr": "sum(increase(blocky_cache_hit_count[$__range])) / (sum(increase(blocky_cache_hit_count[$__range])) + sum(increase(blocky_cache_miss_count[$__range])))", "format": "table", - "instant": true, + "instant": false, "interval": "", "legendFormat": "", "refId": "A" } ], - "title": "Last list refresh", + "title": "Cache Hit/Miss ratio", "transparent": true, "type": "stat" }, @@ -677,7 +780,7 @@ "datasource": { "uid": "${DS_PROMETHEUS}" }, - "description": "Number of entries in the cache. Shows the last value", + "description": "Amount of prefetch queries per minute", "fieldConfig": { "defaults": { "mappings": [], @@ -687,6 +790,10 @@ { "color": "green", "value": null + }, + { + "color": "red", + "value": 80 } ] } @@ -697,9 +804,9 @@ "h": 3, "w": 6, "x": 12, - "y": 8 + "y": 6 }, - "id": 45, + "id": 51, "options": { "colorMode": "value", "graphMode": "area", @@ -707,7 +814,7 @@ "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { - "calcs": ["last"], + "calcs": ["lastNotNull"], "fields": "", "values": false }, @@ -723,15 +830,14 @@ "uid": "${DS_PROMETHEUS}" }, "exemplar": true, - "expr": "sum(blocky_cache_entry_count)/ sum(up{job=~\"$job\"})", + "expr": "sum(rate(blocky_prefetch_count[5m])) * 60", "format": "table", - "instant": false, "interval": "", "legendFormat": "", "refId": "A" } ], - "title": "Cache entries count", + "title": "Prefetch rate per min", "transparent": true, "type": "stat" }, @@ -739,7 +845,7 @@ "datasource": { "uid": "${DS_PROMETHEUS}" }, - "description": "Cache Hit/Miss ratio. 100 % means, all queries could be answered from the cache, 0% - all queries must be resolved via external DNS", + "description": "How many of cached entries were prefetched automatically", "fieldConfig": { "defaults": { "color": { @@ -765,9 +871,9 @@ "h": 3, "w": 6, "x": 18, - "y": 8 + "y": 6 }, - "id": 47, + "id": 58, "options": { "colorMode": "value", "graphMode": "area", @@ -791,7 +897,7 @@ "uid": "${DS_PROMETHEUS}" }, "exemplar": true, - "expr": "sum(increase(blocky_cache_hit_count[$__range])) / (sum(increase(blocky_cache_hit_count[$__range])) + sum(increase(blocky_cache_miss_count[$__range])))", + "expr": "sum(increase(blocky_prefetch_hit_count[$__range])) / (sum(increase(blocky_cache_hit_count[$__range])))", "format": "table", "instant": false, "interval": "", @@ -799,7 +905,7 @@ "refId": "A" } ], - "title": "Cache Hit/Miss ratio", + "title": "Prefetch Hit ratio", "transparent": true, "type": "stat" }, @@ -925,139 +1031,6 @@ "transparent": true, "type": "stat" }, - { - "datasource": { - "uid": "${DS_PROMETHEUS}" - }, - "description": "Amount of prefetch queries per minute", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 12, - "y": 11 - }, - "id": 51, - "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(rate(blocky_prefetch_count[5m])) * 60", - "format": "table", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "Prefetch rate per min", - "transparent": true, - "type": "stat" - }, - { - "datasource": { - "uid": "${DS_PROMETHEUS}" - }, - "description": "How many of cached entries were prefetched automatically", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "max": 1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 18, - "y": 11 - }, - "id": 58, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["mean"], - "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_prefetch_hit_count[$__range])) / (sum(increase(blocky_cache_hit_count[$__range])))", - "format": "table", - "instant": false, - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "Prefetch Hit ratio", - "transparent": true, - "type": "stat" - }, { "datasource": { "uid": "${DS_PROMETHEUS}" @@ -1100,8 +1073,8 @@ "gridPos": { "h": 3, "w": 6, - "x": 0, - "y": 12 + "x": 12, + "y": 9 }, "id": 36, "maxDataPoints": 100, @@ -1174,8 +1147,8 @@ "gridPos": { "h": 3, "w": 6, - "x": 6, - "y": 12 + "x": 18, + "y": 9 }, "id": 28, "maxDataPoints": 100, @@ -1280,7 +1253,7 @@ "h": 7, "w": 24, "x": 0, - "y": 15 + "y": 12 }, "id": 10, "options": { @@ -1381,7 +1354,7 @@ "h": 7, "w": 24, "x": 0, - "y": 22 + "y": 19 }, "id": 52, "options": { @@ -1440,7 +1413,7 @@ "h": 9, "w": 24, "x": 0, - "y": 29 + "y": 26 }, "id": 22, "options": { @@ -1528,7 +1501,7 @@ "h": 8, "w": 12, "x": 0, - "y": 38 + "y": 35 }, "id": 2, "maxDataPoints": 3, @@ -1547,10 +1520,11 @@ "values": false }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, - "pluginVersion": "6.6.2", + "pluginVersion": "11.4.0", "targets": [ { "datasource": { @@ -1597,7 +1571,7 @@ "h": 8, "w": 12, "x": 12, - "y": 38 + "y": 35 }, "id": 8, "maxDataPoints": 3, @@ -1616,10 +1590,11 @@ "values": false }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, - "pluginVersion": "6.6.2", + "pluginVersion": "11.4.0", "targets": [ { "datasource": { @@ -1666,7 +1641,7 @@ "h": 8, "w": 12, "x": 0, - "y": 46 + "y": 43 }, "id": 32, "maxDataPoints": 3, @@ -1685,10 +1660,11 @@ "values": false }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, - "pluginVersion": "6.6.2", + "pluginVersion": "11.4.0", "targets": [ { "datasource": { @@ -1735,7 +1711,7 @@ "h": 8, "w": 12, "x": 12, - "y": 46 + "y": 43 }, "id": 14, "maxDataPoints": 3, @@ -1754,9 +1730,11 @@ "values": false }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, + "pluginVersion": "11.4.0", "targets": [ { "datasource": { @@ -1803,7 +1781,7 @@ "h": 8, "w": 12, "x": 0, - "y": 54 + "y": 51 }, "id": 38, "maxDataPoints": 3, @@ -1822,9 +1800,11 @@ "values": false }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, + "pluginVersion": "11.4.0", "targets": [ { "datasource": { @@ -1871,7 +1851,7 @@ "h": 8, "w": 12, "x": 12, - "y": 54 + "y": 51 }, "id": 12, "maxDataPoints": 3, @@ -1890,9 +1870,11 @@ "values": false }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, + "pluginVersion": "11.4.0", "targets": [ { "datasource": { @@ -1916,7 +1898,7 @@ "preload": true, "refresh": "", "schemaVersion": 40, - "tags": ["service","dns"], + "tags": ["service", "dns"], "templating": { "list": [ { @@ -1966,6 +1948,5 @@ "timezone": "browser", "title": "Blocky", "uid": "6d9fbba15f227461149bffee5e61c025", - "version": 3, "weekStart": "" }