idealista / prom2teams

prom2teams is an HTTP server built with Python that receives alert notifications from a previously configured Prometheus Alertmanager instance and forwards it to Microsoft Teams using defined connectors
Apache License 2.0
268 stars 84 forks source link

[FEATURE] improve error handler to distinguish between different kind of exceptions #312

Closed smartinsempere closed 1 year ago

smartinsempere commented 1 year ago

Description

With current version every application exception will become on a response status code 500, internal server error. Responses with status code 500 forces alertmanager to retry request and this is not always required.

Solution

We are going to handle exceptions in a different way depending on its type.