- Gather credentials and a staging bot/app solely for graceful telegraf stop.
- Implement the minimal change so that: Stop polling; close; exit 0.
- Add a fail-closed unit or fixture test that locks the behavior of graceful telegraf stop.
- Run the flow end-to-end in staging; capture logs for the success and error paths.
- Write operator notes (env vars, rollback) for graceful telegraf stop in the README.
Tutorial
Graceful Telegraf SIGTERM stop
Stop polling; close; exit 0.