Add total durection counter

This commit is contained in:
Antonio J. Delgado 2022-12-26 18:43:21 +02:00
parent e56dd86161
commit eacd54bce0

View file

@ -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")