Skip to content
Snippets Groups Projects
Verified Commit 9f9378b2 authored by Jelle van der Waa's avatar Jelle van der Waa :construction:
Browse files

Adjust prometheus textcollector condition

Currently our textcollector can sometimes fail with 'Failed to
create/acquire the lock /home/backup/$server/lock.exclusive (timeout)."
Instead of checking on a borg lock file, check if our backup snapshot
dir exists which the backup script creates and removes. This should give
less false positives then our current method.
parent ddba82db
No related branches found
No related tags found
No related merge requests found
[Unit]
Description=Prometheus Borg Exporter TextCollector
After=network.target
ConditionPathExistsGlob=!/root/.cache/borg/*/lock.roster
# If the backup snapshot path exists, the backup script runs and a borg
# lockfile exists and we can't run borg list
ConditionPathExists=!/backup
[Service]
Type=oneshot
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment