Why Zabbix database sizing decides whether monitoring holds up
Plan the database and retention model before your Zabbix deployment grows, because most of the load and storage growth lands in the database and the choices you make early are hard to reverse. Zabbix stores two main data classes: history, which keeps every collected value for each item, and trends, which keeps hourly aggregates for longer periods. History is the class that grows fastest, and its retention period determines how much disk you need. Housekeeping, the process that deletes expired data, runs against these tables continuously, so a retention policy that is changed late can leave a large backlog of rows to purge.
For the Zabbix 7.4 release, the supported engines are MySQL or Percona 8.0.30 to 9.7, MariaDB 10.5 to 12.3, PostgreSQL 13 to 18, and PostgreSQL with the TimescaleDB extension 2.13 to 2.29. SQLite is supported for proxies only. Support windows move with each release, so confirm the exact database and extension versions against the release you plan to run before you choose an engine, using the Zabbix requirements page. Your database platform team should also confirm that the version is still within the vendor's own support window.
Sizing is harder than it looks because three inputs multiply each other. The number of items, the polling interval of each item, and the retention period for history and trends together set the row count, and small changes in any one of them change storage and write load sharply. Adding a template to a group of hosts, or enabling a new discovery rule, can add thousands of items without anyone reviewing the database impact. Estimate growth from the items you expect after rollout, not only the items you have on day one, and ask whether your discovery rules can create items automatically.
Which database components and settings shape Zabbix storage
Zabbix storage load comes from several layers working together: the schema that holds collected values, the frontend that reads them, the housekeeper that deletes them, the database engine underneath, and optional extensions for time-series data. Sizing decisions in one layer change the load on the others, so review them together before choosing hardware or retention.
Server database schema and history tables
The Zabbix server writes every collected value into history tables and writes aggregated values into trends tables. Each item you monitor, at its polling interval, adds rows, so the number of items and their update frequency drive table growth more than the number of hosts alone. Before sizing, export the item count and average update interval from your pilot and multiply them out over your retention period. Confirm the table layout for your chosen version in the Zabbix documentation.
Zabbix requirementsFrontend and API read queries
The web frontend and API query history and trends for graphs, dashboards, latest data and reports. Broad time ranges over many items force the database to scan large volumes, so a dashboard that looks harmless can be the heaviest query on the system. Operators control this through dashboard design, item selection in graphs and the number of concurrent users. Test heavy views on a copy of production data before users reach them.
Housekeeper and retention settings
The housekeeper is the server process that deletes history and trends older than the retention period configured for each item, and it also removes expired events and other records. If deletion falls behind ingestion, tables keep growing and database performance drops. Operators set global housekeeping options and per-item retention, so review retention for high-frequency items separately from long-term trend data. Confirm housekeeper behavior and any scheduled cleanup for your version before relying on it.
PostgreSQL and MySQL-family engine
The database engine determines how writes, indexes, vacuum or purge operations and backups behave under sustained inserts. Zabbix supports MySQL, Percona, MariaDB and PostgreSQL, and each has its own versions, storage engine choices and maintenance needs. Choose the engine your team can patch, back up and restore, and size its storage, memory and I/O against the write rate you measured. Confirm supported versions for your Zabbix release in the requirements page.
Supported database versionsTimescaleDB extension for PostgreSQL
TimescaleDB is an extension that adds time-series partitioning and compression to PostgreSQL, and Zabbix can use it for history and trends storage. It helps when table size and delete or compression cost become the bottleneck at scale, but it adds an extension to install, upgrade and back up. Check that your PostgreSQL and TimescaleDB versions appear together in the supported list for your Zabbix release, and confirm how retention and compression policies interact with Zabbix housekeeping.
Which database engine and storage model to choose
This table compares the database engines Zabbix supports and the decision to add TimescaleDB on PostgreSQL. Read each row against your team's skills, your backup standard and the Zabbix release you plan to run. The main takeaway: pick the engine your team can operate well, and treat TimescaleDB as a storage decision to make only after confirming extension compatibility with your exact Zabbix version.
| Option | When it fits | Operational cost | Compatibility and checks |
|---|---|---|---|
| MySQL or Percona | Your team already runs MySQL or Percona Server well and has tested backup and restore for it. | Standard backup tooling and DBA skills you likely already have. Table partitioning for history is handled by Zabbix housekeeping, not by a time-series extension. | Confirm the exact version against the Zabbix requirements page, which lists Percona 8.0.30 to 9.7 and MySQL support for Zabbix 7.4. |
| MariaDB | Your organization standardizes on MariaDB and your DBAs already operate it in production. | Similar to MySQL in skills and tooling. Check that your backup product and monitoring agents support the MariaDB line you deploy. | Confirm the MariaDB version range for your Zabbix release on the requirements page, which lists 10.5 to 12.3 for Zabbix 7.4. |
| PostgreSQL without TimescaleDB | Your team knows PostgreSQL, you want one well-documented engine, and your history volume is moderate. | Requires PostgreSQL tuning, vacuum monitoring and table size management. Housekeeping settings become the main lever for storage growth. | Supported range for Zabbix 7.4 is PostgreSQL 13 to 18 per the requirements page. Confirm the release you run before choosing. |
| PostgreSQL with TimescaleDB | Your history and trends tables are large, retention is long, and you have a DBA who can manage hypertables and chunk settings. | Adds an extension to install, patch and upgrade alongside PostgreSQL. Backup and restore steps should be tested with the extension enabled. | Zabbix 7.4 lists TimescaleDB 2.13 to 2.29 in the requirements page. Confirm the pairing for your Zabbix and PostgreSQL versions before upgrades. |
| Keep plain PostgreSQL versus adding TimescaleDB | Choose plain PostgreSQL when volume is modest and your team wants fewer moving parts. Add TimescaleDB only after measuring table growth and query latency on your own data. | Extra extension upgrade work recurs with each Zabbix and PostgreSQL upgrade. Plan a test environment for every upgrade cycle. | Decide after a sizing exercise on your own item count and retention settings, not on general guidance alone. |
| Storage model: history and trends retention | Long history retention for detailed analysis needs more storage. Short history with longer trends keeps the database smaller. | Storage cost recurs and grows with item count, polling interval and retention length. Set retention per item type where possible. | Confirm retention and housekeeping settings for your Zabbix release in the official documentation before setting values. |
How to size and configure the Zabbix database step by step
This sequence takes a team from an inventory of monitored hosts to a tested Zabbix database that holds its expected data volume, retains history as intended and stays within a supported engine and version. Each step ends with a check you can record before moving on.
Inventory items and polling intervals per host type
Group your monitored estate by host type, such as network devices, Linux and Windows servers, hypervisors, databases and applications. For each group, list the templates or item sets you plan to use, how many items each host will carry, and the update interval for each item class. Include low-level discovery rules, since they can create many items per host without anyone adding them by hand. The step is done when every host group has a written item count and interval, reviewed by the team that owns those systems.
Estimate values per second from the inventory
Convert the inventory into an expected rate of new values per second across the whole deployment. Multiply items by host count for each group, divide by the interval, and add a margin for discovery growth and for hosts you expect to add in the next planning cycle. Keep the calculation in a spreadsheet so the assumptions are visible to reviewers. The step closes when the team agrees on a projected value rate and a written list of assumptions that would change it.
Set history and trends retention per item class
Decide how long raw history and hourly trends should be kept for each item class. Frequently polled availability and performance items usually need different retention from slow-changing inventory items, and business or compliance needs may set minimums for some data. Record retention per class in the same planning document as the value rate, since retention is the main driver of stored data volume over time. The step is done when each item class has a retention period approved by the team that will answer questions about old data.
Choose the engine and version from the supported matrix
Select the database engine (MySQL or Percona, MariaDB, or PostgreSQL, with or without the TimescaleDB extension) and check the exact version against the Zabbix requirements for the release you plan to run. Confirm that the Zabbix release itself is on a supported line, using the life cycle policy, before you commit to it. Ask your database team to confirm licensing, backup tooling and operational skills for the chosen engine. The step closes when the engine and version are recorded as inside the supported range for the chosen Zabbix release.
Configure housekeeping and any partitioning
Set the housekeeper options that match the retention decisions, and check how your chosen engine removes old rows and reclaims space. If you use TimescaleDB, plan chunk and retention handling with the extension's own settings and confirm they match the Zabbix configuration, because the two can conflict. Document who owns the database maintenance window and how table growth will be monitored. The step is done when a test environment shows the housekeeper removing data as configured, with no unexpected growth in the history and trends tables.
Load-test with a representative host set
Build a test environment with a representative subset of hosts, items and triggers, then run it at or above the projected value rate for long enough to see housekeeping cycles complete. Watch database write latency, storage growth, query time on the frontend and the server's internal queue indicators. Compare observed storage growth with the figure your retention plan predicts. The step closes when the observed rate and storage growth match the projection within a tolerance the team has agreed, or when the gap is explained and the plan is revised.
How monitoring data flows into history, trends and housekeeping
The diagram starts at agents and proxies that send collected values to the Zabbix server, which polls items and writes each value to the database. The server stores raw values as history and summarized values as trends, and the housekeeper removes rows that have passed their retention period. The frontend and API read from the same database, so retention and table growth affect every screen and report. If TimescaleDB is used, it sits as an extension layer on the PostgreSQL database, and you should confirm which tables it manages in your version before you rely on it for retention.
Monitoring data moves from collection through the server into history and trends, with housekeeping and the frontend reading the same database.
What drives database effort and cost, and how to keep each down
This table lists the main factors that increase Zabbix database storage, load and operating effort, with the levers that reduce each one. Read it as a checklist for sizing discussions: the more rows a driver adds per day and the longer it is kept, the larger the database and the more backup and staff time it needs. No dollar figures appear here, so ask for any cost estimate in a written quote.
| Driver | Why it raises effort or storage | How to keep it down |
|---|---|---|
| Monitored item count | Each item writes history rows on every poll, so total item count sets the base write rate and table growth. | Remove items nobody uses, prefer trigger-based or low-frequency items for slow-changing data, and review template items before linking them to hosts. |
| Polling frequency | Short update intervals multiply rows per item per day, which increases insert load, index maintenance and storage. | Set intervals by business need, lengthen intervals for slow metrics, and avoid one-second polling unless a use case requires it. |
| Number of hosts and proxies | More hosts add items and triggers, and more proxies add a data path that must be sized and kept consistent with the server. | Group hosts by template, use proxies only where network segmentation or distance requires them, and size each proxy's buffer and database to its own host count. |
| History and trends retention | History keeps raw values and grows fastest, while trends keep hourly aggregates for longer periods at much smaller volume. | Set history retention per item class (for example, short retention for high-frequency data), keep trends longer for capacity reporting, and confirm housekeeping settings before go-live. |
| Number of environments | Test, staging and production each carry their own items, housekeeping and backups, so effort multiplies even when production is the largest. | Monitor lower environments with fewer hosts and shorter retention, and document which templates and settings are copied between environments. |
| Integrations that add items | Cloud, container and application integrations often create discovered items and many more data points than hand-built checks. | Filter discovery rules, exclude noisy discovered objects, and review LLD output regularly so unused prototypes do not keep writing history. |
| Compliance retention requirements | Regulators or internal policy may require longer retention of certain metrics or events, which extends storage, backup and restore time. | Confirm the retention period per data class with the compliance owner, then apply longer retention only where it is required and export or archive the rest. |
| Database platform and TimescaleDB use | Plain PostgreSQL or MySQL-family databases need more manual partitioning and housekeeping work as volume grows; TimescaleDB changes that work but adds its own version compatibility and operational checks. | Benchmark on a representative copy of your data, confirm supported version pairs for your Zabbix release, and decide on TimescaleDB before the first production load. |
How database sizing differs for single node, HA and remote-site deployments
A single Zabbix server writes every item value, event and trend into one database, so that database carries the full load of the environment. Sizing starts from the number of monitored items, their update intervals and how long history and trends are kept. The same server also runs housekeeping, so a large backlog of old data can slow the frontend and the server at the same time. Backups and restores are simple because there is one database to protect, but a single database host is also a single point of failure.
- Item count and intervals: Each item polled more often adds rows to history, so frequent checks drive growth more than host count alone.
- Retention settings: History and trends retention set per item type decide how much data stays online at any time.
- Housekeeping load: Deleting expired rows is itself database work, so confirm how housekeeping behaves on large tables for your version.
- Backup window: Backup size and restore time grow with history, which affects recovery planning.
- Single host risk: One database host and one server mean an outage stops collection, so plan the recovery path before go-live.
Before sizing, confirm the database versions, the housekeeping settings and the TimescaleDB support status in the requirements documentation for your Zabbix version.
A high availability cluster runs several Zabbix server nodes against one shared database. One node is active and the others stand by, so the database stays the single store for history, trends and configuration. Sizing the database is largely the same as for a single server, but the cluster adds load patterns to plan for: standby nodes must reach the database, and failover moves the active role without changing the stored data. Operationally, the team must watch the database as the shared dependency, because a slow or full database affects every node.
- Shared database capacity: The database must handle the write load of the active node plus the connections from all cluster members.
- Failover delay: The HA documentation gives a configurable failover delay from 10 seconds to 15 minutes, and that setting decides how long a stalled active node is tolerated before a standby takes over.
- Replication design: Database replication for resilience is a separate design decision, so confirm which replication model your chosen database supports.
- Storage growth: Retention and housekeeping still govern size, so set them once for the cluster and monitor the shared tables.
- Connection limits: Each node opens its own connections, so check the database connection limit against the node count.
Confirm the failover delay range, the supported database versions and the HA setup steps in the high availability documentation for the version you plan to run.
When remote sites run Zabbix proxies, the proxy collects data locally and forwards it to the central server. Proxies hold the data temporarily in their own database until the server accepts it, so a proxy also needs local storage sized for the outage time it must cover. The central database no longer stores every raw value from every site in the same way, and its sizing changes with how much each proxy sends and how the server writes it. Proxy database choice differs from the central choice, and SQLite is listed as available for proxies only.
- Local buffer on proxies: Size proxy storage for the longest expected link outage, since the proxy keeps data until the server reconnects.
- Central write volume: The server's database sees the combined flow from all proxies, so total item count across sites drives central sizing.
- Proxy database engine: SQLite is supported for proxies only, so the central database must use one of the server-supported engines.
- Proxy groups: From Zabbix 7.0, proxy groups redistribute hosts when a proxy goes offline, which changes where data is written during failover.
- Operations split: Each proxy needs its own housekeeping, upgrades and monitoring, so add those tasks to the operating model.
Confirm the proxy database options, the proxy group behavior and the server-side sizing guidance in the proxy high availability documentation for your version.
How to verify the database holds up before and after go-live
Verification should prove three things before go-live: the database absorbs the projected write load, housekeeping removes data on schedule, and the frontend stays responsive under dashboard load. Start with a load test built from your projected numbers, not from a demo template. Count the items you expect to monitor, the polling intervals you configured for each item type, and the number of users who will open dashboards at peak. Run that load against a staging database of the same engine and version you will use in production, and watch the write queue in the server internal items and the database's own write and disk metrics. Record the sustained insert rate and the disk growth per day so you can compare them with the sizing model later.
Next, confirm that the housekeeper does what your retention settings say. Set a short history and trends period in a test environment, let data age past it, and check that the rows in the history and trends tables are removed at the expected cadence. Pay attention to HousekeepingFrequency, to whether the housekeeper keeps up on a large table, and to the time it takes each run. On TimescaleDB, verify that retention and compression policies are running as intended and that chunks are being dropped rather than left behind. Also open the frontend under expected load, check how long Latest data, graphs and dashboards take to render, and rehearse a full restore from backup into a separate host, timing the restore and confirming the server starts against it.
Failure testing comes last, and it should be done in staging with the same settings as production. Restart the database service during steady load and observe how the Zabbix server behaves: whether it reconnects, how long the data gap lasts, and whether values are queued or lost. If you run a database replica, test a promotion or a replica loss and confirm what your HA design actually does, because replication does not change how the server handles a missing primary. Confirm which parts of the Zabbix server log and internal metrics show the outage, and check the Zabbix documentation for your version to confirm the exact behavior during short database outages. Keep the results in a sizing record: item count, polling rates, insert rate, disk growth per day, housekeeping duration, restore time and outage behavior. Revisit that record after each major change, such as adding templates or a new site.
Securing the Zabbix database account, connections and backups
The Zabbix database holds every host, item, credential reference and historical value your monitoring depends on, so it needs the same care as any production data store. The four controls below cover who can reach the database, how traffic is protected in transit, where secrets live, and how backups are protected. Confirm each setting against the Zabbix and database versions you choose, since parameter names and supported options change between releases.
Dedicated least-privilege database user
Create a separate database role for the Zabbix server and another for the frontend, rather than reusing an administrator account. The server needs to read and write history, trends and configuration tables, while the frontend needs a narrower set of rights. Confirm the grants required for your Zabbix version in the requirements documentation before you apply them, and re-check them after every upgrade, because schema changes can add tables the role must reach. Restrict the role to the Zabbix database and to the hosts that run the components.
Zabbix requirementsEncrypted connections to the database
Traffic between the Zabbix server, frontend and database carries credentials and monitoring data, so enable TLS on each connection that crosses a host or network boundary. Confirm which TLS options your database engine and your Zabbix version support for server-to-database and frontend-to-database links, including certificate verification. Also check whether proxies connect to the database at all, since they normally use SQLite locally and send data to the server. Test each connection after enabling it, because a silent fallback to plaintext is a common gap.
Credentials in configuration files and secret stores
Database passwords usually end up in the server configuration file and the frontend configuration file, which are readable by anyone with host access. Restrict file permissions to the service accounts that need them, and keep the files out of shared repositories and backup exports that leave your control. Where your environment provides a secret store or a vault, confirm whether your Zabbix version can read credentials from it or whether you need a provisioning step that writes the file at deploy time. Rotate the password on a schedule you can document.
Encrypted and access-controlled backups
Database backups contain the same history, configuration and credential references as the live database, and they often sit on storage with weaker controls. Encrypt backup files at rest, limit read access to the operators who restore them, and record who can create, copy and delete them. Test restores on a separate host so you know the backups work and that the restore path does not reuse production passwords. Ask your backup vendor or team to confirm how keys are stored and rotated, since encryption without key control gives little protection.
What to monitor, back up, upgrade and document after go-live
The database is the component most likely to become the bottleneck after go-live, so the ongoing work centers on watching it. Track database size growth against your sizing model, write rate into the history tables, table bloat or fragmentation on PostgreSQL or MySQL, housekeeper lag, and query latency on the frontend and the server. A housekeeper that falls behind is an early warning: history and trends tables keep growing, and purge jobs start competing with normal writes. Set alert thresholds on these values and review them monthly for the first year, because the write rate changes whenever a new template or host group is added.
Backups need a schedule and a restore test, not just a successful dump. For PostgreSQL with TimescaleDB, confirm which backup method your team uses for hypertable chunks and that a restore brings back both the Zabbix schema and the extension at the same version. Restore to a separate host on a regular cadence and time the restore, because the restore time is the figure your recovery objectives depend on. Plan database engine and TimescaleDB upgrades together with Zabbix LTS upgrades: check the supported database and extension versions in the Zabbix requirements for your target release, and align the move with the life cycle dates in the release policy, such as full support for 7.0 ending on 30 June 2027.
Document everything an engineer would need to repeat the work without you. Record the current retention settings for history and trends, the sizing model with its inputs, the value-rate assumptions (values per second per item and the number of items assumed), the housekeeping configuration, the backup and restore procedure with its last tested date, and the upgrade path with each intermediate version. Store the record in version control next to your Zabbix configuration, and update it after every retention change. Ask your database team to confirm the storage growth figures against real disk usage each quarter, so the document reflects the environment you run rather than the one you planned.
Questions teams ask before sizing a Zabbix database
How much does a Zabbix database sizing exercise cost?
The cost is the time of the people doing the work, so it follows from the scope: how many item and host counts must be inventoried, how many environments need sizing, and how much testing against a realistic load is included. Sizing is usually a one-time cost, but the result shapes recurring costs for storage, backups and compute for as long as the platform runs. DeployOpen does not publish prices, so ask for a written scope that lists the inventory work, the number of environments, the load tests and the deliverables. Compare quotes on those line items, not on a day rate alone, and confirm who pays for any hardware or cloud capacity that the sizing recommends.
How long does Zabbix database sizing take?
Duration depends on how much of the environment must be measured before a sizing decision can be made. The main drivers are the number of hosts, items and triggers, the update intervals chosen for each item type, the retention periods the business requires, and whether a test environment exists for measuring real write rates. A single small server with an existing Zabbix instance is quicker to size than a multi-site deployment with proxies. Ask the partner to state the phases and the dependencies in the written scope, including how long they need access to the existing monitoring data before the work starts.
Can an in-house team size the Zabbix database without a partner?
Yes, a team with strong PostgreSQL or MySQL administration skills and working knowledge of Zabbix can size its own database. The team needs to understand how history and trends are stored, how item update intervals translate into write volume, how housekeeping removes old data, and how table growth affects backups and recovery time. It also needs a way to measure the database under load, such as monitoring the database itself. Teams without this experience often miss the effect of item counts and short intervals until storage fills up, so a partner review is most useful as a second check on the numbers.
When is the TimescaleDB extension worth adding to Zabbix?
TimescaleDB is worth evaluating when the history and trends tables grow large enough that retention, housekeeping or query performance become a constraint on the existing PostgreSQL database. Zabbix 7.4 lists support for the TimescaleDB extension in versions 2.13 to 2.29 alongside PostgreSQL 13 to 18, so confirm that your PostgreSQL and TimescaleDB versions appear in that combination before you plan. Adding the extension adds operational work: you must maintain the extension version, test upgrades of both Zabbix and PostgreSQL, and make sure your backup tooling supports the chunked layout. Decide on evidence from your own write rate and retention targets, not on size alone.
What does the sizing work need from our team?
The work needs an inventory of what you monitor and how often, plus the retention rules your business and auditors expect for history, trends and events. Provide access to the target environment, including the current Zabbix server or a staging copy, database statistics, and the hardware or cloud profile where the database will run. You also need a named owner who can approve retention decisions and a window for load measurement that does not disrupt production. Ask the partner to list these inputs in the written scope so gaps are visible before work starts, and confirm how access credentials and data copies are handled under your security policy.
Does a Zabbix support subscription cover database sizing questions?
Zabbix states that its open source software has no license fee, no device limits and no feature gates, and that paid technical support subscriptions come in Silver, Gold, Platinum, Enterprise and Global tiers. Check the support page for what each tier covers, because the response times differ by tier, with 8x5 support at Silver and 24x7 support at Platinum and above. A support subscription is a recurring cost that helps with product questions and incidents, but it is not a substitute for a sizing study of your own environment. Confirm the scope of support with Zabbix in writing before assuming that a sizing question is included.
How DeployOpen scopes, builds and hands over Zabbix database work
DeployOpen treats Zabbix database sizing as a written scope inside your own infrastructure, not a one-off tuning exercise. We measure your item count and value rates, agree the history and trends retention you need, and document how the database, housekeeping and any TimescaleDB decision will run after go-live.
How we scope
- Inventory monitored items, expected value rates and retention needs by host group, team and compliance requirement.
- Confirm the database engine and version against the Zabbix 7.4 requirements before choosing PostgreSQL or TimescaleDB.
- Agree in writing which sizing outputs, storage estimates and housekeeping settings the fixed-scope engagement will deliver.
How we build
- Size the database host, storage and backup volume in your environment, then test them against a representative item load.
- Configure history and trends retention, housekeeping and partitioning, and evaluate TimescaleDB only if the measured load justifies it.
- Test backup and restore of the Zabbix database and confirm the server and frontend still perform under the agreed load.
How we hand over
- Deliver a sizing record listing assumptions, retention settings, storage growth figures and the reasons behind each choice.
- Document the housekeeping, partition and TimescaleDB runbook so your operators can run and check it without us.
- Walk your database and monitoring staff through the growth dashboard, alert thresholds and the steps for adding capacity.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, including re-sizing when item counts grow.
- Revisit sizing when you plan a Zabbix version change, since database schema and extension support differ across releases.
- Confirm with your own team and with Zabbix which support subscription tier fits your database operations and response needs.

