Files
securityonion/salt/manager/tools/sbin
Mike Reeves a2a4d9314d Repair stalled Telegraf partitions from soup instead of every highstate
Truncating default partitions is destructive and premaking them is pg_cron's
job, so neither belongs in a state that runs on every checkin. Replace the two
telegraf_users states with so-telegraf-partition-repair, a standalone tool that
reports partition health and clears the backlog, and call it once from soup.

The script depends only on pg_partman, so it also runs against a grid that has
not yet picked up the new postgres state. It no-ops when nothing is stranded,
refuses to discard rows non-interactively without --yes, and reports when the
pg_cron job has never fired, which is the underlying cause rather than a
symptom the truncate addresses.

Hourly self-healing stays with so_admin.telegraf_maintenance() via pg_cron, so
a grid that never soups still recovers, just gradually and without discarding
in-retention metrics.
2026-08-06 12:28:40 -04:00
..
2023-05-02 09:40:02 -04:00
2023-05-02 09:40:02 -04:00
2023-05-02 09:40:02 -04:00
2023-12-08 19:37:06 +00:00
2025-04-09 11:19:55 -04:00
2026-07-15 16:32:29 -04:00
2026-03-05 11:05:19 -05:00