Self-Hosted Web Analytics and ClickHouse Resource Usage

September 30, 2025

In late September 2025 we wanted to use Rybbit for website analytics. ClickHouse’s noticeable resource usage caught our attention. When the server crashed, it was natural to connect the two: had this analytics database brought it down?

With that question in mind, I started examining deployment and storage in comparable platforms. I also found community discussions about ClickHouse consuming resources and logs filling disks. Those reports suggested where to look, but whether resource usage is worth investigating and whether it caused a particular incident require separate evidence.

We later found that the server had crashed for another reason. That story belongs in the incident investigation. Here I want to record what Rybbit, Umami, Plausible and Matomo do, and the easily overlooked storage costs of self-hosting them.

Filed under September 30, 2025 to reflect the approximate date of the original notes, and edited on November 9, 2026. Rybbit, Umami and Plausible deployment details refer to official source snapshots available by the archival date. General operations guidance uses official documentation consulted during editing. Later community replies are identified separately.

What problems do web analytics platforms solve?

Once a website goes live, we want to know how many people visited today, where they came from, which pages are popular and which visits led to a signup, inquiry or purchase. Web analytics platforms turn visits and interactions into reports for answering these questions.

A common integration adds JavaScript to the website. The browser sends page views, custom events and other data to an analytics service. The server stores it and aggregates by time, source, page or device. Product analytics also asks which steps users took, where they dropped out and whether they returned.

These tools often come up as alternatives to Google Analytics. Self-hosting means deploying the collection service, database and analytics interface yourself and taking responsibility for storage and maintenance.

It is easy to mix up three categories: Rybbit, Umami, Plausible and Matomo are analytics applications. Dokploy and Coolify are deployment platforms. ClickHouse and PostgreSQL are databases. You can run an analytics application on a server using a deployment platform and connect it to the databases it needs. These layers work together and do not belong in a single list of competing products. For the role of the deployment platform, see What is Dokploy?.

What the four platforms emphasize

These are the differences I would check first during selection. The storage column describes the corresponding self-hosted setup. Historical versions, cloud services and other deployment methods may differ.

PlatformMain focusStorageMaintenance to consider
RybbitWebsite traffic and product behavior, including events, funnels and user journeysPostgreSQL and ClickHouseTwo databases, event growth and session replay storage if enabled
UmamiSimple website traffic and event analyticsThe default Compose configuration at the time used PostgreSQL. Historical versions also supported MySQL/MariaDB.Database growth, queries over long periods, application and database upgrades
PlausibleA focused traffic overview and simple reportsPostgreSQL and ClickHouseDifferences between CE and cloud features, maintaining the event database and logging configuration
MatomoBroad website analytics, including goals, e-commerce, segmentation and extensionsMySQL or MariaDBPHP runtime, database, report processing and plugin maintenance

For the architectures, see the Rybbit configuration, Umami configuration and historical notes, Plausible configuration and Matomo requirements. The maintenance items follow from the architectures and are considerations for selection, not performance rankings.

Rybbit

Rybbit was the platform we wanted to use. It describes itself as an open-source website and product analytics tool. By September 2025 the project listed traffic, sessions, bounce rate, real-time dashboards, custom events, goals, funnels, retention, user journeys and session replay. Historical Rybbit project description

For a website operator, this goes beyond “how many people came?” to “what did they do?” For example, define viewing a product page, clicking Sign up and completing signup as events, then observe where users leave.

Additional features bring different types of data. A page view is one record, while session replay can continuously record page changes and interactions. Decide separately whether to enable replay and how long to keep it.

Umami

Umami emphasizes simplicity, speed and privacy. Its official Compose setup at the time consisted mainly of two services: the application and PostgreSQL. For a team already familiar with PostgreSQL that wants basic traffic statistics, that structure is easy to understand and maintain. Historical Umami description and Compose configuration

The date matters: Umami’s September 2025 README still listed MySQL and MariaDB support. The precise claim is that the default self-hosted setup compared here used PostgreSQL. Today’s installation requirements cannot be applied retrospectively to every version.

Having fewer services does not remove bottlenecks at every volume or with every query pattern. Database operating costs and query performance still depend on data volume, queries, indexes and available server resources.

Plausible

Plausible emphasizes simple traffic analytics. An official self-hosted Community Edition and a managed cloud service are available. Establish which edition you are comparing before counting all features on the cloud product page as CE features. Plausible CE introduction

Its storage architecture deserves a complete description: Plausible uses both PostgreSQL and ClickHouse. In the Compose setup at the time, plausible_db ran PostgreSQL and plausible_events_db ran ClickHouse. Saying “Plausible uses ClickHouse” usually refers to visitor event storage. It still has another database. Historical Plausible deployment

A simple interface and a lightweight browser script can still front a service with several components. Assess frontend and server costs separately.

Matomo

Matomo offers a broad set of website analytics features, including traffic sources, goals, e-commerce and user segments, plus a plugin ecosystem. Its main runtime requirements are PHP, a web server and MySQL or MariaDB. Matomo features and system requirements

In his comparison, Aaron Becker found Matomo complex to deploy because he was unfamiliar with PHP. That reflects his background. A team already maintaining PHP and MySQL may benefit from that familiarity. For advanced reporting or extensions, also check the relevant plugin and payment conditions.

Likewise, describing a product as privacy-friendly does not establish that every tool collects data the same way by default. For example, Matomo supports operation without analytics cookies but requires the corresponding configuration. Matomo cookieless configuration

Why does Rybbit need two databases?

The Rybbit code at the time showed two responsibilities:

  • PostgreSQL stores application data such as users, organizations, website configuration, authentication sessions, funnels and goals.
  • ClickHouse stores analytical data such as visitor events and includes tables for session replay.

See the PostgreSQL schema and ClickHouse table creation code. This simplified flow omits the reverse proxy, authentication and specific endpoints.

flowchart LR
    Visitor["网站中的采集脚本"] -->|访问与事件| App["Rybbit 服务端"]
    Dashboard["Rybbit 分析界面"] -->|查询报表| App
    App -->|写入与查询分析数据| CH[("ClickHouse")]
    App -->|读取与维护应用数据| PG[("PostgreSQL")]

ClickHouse is a column-oriented SQL database for OLAP, or online analytical processing. Website analytics often scans many events in a time range and groups by source, page or country. Columnar storage can read only relevant columns, making it suitable for these filters and aggregations. ClickHouse introduction

The division adds maintenance costs. Each database needs persistence, backups and upgrades. Recovery requires both event data and the corresponding application records for websites, accounts and so on.

Simply replacing Rybbit’s ClickHouse address with a PostgreSQL connection string therefore does not migrate the database. The application uses a ClickHouse client, schemas and queries. Changing the database affects its implementation. Rybbit ClickHouse code

What storage issues did the community report?

A self-hosted analytics thread on r/selfhosted was an important starting point. The original poster, Chronicallybored, shared Aaron Becker’s November 22, 2024 comparison of Umami, Plausible and Matomo, focused on Docker Compose deployment and day-to-day administration. Original blog post

Several experiences in the thread illustrate the range:

  • The original poster noticed little difference between the two databases, while noting that their dedicated server might have been overprovisioned.
  • adamshand found ClickHouse too resource-intensive on a small VPS and switched from Plausible to Umami.
  • Witty_Leopard_9341 reported that growing ClickHouse error logs filled the disk and disrupted the server. They initially added capacity to keep the service running and later moved to Umami.

These experiences can all be true. Server configuration, event volume, product version and error conditions vary. The full-disk report deserves attention, but it does not include enough error details, configuration or capacity data to reproduce the problem and identify which logging layer grew out of control. Original discussion

Later replies added during editing: In the same thread, chenggoi reported that queries covering more than 30 days were very slow on Umami self-hosted on Railway and sometimes failed. Another user running Umami via Coolify on a VPS reported no such issue. Witty_Leopard_9341 also later said they had switched to Rybbit. These are later additions to an ongoing discussion, not information known in September 2025. Follow-up discussion

Two reminders for me: switching to PostgreSQL does not automatically make queries fast enough, and switching to Rybbit does not avoid ClickHouse. Community experiences identify avenues for investigation. A choice still needs observation under your own workload.

Separate the different ClickHouse resource costs

Memory and background tasks

Alongside foreground queries ClickHouse needs caches, write processing and background tasks. MergeTree tables merge data parts from inserts in the background. Database work may continue even when nobody has the analytics dashboard open. MergeTree documentation

The official guidance for low-memory installations suggests smaller caches, reduced query parallelism and disabling some system logs. Small-memory setups need tuning. A simple cutoff below which a system “cannot run” misses three distinct questions: can it run, what volume of writes and queries can it handle, and does it squeeze out other services on the host? ClickHouse operations tips

Rybbit’s quick-deployment guide at the time recommended a server with at least 2 GB of memory. That was a starting point, not a guarantee of stability once other workloads share the machine or more collection features are enabled. Historical Rybbit deployment guide

Business events and session replay

First allow for the growth of the application data itself. One week of visits, one year of visits and visits plus session replay imply different capacity requirements.

In the contemporary ClickHouse initialization code, Rybbit declared a 30-day TTL on session_replay_events and session_replay_metadata. The events table creation statement had no equivalent TTL. Here TTL is the retention period. A cleanup rule for replay does not establish the same retention for all analytics data. Check migrations and actual running table definitions as well. Historical table creation code

A TTL does not instantly release disk space at expiry. ClickHouse generally cleans expired data during table merges, so leave headroom when planning capacity. TTL documentation

Three different things called logs

A report that “ClickHouse logs are too big” may refer to at least three places.

Log typeWhere it livesWhat to check
Database text logsClickHouse log files or console outputRepeated errors, log levels and rotation settings
Database system log tablesTables such as system.query_log and system.trace_logWhich tables are enabled, how much space each uses and whether suitable retention is configured
Docker container logsStorage managed by the Docker logging driverActual driver, per-file size and file count limits

Each setting governs its own layer. Limiting Docker logs does not clear database log tables. Disabling system log tables does not stop a repeatedly failing process from printing to the console.

Docker explicitly states that its default json-file driver does not rotate automatically. A verbose container can exhaust the disk. Use the rotating local driver or set limits for json-file. Existing containers must be recreated to pick up new driver settings. Docker logging documentation

What had the official configurations already done?

Historical configuration is more informative than simply knowing that a product used ClickHouse.

Rybbit’s September 2025 Compose configuration already set the ClickHouse log level to warning and disabled several system log tables for queries, threads, text, traces and metrics. It also configured options such as disabling query logging. Disabling these diagnostics reduces troubleshooting information but does not stop the collection of website events. Historical Rybbit Compose configuration

Around the same time, Plausible CE retained the query log with a 30-day TTL, disabled several other system log tables and loaded a configuration file for low-resource environments. Plausible logging settings and deployment configuration

It would be inaccurate to say defaults placed no controls on logging across the board. Conversely a configuration in the repository does not prove that our instance loaded it. Check the actual image, mounted configuration, running logging settings and source of disk usage instead of relying solely on a template.

How do I determine whether the application server was affected?

For analytics sharing a host with a business application, I would break “it uses a lot of resources” into observable questions. These are investigation directions, not results we established during our incident.

ObservationQuestion
Memory and system eventsIs this normal usage, sustained memory pressure, an OOM event or a killed process?
CPU and queriesDoes high usage coincide with wide time ranges, concurrent access or background tasks?
Disk capacityAre events, replay data, system log tables or container logs driving growth?
Disk I/OAre there read/write latency or IOPS constraints even with space remaining?
Incident timelineDid resource changes precede the service becoming unresponsive, or appear after the failure?

Someone else’s full-disk outage does not explain a crash on another server. Even if stopping an analytics service reduces pressure, examine the timeline: it may consume resources without explaining the entire incident.

When queries slow down over long periods, examine the actual queries and execution plans. A database name alone says little about performance. PostgreSQL’s EXPLAIN is one starting point. PostgreSQL documentation

What this means for our selection

For basic visits, sources and pages, Umami is a comparatively simple starting point. Evaluate Plausible for focused traffic reports, or Matomo for broader analytics and extensibility. Rybbit deserves further trials with the events, funnels and user journeys we actually need. These judgments reflect features and maintenance structure. They cannot replace testing under the same workload.

For the Rybbit deployment we were considering, these were my concrete questions:

  1. Define collection scope. Start from the business questions and decide which events to record and whether to enable replay.
  2. Set retention periods separately. Business events, replays and diagnostic logs need not be retained for the same duration. Purging history changes the time range available for future queries.
  3. Observe continuing growth and peak queries. Beyond startup usage, monitor data size, query latency and impact on co-located services over time.
  4. Plan backup and recovery. Account for PostgreSQL application data and ClickHouse analytics data, and verify that restored website configurations still correspond to their events.
  5. Choose deployment location according to pressure. If analytics already affects core business services, evaluate the cost of a separate host or a managed service.

Our original suspicion about ClickHouse led me to look seriously at the storage behind analytics platforms. The habit I want to keep is to observe resources and retain enough evidence to explain the problem before deciding whether to tune configuration, collect less, move a service or continue looking for another cause.

Change history

DateChange
2026-11-09First edition assembled from late-September 2025 notes and filed under 2025-09-30. Added the positioning and historical deployment structures of four platforms, community reports and retention issues. Recorded that another cause was later found for the server crash.

References

Starting points

  1. Chronicallybored. (n.d.). Self-hosted analytics: comparing Umami, Plausible and Matomo [Reddit post and comments]. r/selfhosted. Original discussion. Comments continue to accumulate. Later replies are not treated as facts available by the archival date.
  2. Becker, A. (2024, November 22). Umami vs Plausible vs Matomo for Self-Hosted Analytics [Blog post]. Original article.

Products and historical configurations

  1. Rybbit. (2025, September 26). Official repository snapshot 331e5c8: Project description, Compose, PostgreSQL schema, ClickHouse table creation code, deployment guide. These files document the implementation at the time and do not establish that our deployed image came from this commit.
  2. Umami. (2025, September 29). Official repository snapshot b9fbbc6: Project description, Compose.
  3. Plausible. (2025, August 20). Community Edition repository snapshot 33a33aa: Compose, logging configuration.
  4. Saric, M. (2024, February 23). Introducing Plausible Community Edition. Official introduction.
  5. Matomo. (n.d.). Features, Requirements, Cookieless configuration. Consulted November 9, 2026. Used only for product positioning, database type and configuration principles.

Database and container operations

  1. ClickHouse. (n.d.). Introduction to ClickHouse, MergeTree, Open-source deployment tips, TTL data management. Consulted November 9, 2026.
  2. Docker. (n.d.). Configure logging drivers. Official documentation. Consulted November 9, 2026.
  3. PostgreSQL. (n.d.). Using EXPLAIN. Official documentation. Consulted November 9, 2026.

© 2025 borui. All rights reserved. This content may be freely reproduced, displayed, modified, or distributed with proper attribution to borui and a link to the article: borui (2025-09-30). Self-Hosted Web Analytics and ClickHouse Resource Usage. https://caiborui.com/blog/2025-09-30-zh-self-hosted-analytics-rybbit-clickhouse-entrans

@misc{borui2025-5fadc6c4,
  author = {borui},
  title = {{Self-Hosted Web Analytics and ClickHouse Resource Usage}},
  year = {2025},
  publisher = {borui's blog},
  url = {https://caiborui.com/blog/2025-09-30-zh-self-hosted-analytics-rybbit-clickhouse-entrans}
}