Files
securityonion/salt/telegraf
Mike Reeves d9a9029ce5 Adopt pg_partman + pg_cron for Telegraf metric tables
Every telegraf.* metric table is now a daily time-range partitioned
parent managed by pg_partman. Retention drops old partitions instead
of the row-by-row DELETE that so-telegraf-trim used to run nightly,
and dashboards will benefit from partition pruning at query time.

- Load pg_cron at server start via shared_preload_libraries and point
  cron.database_name at so_telegraf so job metadata lives alongside
  the metrics
- Telegraf create_templates override makes every new metric table a
  PARTITION BY RANGE (time) parent registered with partman.create_parent
  in one transaction (1 day interval, 3 premade)
- postgres_telegraf_group_role now also creates pg_partman and pg_cron
  extensions and schedules hourly partman.run_maintenance_proc
- New retention reconcile state updates partman.part_config.retention
  from postgres.telegraf.retention_days on every apply
- so_telegraf_trim cron is now unconditionally absent; script stays on
  disk as a manual fallback
2026-04-16 17:27:15 -04:00
..
2026-03-06 15:45:36 -05:00
2023-05-01 15:21:31 -04:00
2026-03-20 09:19:22 -04:00
2023-05-11 12:14:30 -04:00
2026-03-18 10:38:15 -04:00
2023-05-11 12:12:25 -04:00
2026-03-06 15:45:36 -05:00
2026-03-19 15:12:47 -04:00
2023-05-11 12:12:25 -04:00
2026-03-16 15:57:15 -04:00