Skip to content

[Feature request] Export actual size by hash #47

@Chostakovitch

Description

@Chostakovitch

Hey, thanks for the exporter and the amazing dashboard!

My use case is as follows: I have multiple services performing backups, each of which adds a unique tag.

Currently, the metrics show the size of the latest snapshot (per combination of paths) as if it had been restored (i.e. restic stats --mode=restore-size).

To me it would be useful to know the actual size taken by all the snapshots of a service. For example, we could detect heavy changes in big files resulting in repository growth, which would go undetected if the restored size of the latest snapshot remains stable. I would use: restic stats --mode=raw-data --tag=<service>.

To fit the exporter's model, it would be 'restic stats --mode=raw-data ...', where ids are from snapshots sharing the same path. This has to be done in a single command so that restic doesn't count blobs multiple times.

  1. Do you think this is a good idea?
  2. Are you open to pull requests?

Related to #29.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions