A Flask-based web application that showcases ClickHouse features while collecting user subscriptions. The app is fully instrumented with HyperDX OpenTelemetry for observability and monitoring.
This project demonstrates ClickStack Observability through full OpenTelemetry instrumentation for monitoring and debugging, both in front-end (browser) and back-end (Python and Go). After the data is sent from the OpenTelemetry collector to ClickHouse, it is possible to use HyperDX to visualize data and get insights.
-
Create a ClickHouse Cloud service
-
Clone the repo
git clone https://github.com/ClickHouse/clickstack-demo-subscription-app
-
Access the main directory
cd clickstack-demo-subscription-app -
Create a .env file
CLICKHOUSE_ENDPOINT=<HOST-WITH-PORT> CLICKHOUSE_USER=default CLICKHOUSE_PASSWORD=<PASSWORD> HYPERDX_API_KEY=<INGESTION-PASSWORD>
-
Edit .env with the connection information to your service
-
Edit .env with your own HyperDX API key to securely ingest data
-
Start all services
docker compose up -d
-
(Optional) Access the subscription app in your browser
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open a Pull Request
- ClickHouse Documentation: https://clickhouse.com/docs
- ClickStack Documentation: https://clickhouse.com/docs/use-cases/observability/clickstack
