From mefisto
Dashboard de salud del entorno desplegado. Ejecuta queries contra App Insights y presenta un resumen con semaforos. Comunicate en **espanol**.
How this command is triggered — by the user, by Claude, or both
Slash command
/mefisto:health-checkThe summary Claude sees in its command listing — used to decide when to auto-load this command
Dashboard de salud del entorno desplegado. Ejecuta queries contra App Insights y presenta un resumen con semaforos. Comunicate en **espanol**. ## Pre-condicion: cwd != Mefisto Este skill es del plugin publicado y solo aplica al repo consumidor. Mefisto no tiene entorno desplegado ni App Insights: ## Proceso ### 1. Validar prerequisitos Verifica que el script existe y es ejecutable: Si falla, responde: Y termina. Verifica que hay sesion activa de Azure CLI: Si falla, responde: Y termina. ### 2. Ejecutar queries Ejecuta las 3 queries en secuencia. Captura la salida compl...
Dashboard de salud del entorno desplegado. Ejecuta queries contra App Insights y presenta un resumen con semaforos. Comunicate en espanol.
Este skill es del plugin publicado y solo aplica al repo consumidor. Mefisto no tiene entorno desplegado ni App Insights:
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null) || { echo "ERROR: no estas en un repositorio git"; exit 1; }
if [ -f "$REPO_ROOT/.claude-plugin/plugin.json" ]; then
echo "ERROR: /health-check no aplica al repo de Mefisto."
exit 1
fi
Verifica que el script existe y es ejecutable:
test -x scripts/appinsights-query.sh && echo "OK" || echo "FAIL"
Si falla, responde:
El script scripts/appinsights-query.sh no existe o no es ejecutable.
Asegurate de que el issue #33 esta mergeado.
Y termina.
Verifica que hay sesion activa de Azure CLI:
az account show --query name -o tsv 2>/dev/null
Si falla, responde:
No hay sesion activa de Azure. Ejecuta:
az login
Y termina.
Ejecuta las 3 queries en secuencia. Captura la salida completa de cada una:
./scripts/appinsights-query.sh health-summary --hours 24
./scripts/appinsights-query.sh dead-letters --hours 24
./scripts/appinsights-query.sh function-errors --hours 24
Si alguna query falla, reporta el error pero continua con las demas.
Analiza la salida tabular de cada query para extraer las metricas:
De health-summary:
totalExceptions y distinctTypes de la seccion "Excepciones"totalRequests, failedRequests y availabilityPct de la seccion "Requests fallidas"De dead-letters:
De function-errors:
Criterios:
Determina el estado general:
Muestra el dashboard en este formato exacto:
HEALTH CHECK - [FECHA Y HORA ACTUAL]
----------------------------------------------------------------------
Exceptions (24h): [N] total, [M] tipos distintos [SEMAFORO]
Requests: [N] total, [M] fallidas ([P]%) [SEMAFORO]
Dead Letters: [N] mensajes encontrados [SEMAFORO]
Function Errors: [N] funciones con fallos [SEMAFORO]
----------------------------------------------------------------------
Estado general: [OK | ATENCION | CRITICO]
Donde los semaforos son literalmente:
[verde] para metricas saludables[amarillo] para metricas que requieren atencion[rojo] para metricas criticasSi algun indicador esta en amarillo o rojo, agrega una seccion de problemas detectados:
Problemas detectados:
- [Indicador]: [descripcion del problema]
Sugiero: /bug "[sintoma especifico basado en los datos]"
Por ejemplo:
Sugiero: /bug "N excepciones detectadas en las ultimas 24h, tipo principal: [tipo]"Sugiero: /bug "dead letters detectados en las ultimas 24h"Sugiero: /bug "N funciones con requests fallidas en las ultimas 24h"Sugiero: /bug "disponibilidad en [P]%, por debajo del umbral"Al final del dashboard, siempre agrega:
Tip: vuelve a ejecutar /health-check periodicamente durante tu sesion de trabajo para detectar cambios en el entorno.
appinsights-query.sh -- solo ejecuta sus comandos./bug si hay algo anormal.--hours 24 en todas las queries para mantener consistencia.npx claudepluginhub augusto-romero-arango/eda-evsourcing-azure-harness --plugin mefisto/health-checkImplements database health monitoring for PostgreSQL and MySQL with real-time metrics, predictive alerts, automated remediation, and Grafana dashboards using Prometheus exporters.
/health-checkCreates health check scripts to verify service and infrastructure availability, with standardized status format, alerting setup, scheduling via cron or Kubernetes probes, and documentation.
/health-checkChecks etcd cluster health, member status, leadership, connectivity, and identifies issues in OpenShift.
/health-checkAnalyzes and grades component health for an OpenShift release using regression metrics and JIRA bug data, with automatic data fetching and filtering by components or team.
/health-checkValidates plugin agents, hooks, and commands, reporting PASS/FAIL status for each component type with overall health summary.