Skip to content

Feat/notify migration slack#52

Open
DmitriiAn wants to merge 10 commits intomainfrom
feat/notify-migration-slack
Open

Feat/notify migration slack#52
DmitriiAn wants to merge 10 commits intomainfrom
feat/notify-migration-slack

Conversation

@DmitriiAn
Copy link
Copy Markdown
Contributor

Slack monitoring :

slack-migration-alerts.sh - slack alerts for pgcopydb migration events

ALERTS FIRED when:

  • pgcopydb process stopped unexpectedly (fires once per transition)
  • New ERROR lines in migration.log (fires once per new batch)
  • Initial copy completed (data + indexes + constraints + post-data; fires once)
  • Migration completed successfully (fires once)
  • Migration failed with non-zero exit code (fires once)

DmitriiAn and others added 9 commits March 27, 2026 15:23
Runs from cron and fires once per unique event to avoid spam:
- pgcopydb process stopped unexpectedly
- New ERROR lines in migration.log
- Migration completed (success or failure)

Alert messages include tables copied and GB transferred, sourced from
the pgcopydb SQLite catalog. State is stored in $MIGRATION_DIR/.notify-state
and resets automatically when a new migration starts.

README: added usage to the Monitor section and script reference table.
…EBHOOK_URL to .env; decouple monitoring from start-migration-screen.sh
@DmitriiAn DmitriiAn requested a review from teknogeek0 May 5, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant