Add "last domains blocked" to Grafana dashboard #1035
Unanswered
atcasanova
asked this question in
Q&A
Replies: 2 comments
|
shamelessly advertise my dashboard https://github.com/shizunge/blocky-postgresql-dashboard |
0 replies
|
it looks a lot like what i need, but my setup is using prometheus |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi. I'm using this json that I found in grafana, and i would appreciate some help adding a panel showing last domains blocked, or top domains blocked, maybe both. It's my first time using grafana.
Thanks in advance.
{ "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "datasource", "uid": "grafana" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": 1, "links": [ { "icon": "external link", "tags": [], "title": "blocky @ GitHub", "tooltip": "open GitHub repo", "type": "link", "url": "https://github.com/0xERR0R/blocky" } ], "liveNow": false, "panels": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "description": "current service state", "fieldConfig": { "defaults": { "mappings": [ { "options": { "0": { "text": "down" }, "1": { "text": "up" } }, "type": "value" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "#d44a3a" }, { "color": "rgba(237, 129, 40, 0.89)", "value": 1 }, { "color": "#299c46", "value": 1 } ] }, "unit": "none" }, "overrides": [] }, "id": 26, "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "9.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": "sum(up{job=\"blocky\"})", "instant": true, "interval": "", "legendFormat": "", "refId": "A" } ], "title": "State", "transparent": true, "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "description": "Is blocking enabled?", "fieldConfig": { "defaults": { "mappings": [ { "options": { "0": { "text": "off" }, "1": { "text": "on" } }, "type": "value" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "#d44a3a" }, { "color": "rgba(237, 129, 40, 0.89)", "value": 1 }, { "color": "#299c46", "value": 1 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 6, "x": 6, "y": 0 }, "id": 43, "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "value" }, "pluginVersion": "9.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": "blocky_blocking_enabled", "instant": true, "interval": "", "legendFormat": "", "refId": "A" } ], "title": "Blocking", "transparent": true, "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "description": "Enable od disable blocking", "gridPos": { "h": 3, "w": 12, "x": 12, "y": 0 }, "id": 42, "options": { "code": { "language": "plaintext", "showLineNumbers": false, "showMiniMap": false }, "content": "<style>\n\n.blocky_btn {\n border: none;\n cursor: pointer; \n padding: 12px;\n font-size: 16px;\n min-width: 100px\n}\n\n.blocky_greenbtn { \n background-color: #4CAF50;\n color: white;\n}\n\n.blocky_redbtn { \n background-color: #AF504C;\n color: white;\n}\n\n\n.blocky_alert {\n font-size: 14px\n}\n</style>\n<div class=\"blocky_alert blocky_alert-warning fade in\">\n <a href=\"#\" class=\"close\" data-dismiss=\"blocky_alert\" aria-label=\"close\" style=\"text-decoration:none\">×</a>Done!\n</div>\n<div>\n <button class=\"blocky_btn blocky_greenbtn\" onclick=\"blocky_status_enable()\">On</button>\n <button class=\"blocky_btn blocky_redbtn\" onclick=\"blocky_status_disable5m()\">Off 5m</button>\n <button class=\"blocky_btn blocky_redbtn\" onclick=\"blocky_status_disable30m()\">Off 30m</button>\n<div>\n\n\n<script type=\"text/javascript\">\n\nfunction blocky_status_disable() {\n blocky_status_switch(false, 0)\n}\n\nfunction blocky_status_disable5m() {\n blocky_status_switch(false, 5*60)\n}\n\nfunction blocky_status_disable30m() {\n blocky_status_switch(false, 30*60)\n}\n\nfunction blocky_status_enable() {\n blocky_status_switch(true, 0)\n}\n\nfunction blocky_status_switch(enable, duration) {\n var url = '$blocky_url';\n op = enable ? 'enable' : 'disable?duration='+duration+\"s\"\n $.get(url + '/api/blocking/'+op, function(data) {\n showAlert()\n })\n .fail(function() {\n alert( \"error\" );\n })\n}\n\nvar showAlert = function() {\n\t// first show the alert\n $('.blocky_alert').show().fadeTo(500, 1);\n \n // Now set a timeout to hide it\n window.setTimeout(function() {\n $(\".blocky_alert\").fadeTo(500, 0).slideUp(500, function() {\n $(this).hide();\n });\n }, 3000);\n}\n\n// start with the alert hidden\n$('.blocky_alert').hide();\n\n</script>", "mode": "html" }, "pluginVersion": "9.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "refId": "A" } ], "title": "Blocking status", "transparent": true, "type": "text" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "description": "Blocky [version](https://github.com/0xERR0R/blocky) number", "fieldConfig": { "defaults": { "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 3, "w": 6, "x": 0, "y": 3 }, "id": 55, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "center", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "/^version$/", "values": false }, "textMode": "auto" }, "pluginVersion": "9.5.2", "repeatDirection": "v", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": "blocky_build_info ", "format": "table", "instant": true, "interval": "", "legendFormat": "", "refId": "A" } ], "title": "Version", "transformations": [ { "id": "labelsToFields", "options": {} }, { "id": "merge", "options": {} } ], "transparent": true, "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "description": "Average query response time for all query types", "fieldConfig": { "defaults": { "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "ms" }, "overrides": [] }, "gridPos": { "h": 3, "w": 6, "x": 6, "y": 3 }, "id": 24, "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "9.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": "sum(increase(blocky_request_duration_ms_sum[$__range])) / sum(increase(blocky_request_duration_ms_count[$__range]))", "instant": false, "interval": "", "legendFormat": "", "refId": "A" } ], "title": "Avg response time", "transparent": true, "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "description": "Number of blacklist entries", "fieldConfig": { "defaults": { "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 6, "x": 12, "y": 3 }, "id": 30, "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "9.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": "sum(blocky_blacklist_cache) / sum(up{job=\"blocky\"})", "instant": false, "refId": "A" } ], "title": "Blacklist entries total", "transparent": true, "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "fieldConfig": { "defaults": { "decimals": 2, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] }, "unit": "bytes" }, "overrides": [] }, "gridPos": { "h": 3, "w": 6, "x": 18, "y": 3 }, "id": 28, "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "9.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": "sum(go_memstats_sys_bytes{job=\"blocky\"})/sum(up{job=\"blocky\"})", "instant": false, "refId": "A" } ], "title": "Memory allocated", "transparent": true, "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "description": "Percentage of blocked queries", "fieldConfig": { "defaults": { "decimals": 2, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "max": 1, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "percentunit" }, "overrides": [] }, "gridPos": { "h": 3, "w": 6, "x": 0, "y": 6 }, "id": 34, "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "9.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": "sum(increase(blocky_response_total{response_type=\"BLOCKED\"}[$__range])) / sum(increase(blocky_query_total[$__range])) ", "instant": false, "interval": "", "legendFormat": "", "refId": "A" } ], "title": "Queries blocked", "transparent": true, "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "description": "Number of all queries. Shows the last value", "fieldConfig": { "defaults": { "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 6, "x": 6, "y": 6 }, "hideTimeOverride": true, "id": 4, "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "9.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": "ceil(sum(increase(blocky_query_total[$__range]))) ", "instant": false, "interval": "", "legendFormat": "", "refId": "A" } ], "title": "Query Count Total", "transparent": true, "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "description": "Number of entries in the cache. Shows the last value", "fieldConfig": { "defaults": { "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] } }, "overrides": [] }, "gridPos": { "h": 3, "w": 6, "x": 12, "y": 6 }, "id": 45, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "last" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "9.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": "sum(blocky_cache_entry_count)/ sum(up{job=\"blocky\"})", "instant": false, "interval": "", "legendFormat": "", "refId": "A" } ], "title": "Cache entries count", "transparent": true, "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "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": { "color": { "mode": "thresholds" }, "mappings": [], "max": 1, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] }, "unit": "percentunit" }, "overrides": [] }, "gridPos": { "h": 3, "w": 6, "x": 18, "y": 6 }, "id": 47, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "9.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": "sum(increase(blocky_cache_hit_count[$__range])) / (sum(increase(blocky_cache_hit_count[$__range])) + sum(increase(blocky_cache_miss_count[$__range])))", "instant": false, "interval": "", "legendFormat": "", "refId": "A" } ], "title": "Cache Hit/Miss ratio", "transparent": true, "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "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" }, { "color": "rgba(237, 129, 40, 0.89)", "value": 1 }, { "color": "#d44a3a" } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 3, "w": 6, "x": 0, "y": 9 }, "id": 36, "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "9.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": "sum(increase(blocky_error_total[$__range]))", "instant": false, "interval": "", "legendFormat": "", "refId": "A" } ], "title": "Error count", "transparent": true, "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "description": "Amount of performed DNS queries to prefetch cached queries", "fieldConfig": { "defaults": { "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] } }, "overrides": [] }, "gridPos": { "h": 3, "w": 6, "x": 6, "y": 9 }, "id": 53, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "9.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": "ceil(sum(increase(blocky_prefetch_count[$__range])))", "interval": "", "legendFormat": "", "refId": "A" } ], "title": "Prefetch count", "transparent": true, "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "description": "Amount of prefetch queries per minute", "fieldConfig": { "defaults": { "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 3, "w": 6, "x": 12, "y": 9 }, "id": 51, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "9.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": "sum(rate(blocky_prefetch_count[5m])) * 60", "interval": "", "legendFormat": "", "refId": "A" } ], "title": "Prefetch rate per min", "transparent": true, "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "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" } ] }, "unit": "percentunit" }, "overrides": [] }, "gridPos": { "h": 3, "w": 6, "x": 18, "y": 9 }, "id": 58, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "9.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": "sum(increase(blocky_prefetch_hit_count[$__range])) / (sum(increase(blocky_cache_hit_count[$__range])))", "instant": false, "interval": "", "legendFormat": "", "refId": "A" } ], "title": "Prefetch Hit ratio", "transparent": true, "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "description": "Time since last list refresh", "fieldConfig": { "defaults": { "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] }, "unit": "s" }, "overrides": [] }, "gridPos": { "h": 3, "w": 6, "x": 0, "y": 12 }, "id": 57, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "9.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": "sum(time() -blocky_last_list_group_refresh)/ sum(up{job=\"blocky\"})", "instant": true, "interval": "", "legendFormat": "", "refId": "A" } ], "title": "Last list refresh", "transparent": true, "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "description": "Amount of unique domains in the prefetched cache", "fieldConfig": { "defaults": { "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] } }, "overrides": [] }, "gridPos": { "h": 3, "w": 6, "x": 6, "y": 12 }, "id": 49, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "9.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": "sum(blocky_prefetch_domain_name_cache_count)/ sum(up{job=\"blocky\"})", "interval": "", "legendFormat": "", "refId": "A" } ], "title": "Prefetch domain count", "transparent": true, "type": "stat" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "fieldConfig": { "defaults": { "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 7, "w": 24, "x": 0, "y": 15 }, "hiddenSeries": false, "id": 10, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": false, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "9.5.2", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": "sum(rate(blocky_query_total[5m])) * 60", "format": "time_series", "instant": false, "interval": "", "legendFormat": " ", "refId": "A" } ], "thresholds": [], "timeRegions": [], "title": "Request rate", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "transparent": true, "type": "graph", "xaxis": { "mode": "time", "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": "avg requests / min", "logBase": 1, "show": true }, { "format": "short", "logBase": 1, "show": true } ], "yaxis": { "align": false } }, { "aliasColors": {}, "bars": true, "dashLength": 10, "dashes": false, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "fieldConfig": { "defaults": { "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 7, "w": 24, "x": 0, "y": 22 }, "hiddenSeries": false, "id": 52, "legend": { "avg": false, "current": false, "hideEmpty": true, "hideZero": true, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": false }, "percentage": false, "pluginVersion": "9.5.2", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": "sum by (client) (rate(blocky_query_total[5m])) * 60", "format": "time_series", "instant": false, "interval": "", "legendFormat": " {{client}}", "refId": "A" } ], "thresholds": [], "timeRegions": [], "title": "Request rate per client", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "transparent": true, "type": "graph", "xaxis": { "mode": "time", "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": "avg requests / min", "logBase": 1, "show": true }, { "format": "short", "logBase": 1, "show": false } ], "yaxis": { "align": false } }, { "cards": {}, "color": { "cardColor": "#FADE2A", "colorScale": "sqrt", "colorScheme": "interpolateYlOrBr", "exponent": 0.5, "mode": "opacity" }, "dataFormat": "tsbuckets", "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "fieldConfig": { "defaults": { "custom": { "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "scaleDistribution": { "type": "linear" } } }, "overrides": [] }, "gridPos": { "h": 9, "w": 24, "x": 0, "y": 29 }, "heatmap": {}, "hideZeroBuckets": false, "highlightCards": true, "id": 22, "legend": { "show": true }, "options": { "calculate": false, "calculation": {}, "cellGap": 2, "cellValues": {}, "color": { "exponent": 0.5, "fill": "#FADE2A", "mode": "opacity", "reverse": false, "scale": "exponential", "scheme": "Oranges", "steps": 128 }, "exemplars": { "color": "rgba(255,0,255,0.7)" }, "filterValues": { "le": 1e-9 }, "legend": { "show": true }, "rowsFrame": { "layout": "auto" }, "showValue": "never", "tooltip": { "show": true, "yHistogram": false }, "yAxis": { "axisPlacement": "left", "reverse": false, "unit": "ms" } }, "pluginVersion": "9.5.2", "reverseYBuckets": false, "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": "sum(increase(blocky_request_duration_ms_bucket{response_type=\"RESOLVED\"}[$__range])) by (le)", "format": "heatmap", "instant": false, "interval": "", "legendFormat": "{{le}}", "refId": "A" } ], "title": "request duration (upstream)", "tooltip": { "show": true, "showHistogram": false }, "transparent": true, "type": "heatmap", "xAxis": { "show": true }, "yAxis": { "format": "ms", "logBase": 1, "show": true }, "yBucketBound": "auto" }, { "aliasColors": {}, "breakPoint": "50%", "combine": { "label": "Others", "threshold": 0 }, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "fontSize": "80%", "format": "short", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 38 }, "id": 2, "legend": { "percentage": true, "percentageDecimals": 1, "show": true, "values": true }, "legendType": "Right side", "links": [], "maxDataPoints": 3, "nullPointMode": "connected", "pieType": "donut", "pluginVersion": "6.6.2", "strokeWidth": 1, "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": " sort_desc(sum by (type) (ceil(increase(blocky_query_total[$__range]))))", "instant": true, "interval": "", "legendFormat": "{{ type }}", "refId": "A" } ], "title": "Query by type", "transparent": true, "type": "grafana-piechart-panel", "valueName": "total" }, { "aliasColors": {}, "breakPoint": "50%", "combine": { "label": "Others", "threshold": 0 }, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "fontSize": "80%", "format": "short", "gridPos": { "h": 8, "w": 12, "x": 12, "y": 38 }, "id": 8, "legend": { "header": "count", "percentage": true, "show": true, "values": true }, "legendType": "Right side", "links": [], "maxDataPoints": 3, "nullPointMode": "connected", "pieType": "donut", "pluginVersion": "6.6.2", "strokeWidth": 1, "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": "sort_desc(sum by (client) (ceil(increase(blocky_query_total[$__range]))))", "format": "time_series", "instant": true, "interval": "", "legendFormat": "{{ client }}", "refId": "A" } ], "title": "Query per Client", "transparent": true, "type": "grafana-piechart-panel", "valueName": "current" }, { "aliasColors": {}, "breakPoint": "50%", "combine": { "label": "Others", "threshold": 0 }, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "fontSize": "80%", "format": "short", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 46 }, "id": 32, "legend": { "show": true, "values": true }, "legendType": "Right side", "links": [], "maxDataPoints": 3, "nullPointMode": "connected", "pieType": "donut", "pluginVersion": "6.6.2", "strokeWidth": 1, "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": "topk(1, blocky_blacklist_cache) by (group)", "instant": true, "legendFormat": "{{ group }}", "refId": "A" } ], "title": "Blacklist by group", "transparent": true, "type": "grafana-piechart-panel", "valueName": "current" }, { "aliasColors": {}, "breakPoint": "50%", "combine": { "label": "Others", "threshold": "" }, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "fontSize": "80%", "format": "short", "gridPos": { "h": 8, "w": 12, "x": 12, "y": 46 }, "id": 14, "legend": { "percentage": true, "percentageDecimals": 1, "show": true, "values": true }, "legendType": "Right side", "links": [], "maxDataPoints": 3, "nullPointMode": "connected", "pieType": "donut", "strokeWidth": "1", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": " sort_desc(sum by (reason) (ceil(increase(blocky_response_total[$__range]))))", "instant": true, "interval": "", "legendFormat": "{{reason}}", "refId": "A" } ], "title": "Response Reasons", "transparent": true, "type": "grafana-piechart-panel", "valueName": "current" }, { "aliasColors": {}, "breakPoint": "50%", "combine": { "label": "Others", "threshold": 0 }, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "fontSize": "80%", "format": "short", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 54 }, "id": 38, "interval": "", "legend": { "percentage": true, "percentageDecimals": 1, "show": true, "values": true }, "legendType": "Right side", "links": [], "maxDataPoints": 3, "nullPointMode": "connected", "pieType": "donut", "strokeWidth": "1", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": " sort_desc(sum by (response_type) (ceil(increase(blocky_response_total[$__range]))))", "instant": true, "interval": "", "legendFormat": "{{response_type}}", "refId": "A" } ], "title": "Response Type", "transparent": true, "type": "grafana-piechart-panel", "valueName": "total" }, { "aliasColors": {}, "breakPoint": "50%", "combine": { "label": "Others", "threshold": 0 }, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "fontSize": "80%", "format": "short", "gridPos": { "h": 8, "w": 12, "x": 12, "y": 54 }, "id": 12, "legend": { "percentage": true, "percentageDecimals": 1, "show": true, "values": true }, "legendType": "Right side", "links": [], "maxDataPoints": 3, "nullPointMode": "connected", "pieType": "donut", "strokeWidth": 1, "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "expr": " sort_desc(sum by (response_code) (ceil(increase(blocky_response_total[$__range]))))", "instant": true, "interval": "", "legendFormat": "{{response_code}}", "refId": "A" } ], "title": "Response status", "transparent": true, "type": "grafana-piechart-panel", "valueName": "current" } ], "refresh": "", "schemaVersion": 38, "style": "dark", "tags": [], "templating": { "list": [ { "hide": 2, "label": "blocky API URL", "name": "blocky_url", "query": "localhost:4000", "skipUrlSync": false, "type": "constant" } ] }, "time": { "from": "now-3h", "to": "now" }, "timepicker": { "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ] }, "timezone": "", "title": "blocky_new", "uid": "JvOqE4gRk", "version": 3, "weekStart": "" }All reactions