diff --git a/postgresql/README.md b/postgresql/README.md new file mode 100644 index 0000000..14ec183 --- /dev/null +++ b/postgresql/README.md @@ -0,0 +1,8 @@ +# PostgreSQL Partitioning for Zabbix + +This directory contains solutions for partitioning a Zabbix database running on PostgreSQL. Partitioning is essential for large Zabbix environments as it eliminates the need for the built-in Zabbix Housekeeper to aggressively delete old data row-by-row, replacing it with instant DDL operations that drop entire daily or monthly chunks. + +## Implementations + +- **[procedures](procedures/)**: The recommended Declarative (SQL-based) implementation. It uses native PostgreSQL procedures and features like `pg_cron` for entirely self-contained maintenance. +- **[script](script/)**: External script-based management solution. (Coming soon) diff --git a/postgresql/script/README.md b/postgresql/script/README.md new file mode 100644 index 0000000..2c38b68 --- /dev/null +++ b/postgresql/script/README.md @@ -0,0 +1,3 @@ +# Script-based Partitioning + +(Coming soon) diff --git a/template/README.md b/postgresql/template/README.md similarity index 100% rename from template/README.md rename to postgresql/template/README.md diff --git a/template/partitions.get_all.sql b/postgresql/template/partitions.get_all.sql similarity index 100% rename from template/partitions.get_all.sql rename to postgresql/template/partitions.get_all.sql diff --git a/template/zbx_pg_partitions_monitor_agent2.yaml b/postgresql/template/zbx_pg_partitions_monitor_agent2.yaml similarity index 100% rename from template/zbx_pg_partitions_monitor_agent2.yaml rename to postgresql/template/zbx_pg_partitions_monitor_agent2.yaml