Code Monkey home page Code Monkey logo

bw-crowdedness's Introduction

BoulderWelt Crowdedness

Purpose

Already before Covid-19 all BoulderWelt gyms had an indicator of how crowded the gym is on their website. Now that they have to limit how many persons are in the gym to ensure distance regulations and so on and so forth this becomes even more important.

I created a simple Prometheus exporter to monitor the current level of crowdedness of all gyms and to see if there are any people waiting in the queue already.

The main purpose of this is to get some insights when it is relatively safe to go to the gym because it's empty and when you definitely should not go to the gym.

Stack

The whole stack consists of the following components:

  • Custom exporter
  • Prometheus
  • Grafana
  • Traefik

The docker-compose.yml in this repository is almost the same I am using to run the stack on www.when2boulder.de. If you want to run it on your own, feel free to deploy it on your own!

Building

Right now I haven't had time to setup a CI pipeline, provide a Makefile or any other fancy stuff. If you want to build the app on your own a simple go build -o bw-crowdedness ./... (in case of Linux/Mac) or go build -o bw-crowdedness.exe ./... (in case of Windows) will provide you a binary.

Although the recommended way to build/run the app is with Docker. The Dockerfile included in the repository is self-contained and does not need any Go SDK installed on your computer - just Docker.

bw-crowdedness's People

Contributors

prskr avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.