eduardolat / pgbackweb

🐘 Effortless PostgreSQL backups with a user-friendly web interface! 🌐💾
MIT License
716 stars 30 forks source link

[FEATURE] Alert system #10

Closed eduardolat closed 1 week ago

WladyX commented 1 month ago

Maybe also add prometheus metrics? :)

PaxITIS commented 1 month ago

Perhaps it would be good to have the ability to send notification e-mails if the backup fails or completes.

eduardolat commented 1 month ago

Perhaps it would be good to have the ability to send notification e-mails if the backup fails or completes.

This is going to have webhooks, so you can configure any system like zapier or ntify to be alerted as you prefer.

eduardolat commented 1 month ago

Maybe also add prometheus metrics? :)

Can you explain a little more about your requirement and how it relates to the alert system?

WladyX commented 4 weeks ago

By exposing prometheus metrics one could add alerts for when the backups are failing or taking too long and also could create a grafana dashboard, you can check out the velero/kasten metrics/dashboards implementations. I have installed pgbackweb on a k8s cluster btw :) Thanks for sharing it!

eduardolat commented 1 week ago

This has been published in the v0.3.0 release https://github.com/eduardolat/pgbackweb/releases/tag/0.3.0

WladyX commented 6 days ago

That's great, thank you! Are there variables that we can pass to the body? Like DB_NAME? I'm searching for docs/code to see what is available. Thanks again!

eduardolat commented 6 days ago

That's great, thank you! Are there variables that we can pass to the body? Like DB_NAME? I'm searching for docs/code to see what is available. Thanks again!

No for the moment, but you can open a new issue because this is something that has to be done at some point.

WladyX commented 4 days ago

Cool, thanks, created https://github.com/eduardolat/pgbackweb/issues/46