Commit e6d80dfc authored by Elia Ponzio's avatar Elia Ponzio
Browse files

Initial commit

parent c7149e2b
# generic-monitoring
VSHN Hackday [task](https://discuss.vshn.net/t/simple-http-tcp-udp-endpoint-and-uptime-monitoring/247) to get a simple uptimerobot replacement.
A proper name is in the work
## Architecture Diagram
https://lucid.app/lucidspark/fac19e3f-543f-4802-b743-23e08147aabb/edit?shared=true#
## Tech Stack
### Interface and Framework
We use [Flask](https://flask.palletsprojects.com/en/2.0.x/) as glue in between. It will provide an API interface as well as a basic web page that displays the deltas.
### Queue Worker
We will use celery as queue with its [periodic task](https://docs.celeryproject.org/en/stable/userguide/periodic-tasks.html) feature.
### Database
A ORM will help us, TBD.
## Install
```
git clone git@git.vshn.net:elia.ponzio/generic-monitoring.git && cd generic-monitoring
virtualenv venv -p python3
source venv/bin/activate
pip install -r requirements.txt
deactivate
```
from flask import Flask
from flask_restful import Resource, Api
app = Flask(__name__)
api = Api(app)
class HelloWorld(Resource):
def get(self):
return {'hello': 'world'}
api.add_resource(HelloWorld, '/')
if __name__ == '__main__':
app.run(debug=True)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment