From 3bd63ec71087752d406518060895b5c9cbf2ad57 Mon Sep 17 00:00:00 2001 From: pipistrello Date: Mon, 27 Jul 2026 11:31:51 +0300 Subject: [PATCH] 02-tekhnohim Grafana: show current Telemt client IPs Add a full-width Telemt table backed by the Zabbix text item telemt.active_ips.list. The panel uses the plugin's frontend Text query path, retains only the latest value, and hides Zabbix metadata so operators see the current user/IP snapshot directly.\n\nMove the existing Telemt history and traffic panels down, bump dashboard version to 5, and retain the 30-second refresh interval. The provisioned dashboard reloaded successfully and Grafana's Zabbix resource endpoint returned a current three-line value for item 249104. --- .../grafana-dashboards/tailscale-proxy.json | 104 +++++++++++++++++- 1 file changed, 98 insertions(+), 6 deletions(-) diff --git a/logging/grafana-dashboards/tailscale-proxy.json b/logging/grafana-dashboards/tailscale-proxy.json index a0b3fa7..4f6f8f0 100644 --- a/logging/grafana-dashboards/tailscale-proxy.json +++ b/logging/grafana-dashboards/tailscale-proxy.json @@ -9,7 +9,7 @@ "zabbix" ], "schemaVersion": 39, - "version": 4, + "version": 5, "editable": true, "refresh": "30s", "time": { @@ -733,6 +733,98 @@ } ] }, + { + "id": 28, + "type": "table", + "title": "Текущие активные IP-адреса Telemt", + "description": "Последний снимок активных IP-адресов из Zabbix item telemt.active_ips.list. Обновляется каждые 30 секунд.", + "datasource": { + "type": "alexanderzobnin-zabbix-datasource", + "uid": "zabbix-02" + }, + "gridPos": { + "h": 6, + "w": 24, + "x": 0, + "y": 38 + }, + "fieldConfig": { + "defaults": { + "custom": { + "align": "left", + "filterable": false + } + }, + "overrides": [] + }, + "options": { + "cellHeight": "auto", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Host": true, + "Item": true, + "Key": true + }, + "renameByName": { + "Last value": "Активные подключения (пользователь | IP)" + } + } + } + ], + "targets": [ + { + "application": { + "filter": "" + }, + "datasource": { + "type": "alexanderzobnin-zabbix-datasource", + "uid": "zabbix-02" + }, + "functions": [], + "group": { + "filter": "Linux servers" + }, + "host": { + "filter": "Fedora Kirochnaya" + }, + "item": { + "filter": "/^Telemt: Active IP addresses$/" + }, + "itemTag": { + "filter": "" + }, + "mode": 0, + "options": { + "count": false, + "disableDataAlignment": false, + "showDisabledItems": false, + "skipEmptyValues": true, + "useTrends": "default", + "useZabbixValueMapping": false + }, + "queryType": "2", + "refId": "A", + "resultFormat": "table", + "schema": 12, + "textFilter": "", + "useCaptureGroups": false + } + ] + }, { "id": 23, "type": "timeseries", @@ -746,7 +838,7 @@ "h": 8, "w": 12, "x": 0, - "y": 38 + "y": 44 }, "fieldConfig": { "defaults": { @@ -838,7 +930,7 @@ "h": 8, "w": 12, "x": 12, - "y": 38 + "y": 44 }, "fieldConfig": { "defaults": { @@ -928,7 +1020,7 @@ "h": 4, "w": 8, "x": 0, - "y": 46 + "y": 52 }, "options": { "reduceOptions": { @@ -1003,7 +1095,7 @@ "h": 4, "w": 8, "x": 8, - "y": 46 + "y": 52 }, "options": { "reduceOptions": { @@ -1078,7 +1170,7 @@ "h": 4, "w": 8, "x": 16, - "y": 46 + "y": 52 }, "options": { "reduceOptions": {