{"id":23090888,"url":"https://github.com/timtorchen/rustic-exporter","last_synced_at":"2026-02-20T18:09:25.562Z","repository":{"id":259409711,"uuid":"863947514","full_name":"timtorChen/rustic-exporter","owner":"timtorChen","description":"Prometheus exporter for rustic/restic backup","archived":false,"fork":false,"pushed_at":"2026-02-19T07:12:35.000Z","size":797,"stargazers_count":5,"open_issues_count":13,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-19T12:39:20.804Z","etag":null,"topics":["metrics","prometheus-exporter","restic-exporter","rust","rustic-exporter"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timtorChen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-27T07:58:06.000Z","updated_at":"2026-02-19T07:09:15.000Z","dependencies_parsed_at":"2024-10-25T06:19:08.986Z","dependency_job_id":"9786ebaa-4245-4b33-a88c-697d29b08c40","html_url":"https://github.com/timtorChen/rustic-exporter","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"d462f17bea54dfe48045c9fbb1b83759f26c2332"},"previous_names":["timtorchen/rustic-exporter"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/timtorChen/rustic-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timtorChen%2Frustic-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timtorChen%2Frustic-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timtorChen%2Frustic-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timtorChen%2Frustic-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timtorChen","download_url":"https://codeload.github.com/timtorChen/rustic-exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timtorChen%2Frustic-exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29659761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T16:33:43.953Z","status":"ssl_error","status_checked_at":"2026-02-20T16:33:43.598Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["metrics","prometheus-exporter","restic-exporter","rust","rustic-exporter"],"created_at":"2024-12-16T21:16:29.829Z","updated_at":"2026-02-20T18:09:25.533Z","avatar_url":"https://github.com/timtorChen.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Rustic-exporter\n\n... _progressing slowly with [Look at Yourself](https://www.youtube.com/watch?v=tcq6qZOE03c)_ 🎧\n\n[![codecov](https://codecov.io/gh/timtorChen/rustic-exporter/graph/badge.svg?token=34YBCFDN6B)](https://codecov.io/gh/timtorChen/rustic-exporter)\n[![github-release](https://img.shields.io/github/v/release/timtorChen/rustic-exporter)](https://github.com/timtorChen/rustic-exporter/releases/latest)\n[![github-ghcr](https://img.shields.io/badge/_ghcr.io-download-blue)](https://github.com/timtorChen/rustic-exporter/pkgs/container/rustic-exporter)\n\n\u003c/div\u003e\n\n---\n\n⚠️ This project is still under development; use it with caution.\n\nPrometheus exporter for rustic/restic backup.\n\n![](./example/grafana/screenshot.png)\n\n### Background\n\nOriginally I would like to craft a restic-exporter supporting multiple backup repositories because of the [issue](https://github.com/ngosang/restic-exporter/issues/26#issuecomment-1915364225). After checking the code, I found restic do not separate its library from the CLI. This forces downstream user to rely on subprocess binary calls, which causes additional maintaince overhead. So, I switched gears to rustic, and started this project.\n\n### Requirements\n\nThe backup client should use `restic \u003e= v0.17`, or metrics like `rustic_snapshot_size_bytes` will be dropped.\n\n### Usage\n\n#### Command line\n\n```\nUsage: rustic-exporter [OPTIONS] --config \u003cCONFIG\u003e\n\nOptions:\n  -i, --interval \u003cINTERVAL\u003e    Metrics collection frequency in seconds [default: 300]\n      --log-level \u003cLOG_LEVEL\u003e  Log level: debug, info, warn, error [default: info]\n  -v, --verbose                Show logs of all dependents\n  -c, --config \u003cCONFIG\u003e        Path to the configuration file\n      --host \u003cHOST\u003e            Server host [default: 0.0.0.0]\n      --port \u003cPORT\u003e            Server port [default: 8080]\n  -h, --help                   Print help\n  -V, --version                Print version\n```\n\n#### Configuration file\n\nThe configuration file is in TOML format, and follows the rustic [supported services](https://rustic.cli.rs/docs/commands/init/services.html).\n\n```toml\n# Local\n[[backup]]\n  repository = \"./local\"\n  password = \"test\"\n  [backup.options]\n\n\n# Opendal\n## S3 backend\n[[backup]]\n  repository = \"opendal:s3\"\n  password = \"test\"\n  [backup.options]\n    ## set opendal S3 backend configuration in the form of key-value\n    ## https://opendal.apache.org/docs/rust/opendal/services/struct.S3.html#configuration\n    endpoint = \"https://s3.west-2.amazonaws.com\"\n    access_key_id = \"access-key-id\"\n    secret_access_key = \"secret-access-key\"\n    bucket = \"bucket-name\"\n    root = \"/\"\n    region = \"auto\"\n\n## Google Drive backend\n[[backup]]\n  repository = \"opendal:gdrive\"\n  password = \"test\"\n  [backup.options]\n    ## set opendal GoogleDrive backend configuration\n    ## https://opendal.apache.org/docs/rust/opendal/services/struct.Gdrive.html\n    access_token = \"access-token\"\n    refresh_token = \"refresh-token\"\n    client_id = \"client-id\"\n    client_secret = \"client-secret\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimtorchen%2Frustic-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimtorchen%2Frustic-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimtorchen%2Frustic-exporter/lists"}