2025-02-05 11:26:49 +01:00
{
"__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" ,
2025-02-09 09:48:28 +01:00
"version" : "11.3.3"
2025-02-05 11:26:49 +01:00
} ,
{
"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
}
]
2025-02-09 09:48:28 +01:00
} ,
"unit" : "sishort"
2025-02-05 11:26:49 +01:00
} ,
"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"
} ,
2025-02-09 09:48:28 +01:00
"pluginVersion" : "11.3.3" ,
2025-02-05 11:26:49 +01:00
"targets" : [
{
"editorMode" : "code" ,
"exemplar" : false ,
2025-02-09 09:48:28 +01:00
"expr" : "topk($limit, sort_desc(sum(iocaine_requests_total{host=~\"$host\", host!~\"$exclude_host\",user_agent_group=~\"$agent_group\"}) by (user_agent_group)))" ,
2025-02-05 11:26:49 +01:00
"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
}
]
2025-02-09 09:48:28 +01:00
} ,
"unit" : "sishort"
2025-02-05 11:26:49 +01:00
} ,
"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"
} ,
2025-02-09 09:48:28 +01:00
"pluginVersion" : "11.3.3" ,
2025-02-05 11:26:49 +01:00
"targets" : [
{
2025-02-09 09:48:28 +01:00
"editorMode" : "code" ,
2025-02-05 11:26:49 +01:00
"exemplar" : false ,
2025-02-09 09:48:28 +01:00
"expr" : "topk($limit,sort_desc(sum(iocaine_requests_total{host=~\"$host\",user_agent_group=~\"$agent_group\",host!~\"$exclude_host\"}) by (host)))" ,
2025-02-05 11:26:49 +01:00
"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" : {
2025-02-15 14:29:00 +01:00
"h" : 3 ,
2025-02-05 11:26:49 +01:00
"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
} ,
2025-02-09 09:48:28 +01:00
"pluginVersion" : "11.3.3" ,
2025-02-05 11:26:49 +01:00
"targets" : [
{
"disableTextWrap" : false ,
"editorMode" : "code" ,
"exemplar" : false ,
2025-02-12 10:59:44 +01:00
"expr" : "sum(irate(iocaine_requests_total{host=~\"$host\",user_agent_group=~\"$agent_group\",host!~\"$exclude_host\"}[5m]))" ,
2025-02-05 11:26:49 +01:00
"fullMetaSearch" : false ,
"includeNullMetadata" : true ,
"instant" : false ,
"legendFormat" : "__auto" ,
"range" : true ,
"refId" : "A" ,
"useBackend" : false ,
"datasource" : {
"type" : "prometheus" ,
"uid" : "${DS_PROMETHEUS}"
}
}
] ,
2025-02-06 22:07:17 +01:00
"title" : "Req/s (5m avg)" ,
"type" : "stat"
} ,
2025-02-15 14:29:00 +01:00
{
"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"
} ,
2025-02-06 22:07:17 +01:00
{
"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" : {
2025-02-15 14:29:00 +01:00
"h" : 3 ,
2025-02-06 22:07:17 +01:00
"w" : 4 ,
"x" : 20 ,
2025-02-15 14:29:00 +01:00
"y" : 7
2025-02-06 22:07:17 +01:00
} ,
"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
} ,
2025-02-09 09:48:28 +01:00
"pluginVersion" : "11.3.3" ,
2025-02-06 22:07:17 +01:00
"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" ,
2025-02-05 11:26:49 +01:00
"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" : [
{
2025-02-15 14:29:00 +01:00
"color" : "green"
2025-02-05 11:26:49 +01:00
}
]
2025-02-09 09:48:28 +01:00
} ,
"unit" : "sishort"
2025-02-05 11:26:49 +01:00
} ,
"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"
} ,
2025-02-09 09:48:28 +01:00
"pluginVersion" : "11.3.3" ,
2025-02-05 11:26:49 +01:00
"targets" : [
{
"editorMode" : "code" ,
"exemplar" : false ,
2025-02-06 22:07:17 +01:00
"expr" : "sort_desc(sum(iocaine_requests_total{host=~\"$host\", host!~\"$exclude_host\", user_agent_group=~\"$agent_group\"}) by (user_agent, user_agent_group))" ,
2025-02-05 11:26:49 +01:00
"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"
}
] ,
2025-02-06 22:07:17 +01:00
"refresh" : "5m" ,
2025-02-05 11:26:49 +01:00
"schemaVersion" : 40 ,
"tags" : [
2025-02-09 09:48:28 +01:00
"iocaine" ,
"self-hosted"
2025-02-05 11:26:49 +01:00
] ,
"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"
2025-02-06 22:07:17 +01:00
} ,
2025-02-09 09:48:28 +01:00
{
"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"
} ,
2025-02-06 22:07:17 +01:00
{
"current" : {
"text" : "" ,
"value" : ""
} ,
"description" : "Host name (regex) to exclude." ,
"label" : "Exclude" ,
"name" : "exclude_host" ,
"options" : [
{
"selected" : true ,
"text" : "" ,
"value" : ""
}
] ,
"query" : "" ,
"type" : "textbox"
2025-02-05 11:26:49 +01:00
}
]
} ,
"time" : {
2025-02-06 22:07:17 +01:00
"from" : "now-24h" ,
2025-02-05 11:26:49 +01:00
"to" : "now"
} ,
"timepicker" : { } ,
"timezone" : "browser" ,
"title" : "Iocaine" ,
"uid" : "aec38snrfs4cgf" ,
2025-02-15 14:29:00 +01:00
"version" : 52 ,
2025-02-05 11:26:49 +01:00
"weekStart" : ""
}