Unfortunately go is not a language I am experienced in, but I love your project and wanted to drop the idea of adding a flag to enable structured logging.
In my setup your snapshot agent logs to a file thanks to systemd
Filebeat is harvesting the file and sends the data to elasticsearch, which is a data source in my grafana.
Backups are run hourly, so if there is no successful backup in the last hour according to the logs, grafana triggers an alert.
Unfortunately go is not a language I am experienced in, but I love your project and wanted to drop the idea of adding a flag to enable structured logging.
In my setup your snapshot agent logs to a file thanks to systemd
Filebeat is harvesting the file and sends the data to elasticsearch, which is a data source in my grafana. Backups are run hourly, so if there is no successful backup in the last hour according to the logs, grafana triggers an alert.