From eacd54bce0abaf8b6a5a4e67688cccf1c882f8ea Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 26 Dec 2022 18:43:21 +0200 Subject: [PATCH] Add total durection counter --- restic_exporter/restic_exporter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/restic_exporter/restic_exporter.py b/restic_exporter/restic_exporter.py index e5aa1f8..ef551f2 100644 --- a/restic_exporter/restic_exporter.py +++ b/restic_exporter/restic_exporter.py @@ -51,7 +51,8 @@ class restic_exporter: 'tree_blobs', 'data_added', 'total_files_processed', - 'total_bytes_processed' + 'total_bytes_processed', + 'total_duration' ] print(f"# HELP {self.metric_name} {self.metric_description}.") print(f"# TYPE {self.metric_name} counter")