monitoring: fuera los restos de polymarket y la datasource Alertmanager

El dashboard «ChemaVX Homelab Overview» tenía 4 paneles Infinity apuntando a
api.polymarket-bot.svc.cluster.local:8000, decomisado el 2026-07-17, más dos
stat de servicios cuyos namespaces ya no existen (polymarket-bot, open-webui)
que se veían como un 0 sospechoso en vez de como ausencia. 24 -> 17 paneles, y
la rejilla de servicios reempaquetada (arrastraba huecos de borrados viejos).

La datasource Alertmanager apuntaba a un servicio inexistente (alertmanager
está desactivado a propósito) y devolvía 500. Dos sorpresas: no la apaga
alertmanager.enabled, sino grafana.sidecar.datasources.alertmanager.enabled; y
quitarla del provisioning NO la borra de grafana.db — hace falta una directiva
deleteDatasources de un solo uso. Igual para la Infinity, creada por UI.

Auditando el Deployment contra el render aparecieron dos campos puestos a mano
que el chart no genera y que sólo seguían vivos por el three-way merge de Helm,
el mismo agujero que 0501aab: GF_INSTALL_PLUGINS (ya sin uso, retirado junto al
plugin de 48 MB) y TELEGRAM_BOT_TOKEN/CHAT_ID, que sí son críticos — el contact
point usa ${TELEGRAM_BOT_TOKEN}, así que reconstruir el release desde cero
habría dejado las alertas mudas. Declarados ya en values.

Verificado: render == desplegado salvo defaults del API server; Grafana
reiniciada y arrancando sin errores, 1 datasource, 25 dashboards, 5 reglas y el
contact point de Telegram con token resuelto.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-22 08:02:48 +00:00
co-authored by Claude Opus 4.8
parent f5bcb76738
commit 28f16314d8
4 changed files with 55 additions and 642 deletions
@@ -4,9 +4,9 @@ metadata:
name: chemavx-homelab-overview
namespace: monitoring
labels:
grafana_dashboard: "1"
grafana_dashboard: '1'
data:
chemavx-homelab-overview.json: |-
chemavx-homelab-overview.json: |
{
"annotations": {
"list": [
@@ -461,7 +461,7 @@ data:
"gridPos": {
"h": 4,
"w": 4,
"x": 8,
"x": 4,
"y": 10
},
"id": 9,
@@ -549,7 +549,7 @@ data:
"gridPos": {
"h": 4,
"w": 4,
"x": 12,
"x": 8,
"y": 10
},
"id": 10,
@@ -637,7 +637,7 @@ data:
"gridPos": {
"h": 4,
"w": 4,
"x": 16,
"x": 12,
"y": 10
},
"id": 11,
@@ -725,7 +725,7 @@ data:
"gridPos": {
"h": 4,
"w": 4,
"x": 20,
"x": 16,
"y": 10
},
"id": 12,
@@ -813,8 +813,8 @@ data:
"gridPos": {
"h": 4,
"w": 4,
"x": 0,
"y": 14
"x": 20,
"y": 10
},
"id": 13,
"options": {
@@ -901,7 +901,7 @@ data:
"gridPos": {
"h": 4,
"w": 4,
"x": 4,
"x": 0,
"y": 14
},
"id": 14,
@@ -989,95 +989,7 @@ data:
"gridPos": {
"h": 4,
"w": 4,
"x": 8,
"y": 14
},
"id": 15,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "12.4.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum(kube_pod_status_phase{namespace=\"polymarket-bot\",phase=\"Running\"}) or vector(0)",
"instant": true,
"legendFormat": "polymarket-bot",
"refId": "A"
}
],
"title": "polymarket-bot",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"0": {
"color": "red",
"index": 0,
"text": "Down"
}
},
"type": "value"
},
{
"options": {
"from": 1,
"result": {
"color": "green",
"index": 1,
"text": "Running"
},
"to": null
},
"type": "range"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"value": null
},
{
"color": "green",
"value": 1
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 4,
"x": 12,
"x": 4,
"y": 14
},
"id": 16,
@@ -1111,94 +1023,6 @@ data:
"title": "ollama",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"0": {
"color": "red",
"index": 0,
"text": "Down"
}
},
"type": "value"
},
{
"options": {
"from": 1,
"result": {
"color": "green",
"index": 1,
"text": "Running"
},
"to": null
},
"type": "range"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"value": null
},
{
"color": "green",
"value": 1
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 4,
"x": 16,
"y": 14
},
"id": 17,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "12.4.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum(kube_pod_status_phase{namespace=\"open-webui\",phase=\"Running\"}) or vector(0)",
"instant": true,
"legendFormat": "open-webui",
"refId": "A"
}
],
"title": "open-webui",
"type": "stat"
},
{
"collapsed": false,
"gridPos": {
@@ -1335,435 +1159,6 @@ data:
],
"title": "Ollama — Memoria en uso",
"type": "stat"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 27
},
"id": 21,
"panels": [],
"title": "📈 Polymarket Bot",
"type": "row"
},
{
"datasource": {
"type": "yesoreyeram-infinity-datasource",
"uid": "infinity"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "blue",
"value": null
}
]
},
"unit": "currencyUSD"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 0,
"y": 28
},
"id": 22,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "/total_pnl/",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "12.4.2",
"targets": [
{
"columns": [
{
"selector": "total_pnl",
"text": "total_pnl",
"timestampFormat": "",
"type": "number"
},
{
"selector": "total_trades",
"text": "total_trades",
"timestampFormat": "",
"type": "number"
},
{
"selector": "win_rate",
"text": "win_rate",
"timestampFormat": "",
"type": "number"
},
{
"selector": "total_deployed",
"text": "total_deployed",
"timestampFormat": "",
"type": "number"
}
],
"datasource": {
"type": "yesoreyeram-infinity-datasource",
"uid": "infinity"
},
"filters": [],
"format": "dataframe",
"global_query_id": "",
"json_options": {
"columnar": false,
"root_is_not_array": true
},
"method": "GET",
"parser": "backend",
"refId": "A",
"root_selector": "",
"source": "url",
"type": "json",
"url": "http://api.polymarket-bot.svc.cluster.local:8000/api/summary",
"url_options": {
"body_type": "",
"data": "",
"headers": null,
"method": "GET",
"params": null
}
}
],
"title": "P&L Actual (USD)",
"type": "stat"
},
{
"datasource": {
"type": "yesoreyeram-infinity-datasource",
"uid": "infinity"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "blue",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 6,
"y": 28
},
"id": 23,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "/total_trades/",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "12.4.2",
"targets": [
{
"columns": [
{
"selector": "total_pnl",
"text": "total_pnl",
"timestampFormat": "",
"type": "number"
},
{
"selector": "total_trades",
"text": "total_trades",
"timestampFormat": "",
"type": "number"
},
{
"selector": "win_rate",
"text": "win_rate",
"timestampFormat": "",
"type": "number"
},
{
"selector": "total_deployed",
"text": "total_deployed",
"timestampFormat": "",
"type": "number"
}
],
"datasource": {
"type": "yesoreyeram-infinity-datasource",
"uid": "infinity"
},
"filters": [],
"format": "dataframe",
"global_query_id": "",
"json_options": {
"columnar": false,
"root_is_not_array": true
},
"method": "GET",
"parser": "backend",
"refId": "A",
"root_selector": "",
"source": "url",
"type": "json",
"url": "http://api.polymarket-bot.svc.cluster.local:8000/api/summary",
"url_options": {
"body_type": "",
"data": "",
"headers": null,
"method": "GET",
"params": null
}
}
],
"title": "Trades Totales",
"type": "stat"
},
{
"datasource": {
"type": "yesoreyeram-infinity-datasource",
"uid": "infinity"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "blue",
"value": null
}
]
},
"unit": "percentunit"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 12,
"y": 28
},
"id": 24,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "/win_rate/",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "12.4.2",
"targets": [
{
"columns": [
{
"selector": "total_pnl",
"text": "total_pnl",
"timestampFormat": "",
"type": "number"
},
{
"selector": "total_trades",
"text": "total_trades",
"timestampFormat": "",
"type": "number"
},
{
"selector": "win_rate",
"text": "win_rate",
"timestampFormat": "",
"type": "number"
},
{
"selector": "total_deployed",
"text": "total_deployed",
"timestampFormat": "",
"type": "number"
}
],
"datasource": {
"type": "yesoreyeram-infinity-datasource",
"uid": "infinity"
},
"filters": [],
"format": "dataframe",
"global_query_id": "",
"json_options": {
"columnar": false,
"root_is_not_array": true
},
"method": "GET",
"parser": "backend",
"refId": "A",
"root_selector": "",
"source": "url",
"type": "json",
"url": "http://api.polymarket-bot.svc.cluster.local:8000/api/summary",
"url_options": {
"body_type": "",
"data": "",
"headers": null,
"method": "GET",
"params": null
}
}
],
"title": "Win Rate",
"type": "stat"
},
{
"datasource": {
"type": "yesoreyeram-infinity-datasource",
"uid": "infinity"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "blue",
"value": null
}
]
},
"unit": "currencyUSD"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 18,
"y": 28
},
"id": 25,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "/total_deployed/",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "12.4.2",
"targets": [
{
"columns": [
{
"selector": "total_pnl",
"text": "total_pnl",
"timestampFormat": "",
"type": "number"
},
{
"selector": "total_trades",
"text": "total_trades",
"timestampFormat": "",
"type": "number"
},
{
"selector": "win_rate",
"text": "win_rate",
"timestampFormat": "",
"type": "number"
},
{
"selector": "total_deployed",
"text": "total_deployed",
"timestampFormat": "",
"type": "number"
}
],
"datasource": {
"type": "yesoreyeram-infinity-datasource",
"uid": "infinity"
},
"filters": [],
"format": "dataframe",
"global_query_id": "",
"json_options": {
"columnar": false,
"root_is_not_array": true
},
"method": "GET",
"parser": "backend",
"refId": "A",
"root_selector": "",
"source": "url",
"type": "json",
"url": "http://api.polymarket-bot.svc.cluster.local:8000/api/summary",
"url_options": {
"body_type": "",
"data": "",
"headers": null,
"method": "GET",
"params": null
}
}
],
"title": "Capital Deployed (USD)",
"type": "stat"
}
],
"refresh": "30s",
@@ -1780,6 +1175,6 @@ data:
"timezone": "browser",
"title": "ChemaVX Homelab Overview",
"uid": "chemavx-homelab-v1",
"version": 3,
"version": 4,
"weekStart": ""
}
}