Metric Monitoring App Using Mongo Time Series
Description
Schedule metrics collectors for different services and run anomaly detection on new values.
This app has been developed for the MongoDB Hackathon on Dev.to and won the runner-up prize.
Getting started
Prerequisites
Make sure you have Docker and Docker Compose installed on your machine.
Create a MongoDB Atlas cluster with MongoDB 5.0 or above installed.
For security reasons, the .env
was not included in the repository. The available configuration variables are provided inside .env.sample
. Make sure to set all the configuration variables before running the app.
Running the app
Running this app is as easy as running:
$ docker-compose build
$ docker-compose up
Overview
Starting with the docker-compose.yml
file, we can see that this application is split into a main webapp service and the scheduling service (celery
in this case).
The metrics collection is done mainly by the celery
…