green-metrics-tool
green-metrics-tool copied to clipboard
Error logging - moving away from email
Since we already have a file logging implemented in the https://github.com/green-coding-berlin/green-metrics-tool/blob/main/lib/error_helpers.py we should:
- Define a file where to log runner errors
- Define a file where to log api errors (My suggestion would be to bind a writeable file into the container as bind-mount)
- The user then can define a transport mechanism of choice, for instance pushing all logs into a logstash etc.
Currently every failure in the API takes a lot of processing time. So even pushing to a remote service would create quite some load.
The filesystem solution decouples it completely.
Our implementation to have then again email, but async, could be using swatch