{ "__inputs": [ { "name": "DS_PROMETHEUS", "label": "prometheus", "description": "", "type": "datasource", "pluginId": "prometheus", "pluginName": "Prometheus" } ], "__elements": {}, "__requires": [ { "type": "panel", "id": "bargauge", "name": "Bar gauge", "version": "" }, { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "11.3.3" }, { "type": "datasource", "id": "prometheus", "name": "Prometheus", "version": "1.0.0" }, { "type": "panel", "id": "stat", "name": "Stat", "version": "" } ], "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "description": "The deadliest poison known to AI", "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": null, "links": [], "panels": [ { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 5, "panels": [], "title": "Trap counters", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "sishort" }, "overrides": [] }, "gridPos": { "h": 9, "w": 10, "x": 0, "y": 1 }, "id": 3, "options": { "displayMode": "basic", "legend": { "calcs": [], "displayMode": "table", "placement": "bottom", "showLegend": false }, "maxVizHeight": 32, "minVizHeight": 32, "minVizWidth": 8, "namePlacement": "top", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "sizing": "manual", "text": {}, "valueMode": "color" }, "pluginVersion": "11.3.3", "targets": [ { "editorMode": "code", "exemplar": false, "expr": "topk($limit, sort_desc(sum(iocaine_requests_total{host=~\"$host\", host!~\"$exclude_host\",user_agent_group=~\"$agent_group\"}) by (user_agent_group)))", "format": "time_series", "instant": true, "legendFormat": "{{user_agent_group}}", "range": false, "refId": "A", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } } ], "title": "User agents in the maze (by group)", "type": "bargauge" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "sishort" }, "overrides": [] }, "gridPos": { "h": 9, "w": 10, "x": 10, "y": 1 }, "id": 4, "options": { "displayMode": "basic", "legend": { "calcs": [], "displayMode": "table", "placement": "bottom", "showLegend": false }, "maxVizHeight": 32, "minVizHeight": 32, "minVizWidth": 8, "namePlacement": "top", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "sizing": "manual", "text": {}, "valueMode": "color" }, "pluginVersion": "11.3.3", "targets": [ { "editorMode": "code", "exemplar": false, "expr": "topk($limit,sort_desc(sum(iocaine_requests_total{host=~\"$host\",user_agent_group=~\"$agent_group\",host!~\"$exclude_host\"}) by (host)))", "format": "time_series", "instant": true, "legendFormat": "{{host}}", "range": false, "refId": "A", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } } ], "title": "Trapped visits by host", "type": "bargauge" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "fieldMinMax": false, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "#EAB839", "value": 8 }, { "color": "red", "value": 20 } ] } }, "overrides": [] }, "gridPos": { "h": 3, "w": 4, "x": 20, "y": 1 }, "id": 6, "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.3.3", "targets": [ { "disableTextWrap": false, "editorMode": "code", "exemplar": false, "expr": "sum(irate(iocaine_requests_total{host=~\"$host\",user_agent_group=~\"$agent_group\",host!~\"$exclude_host\"}[5m]))", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, "legendFormat": "__auto", "range": true, "refId": "A", "useBackend": false, "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } } ], "title": "Req/s (5m avg)", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "decbytes" }, "overrides": [] }, "gridPos": { "h": 3, "w": 4, "x": 20, "y": 4 }, "id": 8, "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.3.3", "targets": [ { "editorMode": "code", "expr": "iocaine_garbage_served", "legendFormat": "__auto", "range": true, "refId": "A", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } } ], "title": "Garbage served", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "s" }, "overrides": [] }, "gridPos": { "h": 3, "w": 4, "x": 20, "y": 7 }, "id": 7, "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.3.3", "targets": [ { "editorMode": "code", "expr": "time() - process_start_time_seconds{service=\"iocaine\"}", "legendFormat": "__auto", "range": true, "refId": "A", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } } ], "title": "Uptime", "type": "stat" }, { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 10 }, "id": 2, "panels": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] }, "unit": "sishort" }, "overrides": [] }, "gridPos": { "h": 17, "w": 24, "x": 0, "y": 11 }, "id": 1, "options": { "displayMode": "basic", "legend": { "calcs": [], "displayMode": "table", "placement": "bottom", "showLegend": false }, "maxVizHeight": 32, "minVizHeight": 32, "minVizWidth": 8, "namePlacement": "top", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "sizing": "manual", "text": {}, "valueMode": "color" }, "pluginVersion": "11.3.3", "targets": [ { "editorMode": "code", "exemplar": false, "expr": "sort_desc(sum(iocaine_requests_total{host=~\"$host\", host!~\"$exclude_host\", user_agent_group=~\"$agent_group\"}) by (user_agent, user_agent_group))", "format": "time_series", "instant": true, "legendFormat": "{{user_agent_group}}: {{user_agent}}", "range": false, "refId": "A", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } } ], "title": "User agents in the maze", "type": "bargauge" } ], "title": "Detailed user agents", "type": "row" } ], "refresh": "5m", "schemaVersion": 40, "tags": [ "iocaine", "self-hosted" ], "templating": { "list": [ { "current": {}, "definition": "label_values(iocaine_requests_total,host)", "includeAll": true, "label": "Host", "multi": true, "name": "host", "options": [], "query": { "qryType": 1, "query": "label_values(iocaine_requests_total,host)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", "sort": 1, "type": "query" }, { "current": {}, "definition": "label_values(iocaine_requests_total,user_agent_group)", "includeAll": true, "label": "User Agent", "multi": true, "name": "agent_group", "options": [], "query": { "qryType": 1, "query": "label_values(iocaine_requests_total,user_agent_group)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", "sort": 1, "type": "query" }, { "current": { "text": "7", "value": "7" }, "description": "Limit the number of entries shown on the Trap Counters panels.", "label": "Limit", "name": "limit", "options": [ { "selected": true, "text": "7", "value": "7" } ], "query": "7", "type": "textbox" }, { "current": { "text": "", "value": "" }, "description": "Host name (regex) to exclude.", "label": "Exclude", "name": "exclude_host", "options": [ { "selected": true, "text": "", "value": "" } ], "query": "", "type": "textbox" } ] }, "time": { "from": "now-24h", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "Iocaine", "uid": "aec38snrfs4cgf", "version": 52, "weekStart": "" }