简体   繁体   中英

How to create Grafana alert for when backup failed?

We have 3 PostgreSQL databases in GCP's CloudSQL, all three of them are backed-up daily. I need to use Grafana to monitor those back-ups and alert when they've failed.

Unfortunately I'm not finding many resources to help me with this task. Is there a way to create this kind of alerting rule?

Grafana Alerting lets you find out about problems with your systems right away. Improve your team's ability to quickly identify and resolve issues by creating, managing, and responding to alerts in a single, consolidated view.

Run an exporter which can expose metrics such as latest_file_timestamp and
 latest_file_size for each blob container where backup files are uploaded

Alert if current_time - latest_file_timestamp > backup_interval or
latest_file_size < expected_backup_file_size

Here we can see prometheus-azure-blob-exporter to capture the following metrics in this doc.

Refer this doc for more information

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM