Deployment — LastVet Slack enrichment¶
Target host: observability VM (ryan@192.168.1.93 from agent-01 LAN).
Prerequisites¶
- BWS key
LASTVET_R940_ALERTMANAGER_SLACK_WEBHOOK_URLpopulated inlastvetproject. - BWS access on observability VM (
/etc/bitwarden/access-tokenor/etc/profile.d/bws.sh). - Python 3.11+ on observability VM.
Install / upgrade¶
cd ~/code/last1/lastvet-gates
git pull
chmod +x scripts/observability/deploy-slack-enrichment.sh
chmod +x scripts/observability/restore-slack-enrichment-env-from-bws.sh
./scripts/observability/deploy-slack-enrichment.sh
This script:
- Rsyncs
services/lastvet-slack-enrichment/to/opt/lastvet-slack-enrichment - Creates system user
slack-enrichment - Installs Python venv + package
- Restores
/etc/lastvet-slack-enrichment/enrichment.envfrom BWS - Installs and starts
lastvet-slack-enrichment.service
Alertmanager cutover¶
Redeploy Alertmanager config (webhook receiver replaces direct Slack):
Alertmanager posts to http://127.0.0.1:8088/webhook/alertmanager with send_resolved: true.
Firewall¶
Allow Tailscale health checks on port 8089:
Verify¶
Check #alerts-lastvet for SlackEnrichmentTestWarning enriched message and auto-resolve.
UptimeRobot (optional)¶
Add monitor: http://100.123.175.50:8089/health (refresh Tailscale IP if VM changes).
Rollback¶
- Restore previous
infra/observability/alertmanager/alertmanager.ymlwith directslack_configs. ./scripts/observability/deploy-alerting-phase4.shsudo systemctl stop lastvet-slack-enrichment