plausible-analytics

by IMIO

Helm chartv0.4.2App 3.0.1Apache-2.0Verified publisher

A Helm Chart for Plausible Analytics - Simple, open-source, lightweight (< 1 KB) and privacy-friendly web analytics alternative to Google Analytics.

About this chart

Helm Chart for Plausible Analytics

Introduction

This Helm chart installs Plausible Analytics in a Kubernetes cluster.

Prerequisites

[!NOTE] For production environments, it is recommended to use CloudNativePG for PostgreSQL and the ClickHouse Operator for ClickHouse instead of the dependent Helm charts included here. The bundled charts are primarily intended for testing and development purposes. Be also aware of the upcoming changes to the bitnami catalog described in this issue.

  • Kubernetes cluster 1.12+
  • Helm 3.0.0+
  • PV provisioner support in the underlying infrastructure (Optional)
  • Postgres DB (Optional, installed by this helm chart)
  • ClickHouse (Optional, installed by this helm chart)

Installation

Add Helm repository

helm repo add imio https://imio.github.io/helm-charts
helm repo update

Configure the chart

The following items can be set via --set flag during installation or configured by editing the values.yaml directly (need to download the chart first).

Feel free to modify the options in the values.yaml file before installation.

You will need to set the sensitive values in the values.yaml file before installing the chart. (Passwords and URL of the databases).

Install the chart

helm install [RELEASE_NAME] imio/plausible-analytics

or by cloning this repository:

git clone https://github.com/imio/helm-plausible-analytics.git
cd helm-plausible-analytics
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
helm dep up
helm install plausible-analytics . -f values.yaml --namespace plausible-analytics --create-namespace

Configuration

The following table lists the configurable parameters of the plausible-analytics chart and the default values.

See the values.yaml file for more information.

Credits

Initially inspired by

Contributing

Feel free to contribute by making a pull request.

Please read the official Helm Contribution Guide from Helm for more information on how you can contribute to this Chart.

License

Apache License 2.0

Deploy plausible-analytics with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has plausible-analytics 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartplausible-analytics is pinned at v0.4.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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