Hello again @raph2i! Here's a PR that should close #2
I ran into the issue you documented in #2 where if a backup hadn't completed yet, the exporter blew up. I wasn't sure how you wanted to solve it, so I just set all the empty dates/times to datetime.now
That means the exporter will report
the last successful timestamp as constantly moving, until the job is finished
the start time of the last backup as constantly moving, until the job is finished
the length of the last backup as ~0
If that's not how you'd approach it (ie you'd rather use a try/except and skip the job or something) then let me know and I can adjust!
I thought this was better than just skipping the job completely, and didn't want to set off alarms for having old or broken backups when the reality is: the backup just hadn't completed its first run yet
Hello again @raph2i! Here's a PR that should close #2
I ran into the issue you documented in #2 where if a backup hadn't completed yet, the exporter blew up. I wasn't sure how you wanted to solve it, so I just set all the empty dates/times to datetime.now
That means the exporter will report
If that's not how you'd approach it (ie you'd rather use a try/except and skip the job or something) then let me know and I can adjust! I thought this was better than just skipping the job completely, and didn't want to set off alarms for having old or broken backups when the reality is: the backup just hadn't completed its first run yet