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.
-
Clone the repo
git clone https://github.com/ClickHouse/clickstack-demo-subscription-app cd clickstack-demo-subscription-app -
Start ClickStack
docker compose up clickstack -d
-
Access ClickStack
-
Set up HyperDX by creating username and password that meet the requirements
-
Click Add Data
-
Copy your ingestion API Key
-
Paste your ingestion API Key
echo "HYPERDX_API_KEY=paste-your-api-key-here" > .env
-
Start the remaining services
docker compose --env-file .env up -d
-
(Optional) Add ClickStack to hosts
sudo echo "127.0.0.1 clickstack" >> /etc/hosts
-
(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
