App template
Umami
Website analytics, with PostgreSQL.
- Memory when idle
- about 200 MiB
- CI measures it once the app is ready and before any traffic. Leave room for more.
- Tested on
- x86 servers
Introduction
Umami is a website analytics dashboard. You add a small tracking script to your pages and read visits in the dashboard.
This template runs one Umami instance behind your domain, with its own PostgreSQL database (Service umami-db-rw, port 5432) managed by the CloudNativePG operator. It appears in your project as the database umami-db.
Values you provide
You don’t fill in anything when you deploy.
Made for you
These values are generated at deploy and kept in a Kubernetes Secret, shown as Secret/key.
- umami-secrets/admin-password
- umami-secrets/app-secret
Getting started
-
In Zeabur OSS, open the
umamiservice. When Overview shows its replica as ready, the service is up. Its domain is on the Networking tab under Public domains; it is the domain you entered in the install form. -
Sign in as
admin. Open Variables, clickumami-secretsunder From config files and secrets, and click the eye icon next toadmin-password. Without Zeabur OSS, read Secretumami-secrets, keyadmin-password, with kubectl:kubectl -n <namespace> get secret umami-secrets -o jsonpath='{.data.admin-password}' | base64 -dThe template replaces the published default password at the first start. Change this password in Umami after you sign in.
-
Add your website and put the tracking script on its pages (see Configuration).
The same Secret has the key app-secret, which signs sign-in tokens and share links. You do not need it to use Umami.
Configuration
Add a website and install the tracking code
Click Websites in the sidebar, then Add website, enter a name and the domain, and save. Click Edit for the website, copy the code under Tracking code and put it in the <head> section of your pages. See Add a website and Collect data.
Change your password
Click the profile button in the side navigation, then Settings, then Security, then Change password. Before Umami 3.5.0, the button is on the Profile page instead of Security. See Login.
Back up the data
In Zeabur OSS, open the umami-db database and go to Backups → Set up backups to back up on a schedule to an S3 bucket. PostgreSQL backups need the Barman Cloud plugin. To get a copy now, click More at the top right of the database page, then Export. The browser downloads a .dump file made by pg_dump --format=custom. See Set up S3 backups and Download a database dump.
Umami keeps all its data in this database, so the dump is the whole backup.
Troubleshooting
The page shows 502 or does not load
In Zeabur OSS, open the umami service. Check that Overview shows its replica as ready, then read the Logs tab. If the replica keeps restarting, open Deployments, then Events. If the events show OOMKilled, raise Maximum memory in Settings → Compute. See Adjust replicas, resources, and health checks and View logs, events, and usage, and open a terminal.
If the domain or its certificate stays pending, see Add public domains and HTTPS.
Data does not appear
Open the browser developer tools on your site and check the Network tab for requests to your Umami domain. Make sure the script loads without errors. Ad blockers can stop the script from loading. See Collect data.
Resources
Each service is guaranteed the first amount and can use up to the second.
umami
Ports
3000
CPU
0.1 cores to 1 core
Memory
256 MiB to 1 GiB
umami-db
Ports
5432
CPU
0.1 cores to 1 core
Memory
256 MiB to 1 GiB
Technical details
This release
- Version
- 3.4.1
- Licence
- MIT AND PostgreSQL AND Apache-2.0
- Homepage
- umami.is
- Source file
- templates/umami/template.yaml @ v0.6.3
Tested in CI
CI installs these exact files on a new cluster, waits until they are ready, then records the idle memory.
| Distribution | Platform | Kubernetes | Passed | Idle memory |
|---|---|---|---|---|
| kind | linux/amd64 | v1.37.0 | 200 MiB |
Security
Umami runs as an unprivileged user (UID 1001) with a read-only root filesystem, no service-account token and no extra Linux capabilities. Outbound traffic is not limited, but Umami makes no outbound requests.
Known risks
Risk
Umami creates the admin account with the published password umami.
How it is handled
An init container replaces that password with a generated one before Umami starts. It replaces only the default password, so a password you set in Umami stays.
Risk
The tracking endpoint accepts events from any website.
How it is handled
Umami stores events only for website IDs that exist in Umami.
Risk
The database pods (CloudNativePG) call the Kubernetes API with an identity that the operator creates.
How it is handled
The cloudnative-pg component creates the permissions (RBAC) for each cluster. The Umami pod itself has no token.
What the cluster needs
Zeabur OSS suggests the components a cluster is missing. Without it, install them first.