Skip to content

ClickHouse/clickstack-demo-subscription-app

Repository files navigation

ClickHouse Subscription Demo App

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.

Overview

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.

Architecture

Architecture

Quick Start

  1. Clone the repo

    git clone https://github.com/ClickHouse/clickstack-demo-subscription-app
    cd clickstack-demo-subscription-app
  2. Start ClickStack

    docker compose up clickstack -d
  3. Access ClickStack

  4. Set up HyperDX by creating username and password that meet the requirements

  5. Click Add Data

  6. Copy your ingestion API Key

  7. Paste your ingestion API Key

    echo "HYPERDX_API_KEY=paste-your-api-key-here" > .env
  8. Start the remaining services

    docker compose --env-file .env up -d
  9. (Optional) Add ClickStack to hosts

    sudo echo "127.0.0.1 clickstack" >> /etc/hosts
  10. (Optional) Access the subscription app in your browser

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Support

About

ClickStack demo application for training and more

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 3

  •  
  •  
  •