grafana: fix apiary geomap and make it full-width
Some checks failed
Run nix flake check / flake-check (push) Failing after 5m6s
Periodic flake update / flake-update (push) Successful in 5m25s

Add gazetteer reference for country code lookup resolution.
Remove unnecessary reduce transformation. Make geomap panel
full-width (24 cols) and taller (h=10) on its own row.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-15 21:36:24 +01:00
parent 361e7f2a1b
commit 3e7aabc73a

View File

@@ -213,7 +213,7 @@
"id": 7,
"title": "Sessions by Shell",
"type": "timeseries",
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 12},
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 22},
"datasource": {"type": "prometheus", "uid": "prometheus"},
"targets": [
{
@@ -245,7 +245,7 @@
"id": 8,
"title": "Attempts by Country",
"type": "geomap",
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 12},
"gridPos": {"h": 10, "w": 24, "x": 0, "y": 12},
"datasource": {"type": "prometheus", "uid": "prometheus"},
"targets": [
{
@@ -302,26 +302,19 @@
},
"location": {
"mode": "lookup",
"lookup": "country"
"lookup": "country",
"gazetteer": "public/gazetteer/countries.json"
}
}
]
},
"transformations": [
{
"id": "reduce",
"options": {
"reducers": ["lastNotNull"]
}
}
],
"description": "Authentication attempts by country (geo lookup from country code)"
},
{
"id": 9,
"title": "Session Duration Distribution",
"type": "heatmap",
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 20},
"gridPos": {"h": 8, "w": 24, "x": 0, "y": 30},
"datasource": {"type": "prometheus", "uid": "prometheus"},
"targets": [
{
@@ -361,7 +354,7 @@
"id": 10,
"title": "Commands Executed by Shell",
"type": "timeseries",
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 20},
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 22},
"datasource": {"type": "prometheus", "uid": "prometheus"},
"targets": [
{