in account & admin web api's, differentiate between server errors and user errors, and add a prometheus monitoring rule for server errors

This commit is contained in:
Mechiel Lukkien
2023-08-09 08:02:58 +02:00
parent 8c3c12d96a
commit f5af258075
3 changed files with 59 additions and 28 deletions

View File

@ -48,6 +48,11 @@ groups:
annotations:
summary: webmail submission errors
- alert: mox-sherpa-server-errors
expr: increase(sherpa_errors_total{api=~"mox.*",code=~"server:.*"}[1h]) > 0
annotations:
summary: sherpa web api server errors
# the alerts below can be used to keep a closer eye or when starting to use mox,
# but can be noisy, or you may not be able to prevent them.