Zabbix TimescaleDB compression: license and limits

TimescaleDB compression for Zabbix requires the Timescale Community license, compresses only records older than 7 days, and discards late data. Plan the license and data limits before you enable it.

On this page

When Zabbix TimescaleDB compression fits and what it requires

Turning on TimescaleDB compression for Zabbix needs the Timescale Community license, and it applies to records older than 7 days. A team whose history, trends and audit tables keep growing on PostgreSQL should treat that pairing as the first test: if the database will run under the Timescale Community license and the data it wants to compress is older than a week, compression is a candidate. If either condition fails, the option does not apply as written, whatever the table sizes are.

Compression covers three kinds of Zabbix data: history, trends and audit records. Teams usually reach for it because these tables grow without limit between retention cleanups, and compressed chunks take less storage than uncompressed ones. The amount saved depends on the data itself, the retention settings and how far back the compression policy reaches, so no reduction should be promised or budgeted from general figures. Before committing, ask the database team to measure current table sizes and to run a test on a copy of the Zabbix database so the actual result is known.

The license question deserves a review by legal or procurement before any build starts, because the Timescale Community license differs from the Apache 2.0 license that covers other parts of TimescaleDB, and Zabbix does not support compression under Apache 2.0. Confirm which TimescaleDB edition and license the planned build uses, which TimescaleDB version the Zabbix release supports, and whether the organization's hosting model fits the license terms. Those checks come before any table is converted, and they shape the migration, late data and retention decisions that follow.

Why the Timescale Community license decides whether you can compress

Zabbix compression depends on which TimescaleDB build you run, and that build is governed by a license split inside one repository. The cards below cover the code split, what the Timescale License permits, and the questions to settle with counsel before you deploy.

Two licenses in one repository

The TimescaleDB repository is not under a single license. Source outside the tsl directory is under the Apache License 2.0, while code inside it and shared object files with -tsl in their names are under the Timescale License. Zabbix compression for history, trends and audit data relies on features in the Timescale Community build, so the Apache-only build is not enough. Check which package you install before you plan the database.

Read the LICENSE file

Why Zabbix needs the Community build

Zabbix's TimescaleDB setup requires the Timescale Community license and does not support the Apache 2.0 license for compression. The features that matter here, including the columnstore and data retention policies, are part of the Community Edition. An Apache 2 Edition deployment can run Zabbix but cannot use the compression path. Confirm the edition in your staging environment before you change production.

Zabbix TimescaleDB setup

Own infrastructure is permitted

The Timescale License lets you install TimescaleDB Community Edition in your own on-premises or cloud infrastructure and run it at no license charge. For an organization running Zabbix for its own staff and systems, this is the case the license plainly covers. Record the deployment locations and who operates them, because the permission depends on that setup.

Tiger Data editions

Hosting for others is restricted

The license does not allow you to offer TimescaleDB Community Edition as a service, while the Apache 2 Edition can be sold as a service. If you run monitoring for customers, tenants or affiliated companies on a shared Zabbix database, the arrangement may fall outside what the Community build permits. This is the point most likely to need a decision before you commit to compression.

Get legal review before deployment

Ask your legal or licensing counsel to read the Timescale License against your actual use: internal operation, managed services for other parties, contractor-operated environments and any Zabbix hosting arrangement. DeployOpen can document the deployment topology for that review, but the interpretation is yours to obtain from counsel. Keep the written conclusion with the architecture record.

Confirm the build before you plan compression

Pull the TimescaleDB package and version your Zabbix server will use, and confirm its license file and -tsl objects match the Community build. Versions change over time, so check the current release notes and the Zabbix requirements for supported TimescaleDB versions. Make this check a gate in the change plan, so the database is not reconfigured on the wrong package.

Zabbix requirements

Compression options and when each fits

This table compares the two TimescaleDB editions, the default compression threshold and the choice between enabling compression on a new install or migrating existing data. Read each row against your license review and data retention plan, because the limits listed here apply whichever path you choose.

OptionWhat it gives youEngineering effort and limitsWhen it fits
Apache 2 EditionOpen source core under Apache License 2.0, which can be sold as a serviceDoes not support Zabbix TimescaleDB compression, so Zabbix history and trend compression is not available on this editionOnly if compression is not needed and the database stays at its current size
TimescaleDB Community Edition, self-runCompression for Zabbix history, trends and audit data under the Timescale LicenseFree to run in your own on-premises or cloud infrastructure, but you cannot offer it as a service. Confirm the license terms with your legal team before rolloutYour organization runs Zabbix internally and wants compression in its own infrastructure
Default 7 day thresholdRecords older than 7 days are compressed automaticallyThe 7 day minimum cannot be lowered, so recent data stays uncompressed and fully editable for that windowMost installs that accept the default and keep recent data editable
Enable compression on a new installCompression applies from the first data writtenLowest migration effort, since no existing history, trend or audit data must be movedGreenfield Zabbix deployments where the database has no large history to convert
Migrate existing data to TimescaleDBConverts current history, trends and audit data to hypertablesRequires stopping the Zabbix server and frontend for the migration, so plan a maintenance window and a tested rollbackEstablished installs with large history that justify planned downtime and a rehearsed migration
Late data after compressionData older than the compression threshold that arrives late is discardedCompressed chunks cannot be modified, so proxies or hosts with long buffering can lose data unless the threshold covers their delayEnvironments with reliable, timely collection, or where the threshold is set to cover known proxy delays

How the 7 day minimum and discarded late data affect history

Records older than 7 days are compressed by default, and that 7 day minimum cannot be lowered. For Zabbix history, trends and audit data, this means the compression threshold is not a tuning knob you can move closer to real time. Once a chunk of data passes the threshold, it is compressed, and compressed chunks cannot be modified. The practical consequence is that any value that arrives for an older time period after compression has run is not written into the compressed data. Late data older than the compression threshold is discarded, so the history you see for that window stays as it was when the chunk was compressed. Check the Zabbix TimescaleDB setup documentation for the current settings before planning around these limits.

The risk is concentrated in data sources that deliver values late by design. A Zabbix proxy that loses contact with the server during a network or power outage buffers its collected values locally, then sends them when it reconnects. If the outage lasts longer than the threshold, the buffered values for the outage window can arrive after their chunks are compressed and be discarded. The same applies to delayed hosts, such as remote sites on satellite or constrained links, SNMP devices that are polled infrequently, and any item whose preprocessing or dependent collection runs behind real time. Each of these can look healthy in the frontend while silently losing part of its history, which matters most for capacity reports and audits that depend on that data.

Before enabling compression, pull a sample of your latest data arrival patterns. Compare the item timestamps with the time each value reached the server or proxy, and identify which proxies, hosts and item types regularly deliver values more than 7 days late, along with the longest outage each proxy has had in the past year. Confirm with your own records how long your proxy buffers can hold data, since that determines how much late data you would lose after a long outage. If the longest realistic backlog is shorter than your planned threshold, compression is low risk for those sources. If it is not, decide whether to keep those sources uncompressed, accept the loss in writing, or extend the time window your reports depend on before you turn compression on.

How to enable TimescaleDB compression on Zabbix step by step

This sequence takes an existing Zabbix installation from a standard PostgreSQL database to TimescaleDB with compression turned on for history, trends and audit data. Each step ends with a check, so you know the license, versions, backups and data conversion are settled before the server runs again.

  1. Confirm the license and version compatibility

    Before changing anything, confirm that your intended use of TimescaleDB Community Edition fits the Timescale License, since Zabbix compression is not supported under the Apache 2.0 license. Check that your Zabbix release and your PostgreSQL and TimescaleDB versions appear together in the supported ranges in the Zabbix requirements page. Your check is a written note from the platform owner that records the license decision, the Zabbix version, the PostgreSQL version and the TimescaleDB version you will install.

  2. Back up the Zabbix database

    Take a full, restorable backup of the Zabbix database before any change, and store it outside the database host. Because compressed chunks cannot be modified and the migration converts existing tables in place, this backup is your only rollback path. Confirm the backup by restoring it to a scratch database and checking that the table row counts for history, trends and audit data match the source. Document where the backup lives and how long you keep it.

  3. Stop the Zabbix server and frontend

    Stop the Zabbix server processes on every node, and stop the web frontend so no users or API clients write to the database. Migrating existing history, trends and audit data to TimescaleDB requires both to be stopped, so confirm this on every server node in a high availability cluster. Your check is that no Zabbix server process is running and the frontend returns no active sessions, with the stop time recorded in your change record.

  4. Prepare the TimescaleDB extension

    Install the TimescaleDB extension on the PostgreSQL server using the packages that match your PostgreSQL major version and the TimescaleDB version in the supported range. Enable the extension in the Zabbix database and confirm that the installed TimescaleDB edition is the Community Edition that carries the Timescale License. Your check is a query that returns the extension name and version in the Zabbix database, with the edition confirmed in your change record.

  5. Migrate history, trends and audit data

    Run the Zabbix TimescaleDB setup steps that convert the history, trends and audit tables into hypertables, which the Zabbix documentation describes for this migration. This conversion happens only while the server and frontend are stopped, so do not start either component during the migration. Your check is that the migration finishes without errors and that row counts for each converted table match the pre-migration counts from your backup check.

  6. Enable compression and restart Zabbix

    Turn on compression for the history, trends and audit data using the Zabbix compression settings, keeping the default threshold of 7 days unless your retention policy requires otherwise, since that minimum cannot be lowered. Then start the Zabbix server and frontend and watch the logs for database errors. Your check is that the server starts cleanly and items continue to receive values without database write failures.

  7. Verify chunk compression and late data handling

    After the restart, confirm that older chunks are being compressed as expected by checking the TimescaleDB chunk status for each converted table. Confirm your team understands that late data older than the compression threshold is discarded and that compressed chunks cannot be modified. Your check is a documented chunk status report for history, trends and audit tables, plus a note on how your collectors and proxies handle delayed values.

How Zabbix data moves into compressed chunks

Zabbix server and proxies write history, trends and audit records into PostgreSQL with the TimescaleDB extension, where they land in hypertable chunks. Once a chunk ages past the compression threshold, which defaults to 7 days and cannot be lowered, it moves into compressed storage. Check that the Timescale Community license applies before you enable this path. Data that arrives late, after its chunk has been compressed, is discarded rather than written back, so confirm your proxies and backlog can deliver within the window.

Zabbix writes records into hypertable chunks that compress once they pass the threshold, while late data is dropped.

Security and operations to plan around compressed Zabbix data

Compression changes what the database holds and how it can be recovered, so access, backups, extension versions and audit retention should be settled before anything is migrated. The cards below cover the decisions that connect a compressed Zabbix history store to the security and recovery plan around it.

Database user and credentials

The Zabbix server and frontend connect to PostgreSQL with a dedicated database user. Enabling compression and running the migration require privileges beyond normal runtime access, so decide who holds those privileges, keep them out of the server's everyday configuration, and rotate the credentials afterward. Record which account ran the migration and when. Confirm the exact privileges with the Zabbix TimescaleDB setup documentation for your version.

Zabbix TimescaleDB setup

Backups before migration

Migrating existing history, trends and audit data to TimescaleDB requires stopping the Zabbix server and frontend, so the migration is a planned outage with a data-changing step. Take a full logical or physical backup of the Zabbix database and verify that it restores into a scratch environment before starting. Keep the backup until the compressed data has been checked against your retention expectations.

Default compression threshold
7 days

Point-in-time recovery options

Compressed chunks cannot be modified, so a mistake that damages data is harder to correct in place. Decide whether the PostgreSQL instance will use continuous archiving with a base backup and WAL files, which lets you restore to a chosen moment before a bad change. Test that restore path against the Zabbix schema, not only the PostgreSQL service, and document the recovery time you can actually meet.

PostgreSQL continuous archiving

Extension versions that match Zabbix

The TimescaleDB extension must stay within the versions Zabbix supports for your release, and upgrading PostgreSQL or the extension can change that match. Zabbix 7.4 supports TimescaleDB 2.13 to 2.29, so check the extension version against the Zabbix requirements page before every upgrade, and plan the PostgreSQL major version with its own support end date. Test the pairing in a non-production copy first.

Zabbix requirements

Audit retention for compressed data

Audit data is one of the three tables that can be migrated, and auditors often ask how long action records are kept and whether they can be reproduced. Confirm the retention period your policy requires, check how compression and housekeeping interact for audit records, and make sure late or changed records are not silently dropped. Agree on who can export audit records and how that export is evidenced.

Licence review for the database

Compression needs the Timescale Community license, which permits running TimescaleDB in your own infrastructure but not offering it as a service. Record the license edition in your software inventory and confirm with your legal or procurement team that the Zabbix deployment fits how you use it. Revisit this when the extension or the hosting model changes.

Questions teams ask before enabling Zabbix TimescaleDB compression

What drives the cost of enabling TimescaleDB compression for Zabbix?

The cost is driven by the work around the switch, not the compression setting itself. Your team pays for the license decision, the database platform and its hosting, and the time to plan and test the change. A partner's fee would cover scoping, the migration plan, the cutover runbook and verification, and it is set by the written scope. Ask any quote to list one-time work (planning, migration, testing) separately from recurring work (patching the database, Zabbix upgrades, support subscriptions). Also ask who holds the Timescale Community license terms for your use case.

How long does migrating existing Zabbix history to TimescaleDB take?

The duration depends mainly on how much history, trend and audit data you hold, how fast your database storage is, and how long your maintenance window can be. Migrating existing data requires stopping the Zabbix server and frontend, so the window must cover the full copy, not just the configuration change. Measure your current table sizes in a test copy of production before you agree a window, and ask any provider to base its timeline on that measurement. No general duration is given here because your data volume determines it.

What does our team need to provide for a compression project?

Plan to provide a named database owner, a Zabbix administrator, a change window approver and access to a staging environment that mirrors production. Your team also needs to confirm the PostgreSQL and TimescaleDB versions you run, the storage capacity for the migration, and your backup and restore process. Someone must own the decision on how long to keep data before compression applies, since late data older than the compression threshold is discarded. Confirm these owners early, because missing approvals are a common cause of delay.

Can our own team enable TimescaleDB compression without outside help?

Yes, a team with PostgreSQL and Zabbix administration skills can do it, provided it reads the Zabbix TimescaleDB setup documentation closely and tests the migration on a copy first. The work is mostly careful sequencing: installing the extension under the correct license, migrating data during a stopped window, and verifying the result. Teams that lack recent PostgreSQL experience, or that cannot take a long outage, often find outside help useful for the rehearsal and the cutover. Decide based on your staff capacity and risk tolerance.

Does compression discard any Zabbix data, and what should we do about late data?

Yes. Compressed chunks cannot be modified, and late data that arrives older than the compression threshold is discarded. By default, records older than 7 days are compressed, and that minimum cannot be lowered. Check whether your hosts send delayed values, such as proxies that were offline or devices with buffered data, before you enable compression. Set the threshold with that delay in mind, and test how late items behave in staging.

When does a Zabbix support subscription matter for this change?

A support subscription matters most when the change touches production during business-critical monitoring and your team lacks a fast path to vendor help. Zabbix offers paid support tiers from Silver, with 8x5 support and 1 day response, up to Global, with 24x7 support and 1 hour response. Those are vendor terms, so confirm the current tier details on the Zabbix support page. Separately, the TimescaleDB Community Edition is free to run in your own infrastructure under its license, but production help from the database vendor is a separate purchase, so check that too.

Is TimescaleDB compression allowed under our open-source license policy?

Compression for Zabbix requires the Timescale Community license, not the Apache 2.0 license that covers other TimescaleDB code. Under that license you can install and run the Community Edition in your own on-premises or cloud infrastructure for free, but you cannot offer it as a service to others. Have your legal or procurement team confirm whether your use fits those terms, especially if you operate Zabbix for other organizations. The Zabbix license itself is AGPLv3 from version 7.0 onward, which is a separate question.

How DeployOpen scopes a compression change before any data moves

DeployOpen starts a compression change with a written review of the license position, not with a migration plan. The first question is whether the organization can run TimescaleDB Community Edition under the Timescale License in its own infrastructure. Zabbix compression needs that edition, and the Tiger Data editions page explains why the Apache 2 Edition is not enough. Legal or procurement review should confirm that the intended use, including any hosting by a managed provider or a third party, fits the Timescale License terms before any work is scheduled. The review also covers whether the organization already runs TimescaleDB, since that changes the migration path.

Next, DeployOpen checks the version pairing. The reviewer confirms the Zabbix release, the PostgreSQL major version and the TimescaleDB extension version against the Zabbix requirements for that release, and confirms that the PostgreSQL major version is still within its support window. The review also records how the team will obtain the matching TimescaleDB build. Data arrival patterns come next: the reviewer measures how late items arrive from proxies and offline hosts, because data older than the compression threshold is discarded, and that loss must be a conscious decision. The team also confirms which retention and housekeeping settings are in use, since those decide how much history exists to migrate.

The last step is the downtime window and the written scope. Migrating existing history, trends and audit data requires stopping the Zabbix server and frontend, so the client must agree on a window, a rollback point and who approves each stage. DeployOpen then issues a fixed-scope document covering the components in scope, the data sets to convert, the validation checks, the backup and rollback steps, and the acceptance criteria. Ask any proposal to state what is excluded, such as later tuning of compression policies or proxy changes. Do not start data movement until the scope, the license position and the window are signed off.

How DeployOpen works on this

DeployOpen treats TimescaleDB compression as a database change with a license decision attached, not a single setting. We confirm the license position, check the retention and late-data behavior against your monitoring design, and then plan the migration of existing data in writing before anything is switched on in your Zabbix environment.

How we scope

  • Confirm which edition of TimescaleDB you will run and whether the Timescale Community license terms fit your hosting model.
  • Map which history, trends and audit tables you want compressed, with the 7 day minimum and discarded late data in mind.
  • Agree the scope in writing as a fixed-scope engagement, with a retainer available for ongoing support after handover.

How we build

  • Test the compression setup on a copy of your Zabbix database before any change touches production data.
  • Plan the migration of existing history, trends and audit data, including the server and frontend stop window it requires.
  • Check that late-arriving data from proxies and slow hosts is handled as your monitoring design expects before go-live.

How we hand over

  • Document the license position, compression thresholds, chunk behavior and the rollback steps for your team to review.
  • Walk your database and monitoring staff through how to check compression status and what a discarded late record looks like.
  • Deliver the runbook and configuration records in your own infrastructure so your team can operate and audit the setup.

How we support

  • Support upgrades of the TimescaleDB extension and PostgreSQL as part of a retainer, with each change tested against a copy first.
  • Review compression and retention settings when Zabbix versions change, since supported TimescaleDB versions are listed per Zabbix release.
  • Confirm with your legal or procurement team how the Timescale Community license applies to your own infrastructure before a retainer begins.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.