TopGit theo dõi ngosang/restic-exporter trên GitHub trong nhóm Developer Tools, đã đạt 159 sao. Prometheus exporter for the Restic backup system
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
export RESTIC_REPOSITORY=/data
export RESTIC_PASSWORD=restic_password
uv run exporter/exporter.py
Format the code:
uv run ruff format ./
uv run ruff check --fix ./
Run the tests:
uv run pytest ./
Docker
Docker images are available in GHCR and DockerHub.
docker pull ghcr.io/ngosang/restic-exporter
# or
docker pull ngosang/restic-exporter
Supported Architectures
The architectures supported by this image are:
linux/386
linux/amd64
linux/arm/v6
linux/arm/v7
linux/arm64
linux/ppc64le
linux/riscv64
linux/s390x
Docker Compose
NOTE: It is recommended to mount the /root/.cache/restic path as an external volume to speed up Restic Exporter
startup time and to reduce costs if your repository is remote. This path contains the Restic repository cache.
Rclone (see notes below): rclone:gd-backup:/restic
Repository password configuration. Choose one of the following methods:
RESTIC_PASSWORD: Restic repository password in plain text.
RESTIC_PASSWORD_FILE: File with the Restic repository password in plain text. Remember to mount the Docker volume
with the file.
RESTIC_PASSWORD_COMMAND: Program to be called when the password is needed.
REFRESH_INTERVAL: (Optional) Refresh interval for the metrics in seconds. Computing the metrics is an expensive
task, keep this value as high as possible. Default is 3600 seconds (1 hour).
WARNING: With default settings, downloading from remote repositories may be costly if using this exporter with
a remote Cloud-based restic repository (e.g. GCP GCS, Amazon S3). This may cause a surprisingly high spike in your
infrastructure costs (e.g. for small restic repositories that don't download frequently, this may increase your costs
by multiple orders of magnitude). Consider setting REFRESH_INTERVAL to considerably higher values (e.g. 86400 for
once per day) to lower this impact.
LISTEN_PORT: (Optional) The address the exporter should listen on. The default is 8001.
LISTEN_ADDRESS: (Optional) The address the exporter should listen on. The default is to listen on all addresses.
LOG_LEVEL: (Optional) Log level of the traces. The default is INFO.
EXIT_ON_ERROR: (Optional) Shutdown exporter on any restic error. Default is False (only log error, such as
network error with Cloud backends).
NO_CHECK: (Optional) Do not perform restic check operation for performance reasons. Default is False (perform
restic check).
NO_GLOBAL_STATS: (Optional) Do not perform restic stats operation for performance reasons. Default is False (perform
restic stats).
NO_LEGACY_STATS: (Optional) Do not collect per backup statistics for performance reasons. Default is False (collect per
backup statistics).
NOTE: Since Restic 0.17 getting the statistics is much faster, and it is always enabled. This configuration only
applies for backups performed with an old version of the Restic client.
NO_LOCKS: (Optional) Do not collect the number of locks. Default is False (collect the number of locks).
INCLUDE_PATHS: (Optional) Include snapshot paths for each backup. The paths are separated by commas. Default is
False (not collect the paths).
INSECURE_TLS: (Optional) skip TLS verification for self-signed certificates. Default is False (not skip).
AWS_ACCESS_KEY_ID: (Optional) Required for Amazon S3, Minio and Wasabi backends.
AWS_SECRET_ACCESS_KEY: (Optional) Required for Amazon S3, Minio and Wasabi backends.
B2_ACCOUNT_ID: (Optional) Required for Backblaze B2 backend.
B2_ACCOUNT_KEY: (Optional) Required for Backblaze B2 backend.
Configuration for Rclone
Rclone is not included in the Docker image. You have to mount the Rclone executable and the Rclone configuration from
the host machine. Here is an example with docker-compose:
# HELP restic_check_success Result of restic check operation in the repository
restic_check_success 1.0
# HELP restic_locks_total Total number of locks in the repository
restic_locks_total 0.0
# HELP restic_scrape_duration_seconds Amount of time each scrape takes
restic_scrape_duration_seconds 87.033
# HELP restic_size_total Total size of the repository in bytes
restic_size_total 38573452
# HELP restic_uncompressed_size_total Total uncompressed size of the repository in bytes
restic_uncompressed_size_total 44077773
# HELP restic_compression_ratio Compression ratio of the repository
restic_compression_ratio 1.142
# HELP restic_blob_count_total Total number of blobs in the repository
restic_blob_count_total 1500
# HELP restic_snapshots_total Total number of snapshots in the repository
restic_snapshots_total 100.0
# HELP restic_backup_timestamp Timestamp of the last backup
restic_backup_timestamp{client_hostname="example",client_username="root",client_version="restic 0.18.1",snapshot_hash="785c44996fa586ccf634fb0b45cd50d3afe8556ad44476bc5c3372bcdfbae4cd",snapshot_tag="mysql",snapshot_tags="mysql,tag2",snapshot_paths="/mysql/data,/mysql/config"} 1.666273638e+09
# HELP restic_backup_snapshots_total Total number of snapshots
restic_backup_snapshots_total{client_hostname="example",client_username="root",client_version="restic 0.18.1",snapshot_hash="785c44996fa586ccf634fb0b45cd50d3afe8556ad44476bc5c3372bcdfbae4cd",snapshot_tag="mysql",snapshot_tags="mysql,tag2",snapshot_paths="/mysql/data,/mysql/config"} 1.0
# HELP restic_backup_files_total Number of files in the backup
restic_backup_files_total{client_hostname="example",client_username="root",client_version="restic 0.18.1",snapshot_hash="785c44996fa586ccf634fb0b45cd50d3afe8556ad44476bc5c3372bcdfbae4cd",snapshot_tag="mysql",snapshot_tags="mysql,tag2",snapshot_paths="/mysql/data,/mysql/config"} 8.0
# HELP restic_backup_size_total Total size of backup in bytes
restic_backup_size_total{client_hostname="example",client_username="root",client_version="restic 0.18.1",snapshot_hash="785c44996fa586ccf634fb0b45cd50d3afe8556ad44476bc5c3372bcdfbae4cd",snapshot_tag="mysql",snapshot_tags="mysql,tag2",snapshot_paths="/mysql/data,/mysql/config"} 4.3309562e+07
# HELP restic_backup_files_new Number of new files in the backup
restic_backup_files_new{client_hostname="example",client_username="root",client_version="restic 0.18.1",snapshot_hash="785c44996fa586ccf634fb0b45cd50d3afe8556ad44476bc5c3372bcdfbae4cd",snapshot_tag="mysql",snapshot_tags="mysql,tag2",snapshot_paths="/mysql/data,/mysql/config"} 2280.0
# HELP restic_backup_files_changed Number of changed files in the backup
restic_backup_files_changed{client_hostname="example",client_username="root",client_version="restic 0.18.1",snapshot_hash="785c44996fa586ccf634fb0b45cd50d3afe8556ad44476bc5c3372bcdfbae4cd",snapshot_tag="mysql",snapshot_tags="mysql,tag2",snapshot_paths="/mysql/data,/mysql/config"} 3167.0
# HELP restic_backup_files_unmodified Number of unmodified files in the backup
restic_backup_files_unmodified{client_hostname="example",client_username="root",client_version="restic 0.18.1",snapshot_hash="785c44996fa586ccf634fb0b45cd50d3afe8556ad44476bc5c3372bcdfbae4cd",snapshot_tag="mysql",snapshot_tags="mysql,tag2",snapshot_paths="/mysql/data,/mysql/config"} 239163.0
# HELP restic_backup_dirs_new Number of new directories in the backup
restic_backup_dirs_new{client_hostname="example",client_username="root",client_version="restic 0.18.1",snapshot_hash="785c44996fa586ccf634fb0b45cd50d3afe8556ad44476bc5c3372bcdfbae4cd",snapshot_tag="mysql",snapshot_tags="mysql,tag2",snapshot_paths="/mysql/data,/mysql/config"} 1.0
# HELP restic_backup_dirs_changed Number of changed directories in the backup
restic_backup_dirs_changed{client_hostname="example",client_username="root",client_version="restic 0.18.1",snapshot_hash="785c44996fa586ccf634fb0b45cd50d3afe8556ad44476bc5c3372bcdfbae4cd",snapshot_tag="mysql",snapshot_tags="mysql,tag2",snapshot_paths="/mysql/data,/mysql/config"} 255.0
# HELP restic_backup_dirs_unmodified Number of unmodified directories in the backup
restic_backup_dirs_unmodified{client_hostname="example",client_username="root",client_version="restic 0.18.1",snapshot_hash="785c44996fa586ccf634fb0b45cd50d3afe8556ad44476bc5c3372bcdfbae4cd",snapshot_tag="mysql",snapshot_tags="mysql,tag2",snapshot_paths="/mysql/data,/mysql/config"} 53499.0
# HELP restic_backup_data_added_bytes Number of bytes added in the backup
restic_backup_data_added_bytes{client_hostname="example",client_username="root",client_version="restic 0.18.1",snapshot_hash="785c44996fa586ccf634fb0b45cd50d3afe8556ad44476bc5c3372bcdfbae4cd",snapshot_tag="mysql",snapshot_tags="mysql,tag2",snapshot_paths="/mysql/data,/mysql/config"} 5.29759957e+08
# HELP restic_backup_duration_seconds Amount of time Restic took to make the backup
restic_backup_duration_seconds{client_hostname="example",client_username="root",client_version="restic 0.18.1",snapshot_hash="785c44996fa586ccf634fb0b45cd50d3afe8556ad44476bc5c3372bcdfbae4cd",snapshot_tag="mysql",snapshot_tags="mysql,tag2",snapshot_paths="/mysql/data,/mysql/config"} 33.165685
Edit /etc/default/restic-exporter and set at least the repo address and the password. You can add any other environment variable if needed. Since this file holds the repository password, restrict its permissions:
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/ngosang/restic-exporter là nguồn chính thức.
ngosang/restic-exporter có bao nhiêu sao?
ngosang/restic-exporter có 159 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/ngosang/restic-exporter. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
ngosang/restic-exporter có phải mã nguồn mở không?
Có — ngosang/restic-exporter phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/ngosang/restic-exporter.
ngosang/restic-exporter còn đang phát triển không?
Commit gần nhất trên ngosang/restic-exporter là 1 tháng trước (theo timestamp GitHub). Repo có 32 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
ngosang/restic-exporter là gì?
ngosang/restic-exporter (ngosang/restic-exporter) là dự án Python trên GitHub. Theo mô tả gốc: Prometheus exporter for the Restic backup system
ngosang/restic-exporter so với các dự án Developer Tools khác thế nào?
ngosang/restic-exporter được TopGit xếp vào nhóm Developer Tools, với 159 sao GitHub và viết bằng Python. Xem trang chủ đề Developer Tools trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc restic-exporter có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về restic-exporter.