{ "__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.2" }, { "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 } ] } }, "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.2", "targets": [ { "editorMode": "code", "exemplar": false, "expr": "sort_desc(sum(iocaine_requests_total{host=~\"$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 } ] } }, "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.2", "targets": [ { "editorMode": "code", "exemplar": false, "expr": "sort_desc(sum(iocaine_requests_total{host=~\"$host\",user_agent_group=~\"$agent_group\"}) 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": 9, "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.2", "targets": [ { "disableTextWrap": false, "editorMode": "code", "exemplar": false, "expr": "sum(irate(iocaine_requests_total[5m]))", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, "legendFormat": "__auto", "range": true, "refId": "A", "useBackend": false, "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } } ], "title": "Average throughput (5m)", "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" } ] } }, "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.2", "targets": [ { "editorMode": "code", "exemplar": false, "expr": "sort_desc(sum(iocaine_requests_total{host=~\"$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": "1m", "schemaVersion": 40, "tags": [ "iocaine" ], "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" } ] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "Iocaine", "uid": "aec38snrfs4cgf", "version": 31, "weekStart": "" }