You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 12, 2022. It is now read-only.
A common pattern when writing checks with monitorlib, is to wrap all code in try/except blocks, so you can email (i.e. call collectd.warning()) unexpected tracebacks. Collectd will silently ignore these.
Anyway, it'd be great to simply pass monitorlib a function (your entire check), and have it handle this wrapping/alerting, to reduce code duplication across monitoring scripts. It's also really tricky to do.. if an exception is raised when handling an exception, e.g... so let's do this once, and do it right.