green-metrics-tool icon indicating copy to clipboard operation
green-metrics-tool copied to clipboard

Error logging - moving away from email

Open ArneTR opened this issue 11 months ago • 2 comments

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

ArneTR avatar Sep 22 '23 13:09 ArneTR