mcuadros / ofelia

A docker job scheduler (aka. crontab for docker)
MIT License
3.12k stars 179 forks source link

Notifications via Sentry? #283

Open mpasternak opened 5 months ago

mpasternak commented 5 months ago

Hi, I love your software. It is plain great.

What would you say if I tried to integrate notifications via Sentry to Ofelia?

This would make image bigger because that would require to download a utility called cron-sentry, that would work as a wrapper for the commands ran. If the command gives non-zero exit status, the output is sent to Sentry server. I guess you could do this in plain Go easily (https://docs.sentry.io/platforms/go/), but as I don't know Go...

taraspos commented 5 months ago

You could achieve this by configuring fluentd with sentry plugin to read ofelia logs from the local filesystem (see save loging option) or just [bash script, that will watch the folder}https://askubuntu.com/a/460963) and fire sentry-cli

taraspos commented 5 months ago

What would you say if I tried to integrate notifications via Sentry to Ofelia?

I accept an pure go implementation, but I would be against integrating non-native wrappers.