Saltar a contenido

SAFE-POINT-047 - La Directa selective phase 1 alerts

Fecha: 2026-06-17

Metadata

  • active_repo: C:\APV\openclawai
  • safe_point_base: 4d6ff012f3ae0d29964acd6f1af86aa301968003
  • openclaw_vps_touched: true
  • woo_vps_touched: false
  • runtime_deploy_executed: true
  • prometheus_runtime_reloaded: true
  • grafana_runtime_reloaded: false
  • alert_rule_runtime_deployed: true
  • dashboards_promoted: false

Objetivo

Activar en runtime O4 solo estas alertas para La Directa:

  • EcommerceLaDirectaStoreDown
  • EcommerceLaDirectaCartDown
  • EcommerceLaDirectaMyAccountDown

Sin activar otras alertas candidatas y sin tocar dashboards.

SAFE POINT inicial

  • repo local: C:\APV\openclawai
  • git status -sb: ## main...origin/main
  • git rev-parse HEAD: 4d6ff012f3ae0d29964acd6f1af86aa301968003
  • ultimo commit visible: observability: audit ladirecta phase 1 promotion

Precondiciones validadas en Prometheus

  • probe_success{job="blackbox-http",instance="https://ladirecta.com.ar/tienda/"}: 1
  • probe_http_status_code{job="blackbox-http",instance="https://ladirecta.com.ar/tienda/"}: 200
  • probe_success{job="blackbox-http",instance="https://ladirecta.com.ar/carrito/"}: 1
  • probe_http_status_code{job="blackbox-http",instance="https://ladirecta.com.ar/carrito/"}: 200
  • probe_success{job="blackbox-http",instance="https://ladirecta.com.ar/mi-cuenta/"}: 1
  • probe_http_status_code{job="blackbox-http",instance="https://ladirecta.com.ar/mi-cuenta/"}: 200
  • ALERTS{alertname="EcommerceLaDirectaArRedirectBroken",alertstate="firing"}: vacio

Archivo modificado

  • infra/observability/prometheus/rules/service-alerts.yml
  • impacto: agrega solo las tres reglas runtime de paginas criticas con expresion probe_success != 1 OR probe_http_status_code != 200, for: 3m y labels/annotations consistentes con O4

Reglas activadas

  • EcommerceLaDirectaStoreDown
  • target: https://ladirecta.com.ar/tienda/
  • EcommerceLaDirectaCartDown
  • target: https://ladirecta.com.ar/carrito/
  • EcommerceLaDirectaMyAccountDown
  • target: https://ladirecta.com.ar/mi-cuenta/

Reglas explicitamente no activadas

  • EcommerceLaDirectaPrimarySiteDown
  • EcommerceLaDirectaSslExpirySoonPhase1
  • EcommerceLaDirectaHighLatencyPhase1

Backup runtime

  • directorio: /opt/stacks/observability/backups/20260617-175110-safe-point-047
  • contenido:
  • prometheus.yml
  • rules/service-alerts.yml
  • SHA256SUMS.txt
  • SHA256SUMS.txt:
  • a17acbb07f924625a4ee9f2d86f69df56d8ab469c1842fbeebc364611ee26cbd prometheus.yml
  • 47bc0d2d1b5138fb89965e241e81002395424c9fe962a33f618d08acbc61c193 rules/service-alerts.yml

Validaciones previas a runtime

  • docker exec obs-prometheus promtool check rules /tmp/service-alerts.safe-point-047.yml: PASS
  • docker exec obs-prometheus promtool check config /etc/prometheus/prometheus.yml: PASS

Runtime aplicado

  • sync controlado:
  • origen: C:\APV\openclawai\infra\observability\prometheus\rules\service-alerts.yml -> openclaw-vps:/tmp/service-alerts.safe-point-047.yml
  • destino: /opt/stacks/observability/prometheus/rules/service-alerts.yml
  • reload controlado:
  • POST /-/reload solo en obs-prometheus
  • no se reinician servicios

Validacion runtime

  • /api/v1/rules: visibles EcommerceLaDirectaStoreDown, EcommerceLaDirectaCartDown y EcommerceLaDirectaMyAccountDown
  • ALERTS{alertname=~"EcommerceLaDirecta(StoreDown|CartDown|MyAccountDown)"}: vacio o no firing
  • probes posteriores:
  • tienda: probe_success=1, probe_http_status_code=200
  • carrito: probe_success=1, probe_http_status_code=200
  • mi-cuenta: probe_success=1, probe_http_status_code=200
  • EcommerceLaDirectaArRedirectBroken: sigue sin firing
  • ss -ltn '( sport = :9090 or sport = :9093 )': sin listeners host para Prometheus y Alertmanager

Alcance preservado

  • no se toco C:\APV\vps-woocommerce-ladirecta
  • no se toco VPS WooCommerce, WordPress ni WooCommerce
  • no se tocaron DNS, Cloudflare, firewall ni secretos
  • no se toco SOURCE-003
  • no se tocaron dashboards Grafana
  • no se tocaron Blackbox, Alertmanager, Thanos, Node Exporter, cAdvisor ni NPM
  • no hubo push
  • no hubo deploy del Knowledge Portal