Added telemt dashboard
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 14s
Check with kubeconform / lint (push) Successful in 13s
Auto-update README / Generate README and Create MR (push) Successful in 12s

This commit is contained in:
Ultradesu
2026-04-06 15:38:18 +01:00
parent a54e954921
commit 7cbfa0f996
2 changed files with 153 additions and 306 deletions

View File

@@ -16,6 +16,9 @@ spec:
interval: 30s interval: 30s
scrapeTimeout: 10s scrapeTimeout: 10s
honorLabels: true honorLabels: true
relabelings:
- sourceLabels: [__meta_kubernetes_pod_node_name]
targetLabel: node
namespaceSelector: namespaceSelector:
matchNames: matchNames:
- mtproxy - mtproxy

View File

@@ -7,9 +7,7 @@ metadata:
data: data:
telemt.json: |- telemt.json: |-
{ {
"annotations": { "annotations": { "list": [] },
"list": []
},
"editable": true, "editable": true,
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"graphTooltip": 1, "graphTooltip": 1,
@@ -18,83 +16,17 @@ data:
"liveNow": false, "liveNow": false,
"panels": [ "panels": [
{ {
"title": "Uptime", "title": "Nodes Overview",
"type": "stat", "type": "table",
"gridPos": { "h": 4, "w": 4, "x": 0, "y": 0 }, "gridPos": { "h": 8, "w": 24, "x": 0, "y": 0 },
"id": 1, "id": 1,
"options": {
"colorMode": "value",
"graphMode": "none",
"reduceOptions": { "calc": "lastNotNull", "fields": "", "values": false },
"textMode": "auto"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"unit": "s", "custom": {
"thresholds": { "align": "auto",
"mode": "absolute", "cellOptions": { "type": "auto" },
"steps": [ "inspect": false
{ "color": "red", "value": null },
{ "color": "green", "value": 60 }
]
}
}, },
"overrides": []
},
"targets": [
{
"expr": "telemt_uptime_seconds{instance=~\"$instance\"}",
"legendFormat": "{{instance}}",
"refId": "A"
}
],
"datasource": { "type": "prometheus", "uid": "${datasource}" }
},
{
"title": "Active ME Writers",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 4, "y": 0 },
"id": 2,
"options": {
"colorMode": "value",
"graphMode": "area",
"reduceOptions": { "calc": "lastNotNull", "fields": "", "values": false },
"textMode": "auto"
},
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "red", "value": null },
{ "color": "green", "value": 1 }
]
}
},
"overrides": []
},
"targets": [
{
"expr": "telemt_me_writers_active_current{instance=~\"$instance\"}",
"legendFormat": "{{instance}}",
"refId": "A"
}
],
"datasource": { "type": "prometheus", "uid": "${datasource}" }
},
{
"title": "Buffer Pool",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 8, "y": 0 },
"id": 3,
"options": {
"colorMode": "value",
"graphMode": "none",
"reduceOptions": { "calc": "lastNotNull", "fields": "", "values": false },
"textMode": "auto"
},
"fieldConfig": {
"defaults": {
"thresholds": { "thresholds": {
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
@@ -102,49 +34,107 @@ data:
] ]
} }
}, },
"overrides": [] "overrides": [
},
"targets": [
{ {
"expr": "telemt_buffer_pool_buffers_total{instance=~\"$instance\", kind=\"in_use\"}", "matcher": { "id": "byName", "options": "Uptime" },
"legendFormat": "{{instance}} in_use", "properties": [
"refId": "A" { "id": "unit", "value": "dtdurations" },
} { "id": "custom.width", "value": 140 }
], ]
"datasource": { "type": "prometheus", "uid": "${datasource}" }
}, },
{ {
"title": "Connections (total / bad)", "matcher": { "id": "byName", "options": "Bad Conn" },
"type": "stat", "properties": [
"gridPos": { "h": 4, "w": 6, "x": 12, "y": 0 }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [{ "color": "green", "value": null }, { "color": "yellow", "value": 10 }, { "color": "red", "value": 100 }] } },
"id": 4, { "id": "custom.cellOptions", "value": { "type": "color-background", "mode": "basic" } }
"options": { ]
"colorMode": "value",
"graphMode": "area",
"reduceOptions": { "calc": "lastNotNull", "fields": "", "values": false },
"textMode": "auto"
}, },
"fieldConfig": { {
"defaults": { "matcher": { "id": "byName", "options": "Writers" },
"thresholds": { "properties": [
"mode": "absolute", { "id": "thresholds", "value": { "mode": "absolute", "steps": [{ "color": "red", "value": null }, { "color": "green", "value": 1 }] } },
"steps": [ { "id": "custom.cellOptions", "value": { "type": "color-background", "mode": "basic" } }
{ "color": "green", "value": null }
] ]
} }
]
}, },
"overrides": [] "options": {
"showHeader": true,
"sortBy": [{ "displayName": "Node", "desc": false }],
"frameIndex": 0,
"footer": { "show": false }
}, },
"transformations": [
{
"id": "joinByField",
"options": { "byField": "node", "mode": "outer" }
},
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"Time 1": true,
"Time 2": true,
"Time 3": true,
"Time 4": true,
"Time 5": true,
"Time 6": true
},
"renameByName": {
"node": "Node",
"Value #uptime": "Uptime",
"Value #writers": "Writers",
"Value #buffers": "Buffers In Use",
"Value #connections": "Connections",
"Value #bad": "Bad Conn",
"Value #hs_timeout": "HS Timeouts"
}
}
}
],
"targets": [ "targets": [
{ {
"expr": "telemt_connections_total{instance=~\"$instance\"}", "expr": "telemt_uptime_seconds{node=~\"$node\"}",
"legendFormat": "{{instance}} total", "legendFormat": "",
"refId": "A" "refId": "uptime",
"format": "table",
"instant": true
}, },
{ {
"expr": "telemt_connections_bad_total{instance=~\"$instance\"}", "expr": "telemt_me_writers_active_current{node=~\"$node\"}",
"legendFormat": "{{instance}} bad", "legendFormat": "",
"refId": "B" "refId": "writers",
"format": "table",
"instant": true
},
{
"expr": "telemt_buffer_pool_buffers_total{node=~\"$node\", kind=\"in_use\"}",
"legendFormat": "",
"refId": "buffers",
"format": "table",
"instant": true
},
{
"expr": "telemt_connections_total{node=~\"$node\"}",
"legendFormat": "",
"refId": "connections",
"format": "table",
"instant": true
},
{
"expr": "telemt_connections_bad_total{node=~\"$node\"}",
"legendFormat": "",
"refId": "bad",
"format": "table",
"instant": true
},
{
"expr": "telemt_handshake_timeouts_total{node=~\"$node\"}",
"legendFormat": "",
"refId": "hs_timeout",
"format": "table",
"instant": true
} }
], ],
"datasource": { "type": "prometheus", "uid": "${datasource}" } "datasource": { "type": "prometheus", "uid": "${datasource}" }
@@ -152,17 +142,11 @@ data:
{ {
"title": "Connections Rate", "title": "Connections Rate",
"type": "timeseries", "type": "timeseries",
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 4 }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 },
"id": 10, "id": 10,
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"custom": { "custom": { "drawStyle": "line", "lineInterpolation": "smooth", "fillOpacity": 15, "pointSize": 5, "showPoints": "auto" },
"drawStyle": "line",
"lineInterpolation": "smooth",
"fillOpacity": 15,
"pointSize": 5,
"showPoints": "auto"
},
"unit": "cps", "unit": "cps",
"thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] } "thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] }
}, },
@@ -173,38 +157,20 @@ data:
"legend": { "displayMode": "list", "placement": "bottom" } "legend": { "displayMode": "list", "placement": "bottom" }
}, },
"targets": [ "targets": [
{ { "expr": "rate(telemt_connections_total{node=~\"$node\"}[5m])", "legendFormat": "{{node}} accepted", "refId": "A" },
"expr": "rate(telemt_connections_total{instance=~\"$instance\"}[5m])", { "expr": "rate(telemt_connections_bad_total{node=~\"$node\"}[5m])", "legendFormat": "{{node}} bad", "refId": "B" },
"legendFormat": "{{instance}} accepted", { "expr": "rate(telemt_handshake_timeouts_total{node=~\"$node\"}[5m])", "legendFormat": "{{node}} hs timeout", "refId": "C" }
"refId": "A"
},
{
"expr": "rate(telemt_connections_bad_total{instance=~\"$instance\"}[5m])",
"legendFormat": "{{instance}} bad",
"refId": "B"
},
{
"expr": "rate(telemt_handshake_timeouts_total{instance=~\"$instance\"}[5m])",
"legendFormat": "{{instance}} hs timeout",
"refId": "C"
}
], ],
"datasource": { "type": "prometheus", "uid": "${datasource}" } "datasource": { "type": "prometheus", "uid": "${datasource}" }
}, },
{ {
"title": "Upstream Connect", "title": "Upstream Connect",
"type": "timeseries", "type": "timeseries",
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 4 }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 },
"id": 11, "id": 11,
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"custom": { "custom": { "drawStyle": "line", "lineInterpolation": "smooth", "fillOpacity": 15, "pointSize": 5, "showPoints": "auto" },
"drawStyle": "line",
"lineInterpolation": "smooth",
"fillOpacity": 15,
"pointSize": 5,
"showPoints": "auto"
},
"unit": "cps", "unit": "cps",
"thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] } "thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] }
}, },
@@ -215,31 +181,19 @@ data:
"legend": { "displayMode": "list", "placement": "bottom" } "legend": { "displayMode": "list", "placement": "bottom" }
}, },
"targets": [ "targets": [
{ { "expr": "rate(telemt_upstream_connect_success_total{node=~\"$node\"}[5m])", "legendFormat": "{{node}} success", "refId": "A" },
"expr": "rate(telemt_upstream_connect_success_total{instance=~\"$instance\"}[5m])", { "expr": "rate(telemt_upstream_connect_fail_total{node=~\"$node\"}[5m])", "legendFormat": "{{node}} fail", "refId": "B" }
"legendFormat": "{{instance}} success",
"refId": "A"
},
{
"expr": "rate(telemt_upstream_connect_fail_total{instance=~\"$instance\"}[5m])",
"legendFormat": "{{instance}} fail",
"refId": "B"
}
], ],
"datasource": { "type": "prometheus", "uid": "${datasource}" } "datasource": { "type": "prometheus", "uid": "${datasource}" }
}, },
{ {
"title": "Upstream Connect Duration (success)", "title": "Upstream Connect Duration (success)",
"type": "timeseries", "type": "timeseries",
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 12 }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 16 },
"id": 12, "id": 12,
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"custom": { "custom": { "drawStyle": "bars", "fillOpacity": 50, "stacking": { "mode": "normal" } },
"drawStyle": "bars",
"fillOpacity": 50,
"stacking": { "mode": "normal" }
},
"unit": "short", "unit": "short",
"thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] } "thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] }
}, },
@@ -250,28 +204,18 @@ data:
"legend": { "displayMode": "list", "placement": "bottom" } "legend": { "displayMode": "list", "placement": "bottom" }
}, },
"targets": [ "targets": [
{ { "expr": "increase(telemt_upstream_connect_duration_success_total{node=~\"$node\"}[5m])", "legendFormat": "{{node}} {{bucket}}", "refId": "A" }
"expr": "increase(telemt_upstream_connect_duration_success_total{instance=~\"$instance\"}[5m])",
"legendFormat": "{{instance}} {{bucket}}",
"refId": "A"
}
], ],
"datasource": { "type": "prometheus", "uid": "${datasource}" } "datasource": { "type": "prometheus", "uid": "${datasource}" }
}, },
{ {
"title": "ME Writers & Pool", "title": "ME Writers & Pool",
"type": "timeseries", "type": "timeseries",
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 12 }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 16 },
"id": 13, "id": 13,
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"custom": { "custom": { "drawStyle": "line", "lineInterpolation": "smooth", "fillOpacity": 15, "pointSize": 5, "showPoints": "auto" },
"drawStyle": "line",
"lineInterpolation": "smooth",
"fillOpacity": 15,
"pointSize": 5,
"showPoints": "auto"
},
"thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] } "thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] }
}, },
"overrides": [] "overrides": []
@@ -281,38 +225,20 @@ data:
"legend": { "displayMode": "list", "placement": "bottom" } "legend": { "displayMode": "list", "placement": "bottom" }
}, },
"targets": [ "targets": [
{ { "expr": "telemt_me_writers_active_current{node=~\"$node\"}", "legendFormat": "{{node}} active", "refId": "A" },
"expr": "telemt_me_writers_active_current{instance=~\"$instance\"}", { "expr": "telemt_me_writers_warm_current{node=~\"$node\"}", "legendFormat": "{{node}} warm", "refId": "B" },
"legendFormat": "{{instance}} active", { "expr": "telemt_pool_drain_active{node=~\"$node\"}", "legendFormat": "{{node}} draining", "refId": "C" }
"refId": "A"
},
{
"expr": "telemt_me_writers_warm_current{instance=~\"$instance\"}",
"legendFormat": "{{instance}} warm",
"refId": "B"
},
{
"expr": "telemt_pool_drain_active{instance=~\"$instance\"}",
"legendFormat": "{{instance}} draining",
"refId": "C"
}
], ],
"datasource": { "type": "prometheus", "uid": "${datasource}" } "datasource": { "type": "prometheus", "uid": "${datasource}" }
}, },
{ {
"title": "Per-User Active Connections", "title": "Per-User Active Connections",
"type": "timeseries", "type": "timeseries",
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 20 }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 24 },
"id": 20, "id": 20,
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"custom": { "custom": { "drawStyle": "line", "lineInterpolation": "smooth", "fillOpacity": 15, "pointSize": 5, "showPoints": "auto" },
"drawStyle": "line",
"lineInterpolation": "smooth",
"fillOpacity": 15,
"pointSize": 5,
"showPoints": "auto"
},
"thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] } "thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] }
}, },
"overrides": [] "overrides": []
@@ -322,28 +248,18 @@ data:
"legend": { "displayMode": "list", "placement": "bottom" } "legend": { "displayMode": "list", "placement": "bottom" }
}, },
"targets": [ "targets": [
{ { "expr": "telemt_user_connections_current{node=~\"$node\"}", "legendFormat": "{{node}} {{user}}", "refId": "A" }
"expr": "telemt_user_connections_current{instance=~\"$instance\"}",
"legendFormat": "{{instance}} {{user}}",
"refId": "A"
}
], ],
"datasource": { "type": "prometheus", "uid": "${datasource}" } "datasource": { "type": "prometheus", "uid": "${datasource}" }
}, },
{ {
"title": "Per-User Traffic", "title": "Per-User Traffic",
"type": "timeseries", "type": "timeseries",
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 20 }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 24 },
"id": 21, "id": 21,
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"custom": { "custom": { "drawStyle": "line", "lineInterpolation": "smooth", "fillOpacity": 15, "pointSize": 5, "showPoints": "auto" },
"drawStyle": "line",
"lineInterpolation": "smooth",
"fillOpacity": 15,
"pointSize": 5,
"showPoints": "auto"
},
"unit": "Bps", "unit": "Bps",
"thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] } "thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] }
}, },
@@ -354,33 +270,19 @@ data:
"legend": { "displayMode": "list", "placement": "bottom" } "legend": { "displayMode": "list", "placement": "bottom" }
}, },
"targets": [ "targets": [
{ { "expr": "rate(telemt_user_octets_from_client{node=~\"$node\"}[5m])", "legendFormat": "{{node}} {{user}} rx", "refId": "A" },
"expr": "rate(telemt_user_octets_from_client{instance=~\"$instance\"}[5m])", { "expr": "rate(telemt_user_octets_to_client{node=~\"$node\"}[5m])", "legendFormat": "{{node}} {{user}} tx", "refId": "B" }
"legendFormat": "{{instance}} {{user}} rx",
"refId": "A"
},
{
"expr": "rate(telemt_user_octets_to_client{instance=~\"$instance\"}[5m])",
"legendFormat": "{{instance}} {{user}} tx",
"refId": "B"
}
], ],
"datasource": { "type": "prometheus", "uid": "${datasource}" } "datasource": { "type": "prometheus", "uid": "${datasource}" }
}, },
{ {
"title": "DCClient Batching", "title": "DC->Client Payload",
"type": "timeseries", "type": "timeseries",
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 28 }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 32 },
"id": 30, "id": 30,
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"custom": { "custom": { "drawStyle": "line", "lineInterpolation": "smooth", "fillOpacity": 15, "pointSize": 5, "showPoints": "auto" },
"drawStyle": "line",
"lineInterpolation": "smooth",
"fillOpacity": 15,
"pointSize": 5,
"showPoints": "auto"
},
"unit": "Bps", "unit": "Bps",
"thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] } "thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] }
}, },
@@ -391,28 +293,18 @@ data:
"legend": { "displayMode": "list", "placement": "bottom" } "legend": { "displayMode": "list", "placement": "bottom" }
}, },
"targets": [ "targets": [
{ { "expr": "rate(telemt_me_d2c_payload_bytes_total{node=~\"$node\"}[5m])", "legendFormat": "{{node}} payload", "refId": "A" }
"expr": "rate(telemt_me_d2c_payload_bytes_total{instance=~\"$instance\"}[5m])",
"legendFormat": "{{instance}} payload",
"refId": "A"
}
], ],
"datasource": { "type": "prometheus", "uid": "${datasource}" } "datasource": { "type": "prometheus", "uid": "${datasource}" }
}, },
{ {
"title": "ME Errors & Anomalies", "title": "ME Errors & Anomalies",
"type": "timeseries", "type": "timeseries",
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 28 }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 32 },
"id": 31, "id": 31,
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"custom": { "custom": { "drawStyle": "line", "lineInterpolation": "smooth", "fillOpacity": 15, "pointSize": 5, "showPoints": "auto" },
"drawStyle": "line",
"lineInterpolation": "smooth",
"fillOpacity": 15,
"pointSize": 5,
"showPoints": "auto"
},
"unit": "cps", "unit": "cps",
"thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] } "thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] }
}, },
@@ -423,43 +315,21 @@ data:
"legend": { "displayMode": "list", "placement": "bottom" } "legend": { "displayMode": "list", "placement": "bottom" }
}, },
"targets": [ "targets": [
{ { "expr": "rate(telemt_me_reconnect_attempts_total{node=~\"$node\"}[5m])", "legendFormat": "{{node}} reconnect", "refId": "A" },
"expr": "rate(telemt_me_reconnect_attempts_total{instance=~\"$instance\"}[5m])", { "expr": "rate(telemt_me_handshake_reject_total{node=~\"$node\"}[5m])", "legendFormat": "{{node}} hs reject", "refId": "B" },
"legendFormat": "{{instance}} reconnect", { "expr": "rate(telemt_me_crc_mismatch_total{node=~\"$node\"}[5m])", "legendFormat": "{{node}} crc mismatch", "refId": "C" },
"refId": "A" { "expr": "rate(telemt_desync_total{node=~\"$node\"}[5m])", "legendFormat": "{{node}} desync", "refId": "D" }
},
{
"expr": "rate(telemt_me_handshake_reject_total{instance=~\"$instance\"}[5m])",
"legendFormat": "{{instance}} hs reject",
"refId": "B"
},
{
"expr": "rate(telemt_me_crc_mismatch_total{instance=~\"$instance\"}[5m])",
"legendFormat": "{{instance}} crc mismatch",
"refId": "C"
},
{
"expr": "rate(telemt_desync_total{instance=~\"$instance\"}[5m])",
"legendFormat": "{{instance}} desync",
"refId": "D"
}
], ],
"datasource": { "type": "prometheus", "uid": "${datasource}" } "datasource": { "type": "prometheus", "uid": "${datasource}" }
}, },
{ {
"title": "Per-User Unique IPs", "title": "Per-User Unique IPs",
"type": "timeseries", "type": "timeseries",
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 36 }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 40 },
"id": 40, "id": 40,
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"custom": { "custom": { "drawStyle": "line", "lineInterpolation": "smooth", "fillOpacity": 15, "pointSize": 5, "showPoints": "auto" },
"drawStyle": "line",
"lineInterpolation": "smooth",
"fillOpacity": 15,
"pointSize": 5,
"showPoints": "auto"
},
"thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] } "thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] }
}, },
"overrides": [] "overrides": []
@@ -469,33 +339,19 @@ data:
"legend": { "displayMode": "list", "placement": "bottom" } "legend": { "displayMode": "list", "placement": "bottom" }
}, },
"targets": [ "targets": [
{ { "expr": "telemt_user_unique_ips_current{node=~\"$node\"}", "legendFormat": "{{node}} {{user}} active", "refId": "A" },
"expr": "telemt_user_unique_ips_current{instance=~\"$instance\"}", { "expr": "telemt_user_unique_ips_recent_window{node=~\"$node\"}", "legendFormat": "{{node}} {{user}} recent", "refId": "B" }
"legendFormat": "{{instance}} {{user}} active",
"refId": "A"
},
{
"expr": "telemt_user_unique_ips_recent_window{instance=~\"$instance\"}",
"legendFormat": "{{instance}} {{user}} recent",
"refId": "B"
}
], ],
"datasource": { "type": "prometheus", "uid": "${datasource}" } "datasource": { "type": "prometheus", "uid": "${datasource}" }
}, },
{ {
"title": "Conntrack", "title": "Conntrack",
"type": "timeseries", "type": "timeseries",
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 36 }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 40 },
"id": 41, "id": 41,
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"custom": { "custom": { "drawStyle": "line", "lineInterpolation": "smooth", "fillOpacity": 15, "pointSize": 5, "showPoints": "auto" },
"drawStyle": "line",
"lineInterpolation": "smooth",
"fillOpacity": 15,
"pointSize": 5,
"showPoints": "auto"
},
"unit": "cps", "unit": "cps",
"thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] } "thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] }
}, },
@@ -506,21 +362,9 @@ data:
"legend": { "displayMode": "list", "placement": "bottom" } "legend": { "displayMode": "list", "placement": "bottom" }
}, },
"targets": [ "targets": [
{ { "expr": "rate(telemt_conntrack_delete_total{node=~\"$node\", result=\"attempt\"}[5m])", "legendFormat": "{{node}} delete attempt", "refId": "A" },
"expr": "rate(telemt_conntrack_delete_total{instance=~\"$instance\", result=\"attempt\"}[5m])", { "expr": "rate(telemt_conntrack_delete_total{node=~\"$node\", result=\"error\"}[5m])", "legendFormat": "{{node}} delete error", "refId": "B" },
"legendFormat": "{{instance}} delete attempt", { "expr": "telemt_conntrack_event_queue_depth{node=~\"$node\"}", "legendFormat": "{{node}} queue depth", "refId": "C" }
"refId": "A"
},
{
"expr": "rate(telemt_conntrack_delete_total{instance=~\"$instance\", result=\"error\"}[5m])",
"legendFormat": "{{instance}} delete error",
"refId": "B"
},
{
"expr": "telemt_conntrack_event_queue_depth{instance=~\"$instance\"}",
"legendFormat": "{{instance}} queue depth",
"refId": "C"
}
], ],
"datasource": { "type": "prometheus", "uid": "${datasource}" } "datasource": { "type": "prometheus", "uid": "${datasource}" }
} }
@@ -547,13 +391,13 @@ data:
{ {
"current": {}, "current": {},
"datasource": { "type": "prometheus", "uid": "${datasource}" }, "datasource": { "type": "prometheus", "uid": "${datasource}" },
"definition": "label_values(telemt_uptime_seconds, instance)", "definition": "label_values(telemt_uptime_seconds, node)",
"hide": 0, "hide": 0,
"includeAll": true, "includeAll": true,
"label": "Instance", "label": "Node",
"multi": true, "multi": true,
"name": "instance", "name": "node",
"query": "label_values(telemt_uptime_seconds, instance)", "query": "label_values(telemt_uptime_seconds, node)",
"refresh": 2, "refresh": 2,
"regex": "", "regex": "",
"skipUrlSync": false, "skipUrlSync": false,