Skip to content

added_bytes metric in prometheus file is always zero #295

@nwinkelstraeter

Description

@nwinkelstraeter

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions