auto remove stuck games
Build and Push Docker Container / build-and-push (push) Successful in 51s

This commit is contained in:
2026-04-04 10:23:12 +02:00
parent dbcf9cadaf
commit c6ebb5834b
2 changed files with 367 additions and 12 deletions
+305 -4
View File
@@ -473,6 +473,14 @@
{
"color": "green",
"value": null
},
{
"color": "yellow",
"value": 120
},
{
"color": "red",
"value": 250
}
]
},
@@ -488,7 +496,7 @@
},
"id": 7,
"options": {
"colorMode": "value",
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
@@ -531,6 +539,10 @@
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 1
}
]
}
@@ -545,7 +557,7 @@
},
"id": 8,
"options": {
"colorMode": "value",
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
@@ -825,7 +837,42 @@
]
}
},
"overrides": []
"overrides": [
{
"matcher": {
"id": "byName",
"options": "avg move ms"
},
"properties": [
{
"id": "color",
"value": {
"mode": "fixed",
"fixedColor": "orange"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "max move ms"
},
"properties": [
{
"id": "color",
"value": {
"mode": "fixed",
"fixedColor": "red"
}
},
{
"id": "custom.lineWidth",
"value": 3
}
]
}
]
},
"gridPos": {
"h": 8,
@@ -872,6 +919,260 @@
],
"title": "Move Directions + Move Latency",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "yellow",
"value": 1
},
{
"color": "red",
"value": 2
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 0,
"y": 24
},
"id": 13,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "snake_active_games_stale",
"legendFormat": "Stale Active Games",
"range": true,
"refId": "A"
}
],
"title": "Stale Active Games",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "yellow",
"value": 1
},
{
"color": "red",
"value": 5
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 6,
"y": 24
},
"id": 14,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "increase(snake_games_stuck_removed_total[$__range])",
"legendFormat": "Stuck Games Removed",
"range": true,
"refId": "A"
}
],
"title": "Stuck Games Removed",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "yellow",
"value": 90
},
{
"color": "red",
"value": 150
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 12,
"y": 24
},
"id": 15,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "snake_oldest_active_game_age_sec",
"legendFormat": "Oldest Active Game Age",
"range": true,
"refId": "A"
}
],
"title": "Oldest Active Game Age",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 18,
"y": 24
},
"id": 16,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "snake_stale_game_timeout_sec",
"legendFormat": "Stale Timeout (Sec)",
"range": true,
"refId": "A"
}
],
"title": "Stale Timeout (Sec)",
"type": "stat"
}
],
"refresh": "10s",
@@ -912,6 +1213,6 @@
"timezone": "",
"title": "Snake Performance",
"uid": "snake-performance",
"version": 2,
"version": 3,
"weekStart": ""
}