diff --git a/templates/borg_exporter.j2 b/templates/borg_exporter.j2 index d1bc730..5d5c247 100644 --- a/templates/borg_exporter.j2 +++ b/templates/borg_exporter.j2 @@ -19,13 +19,13 @@ borg_backup_age=$(echo "$NOW" "$borg_last_modified" | awk '{print(($1 - $2) / (2 get_status_data() { cat <"$TMP_FILE" mv "$TMP_FILE" "$PROM_FILE" + +# The textfile collector needs a newline at the end of the file +echo >> "$PROM_FILE"