Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added_bytes metric in prometheus file is always zero #295

Open
nwinkelstraeter opened this issue Dec 5, 2023 · 1 comment
Open

added_bytes metric in prometheus file is always zero #295

nwinkelstraeter opened this issue Dec 5, 2023 · 1 comment

Comments

@nwinkelstraeter
Copy link

All others metrics are populated with plausible values.
I did a little bit of research and I think this is related to a change of wording introduced in restic 0.14.0 (restic/restic#3741)
That PR changed repo to repository in some places and then this line

n, err := fmt.Sscanf(scanner.Text(), "Added to the repo: %f %3s", &rawBytes, &unit)
does not parse the output correctly anymore.

@jkellerer
Copy link
Collaborator

Thanks a lot for the report. An update for this issue is pending in PR #207 (may get cherry picked):

https://github.com/creativeprojects/resticprofile/pull/207/files#diff-2708c76a443ae1b73dc6f02bc18eff7a8e3f53efde3f791f94012b433c7f7f20R21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants