countly
by HelmForge
Countly product analytics platform with MongoDB, event tracking, crash reporting, and plugin system
About this chart
Countly Helm Chart
Deploy Countly product analytics on Kubernetes with the official
countly/countly-server:25.05.4 image, a bundled or external MongoDB, optional
Gateway API and External Secrets integration, and scheduled S3-compatible
backups.
Features
- Separate, configurable Countly API and dashboard listeners.
- HelmForge MongoDB dependency or one external MongoDB URI.
- Ingress and Gateway API exposure for the dashboard.
- External Secrets support for MongoDB credentials.
- Default NetworkPolicy and disabled service-account token mounting.
- Optional non-root MongoDB-to-S3 backup pipeline.
- Runtime validation of both application listeners, including custom ports.
Architecture
One pod runs the official combined Countly image with independent API and dashboard processes. Named Service targets keep Kubernetes ports separate from the native listener values. MongoDB is the only durable state; the application tier and backup staging directory are disposable.
Installation
helm repo add helmforge https://repo.helmforge.dev
helm repo update
helm install countly helmforge/countly
OCI installation:
helm install countly oci://ghcr.io/helmforgedev/helm/countly
Access the dashboard without public exposure:
kubectl port-forward service/countly-countly 8080:80
Open http://127.0.0.1:8080 and complete the Countly setup flow.
Configuration
The most important values are:
| Value | Default | Purpose |
|---|---|---|
countly.apiPort | 3001 | Native SDK ingestion listener. |
countly.dashboardPort | 6001 | Native dashboard listener. |
service.apiPort | 3001 | Kubernetes Service port for ingestion. |
service.port | 80 | Kubernetes Service port for the dashboard. |
mongodb.enabled | true | Deploy HelmForge MongoDB. |
externalMongodb.enabled | false | Use an external MongoDB URI. |
networkPolicy.enabled | true | Create the Countly NetworkPolicy. |
backup.enabled | false | Schedule MongoDB backups to object storage. |
See configuration for the full operating contract.
External MongoDB
Prefer an existing Secret so the URI does not enter Helm release values:
mongodb:
enabled: false
externalMongodb:
enabled: true
existingSecret: countly-mongodb
existingSecretUriKey: mongodb-uri
The Secret value must contain a complete MongoDB URI, including any
authSource, replica-set, TLS, and certificate parameters required by the
managed service.
Backups
backup:
enabled: true
s3:
endpoint: https://s3.example.com
bucket: countly-backups
existingSecret: countly-backup-s3
Backups stage one compressed archive in ephemeral storage before upload. Read backup and restore before enabling the schedule.
Security
The chart disables Kubernetes API token mounting, applies seccomp, creates a
NetworkPolicy, and runs init and backup containers as non-root. The official
combined Countly image must start its supervisor as root before it drops the
Node.js processes to the countly user; this documented upstream constraint is
why the main container does not set runAsNonRoot.
Restrict networkPolicy.ingressFrom and networkPolicy.egress, keep database
and object-store credentials in Secrets, expose both listeners only through
TLS, and scan the pinned image in your admission pipeline. See
security.
Production Guidance
- Use a managed or replicated MongoDB topology with tested backups.
- Set resource requests and limits from observed load.
- Keep the dashboard private where possible; SDK clients need only the API.
- Use External Secrets or pre-created Secrets for credentials.
- Test custom plugin requirements and outbound policy before restricting egress.
- Perform a restore drill before relying on scheduled backups.
A reusable baseline is available in the production example.
Examples
- Simple bundled MongoDB
- External MongoDB
- Production baseline
Operations and Troubleshooting
The operations guide covers upgrades, probes, listener verification, scaling limits, and common failures. The external MongoDB example and simple example are renderable values files.
Limitations
- MongoDB is the only supported datastore.
- The pinned combined upstream image is amd64-only.
- The chart does not claim application or database high availability.
- Ingress and HTTPRoute target the dashboard; expose the API separately when SDKs are outside the cluster.
More Information
- Countly
- Upstream source
- Chart design
Security Scan: countly
| Framework | Score |
|---|---|
| MITRE + NSA + SOC2 | 72.72727% |
Security posture acceptable.
Deploy countly with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has countly on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcountly is pinned at v1.3.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply