Commented failing timestamp

This commit is contained in:
Antonio J. Delgado 2022-12-26 19:36:25 +02:00
parent d8be724211
commit 84ca57eb47
3 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@ Homepage = "https://susurrando.com"
[project] [project]
name = "restic_exporter" name = "restic_exporter"
version = "0.0.6" version = "0.0.7"
description = "Export to node exporter the summary of a restic backup" description = "Export to node exporter the summary of a restic backup"
readme = "README.md" readme = "README.md"
authors = [{ name = "Antonio J. Delgado", email = "ad@susurrando.com" }] authors = [{ name = "Antonio J. Delgado", email = "ad@susurrando.com" }]

View file

@ -58,7 +58,7 @@ class restic_exporter:
print(f"# TYPE {self.metric_name} counter") print(f"# TYPE {self.metric_name} counter")
for counter in counters: for counter in counters:
if counter in self.summary: if counter in self.summary:
print(f"{self.metric_name}_{counter}{labels} {float(self.summary[counter])} {self.summary['timestamp']}") print(f"{self.metric_name}_{counter}{labels} {float(self.summary[counter])}") # {self.summary['timestamp']}")
def _read_summary_from_json(self, json_file): def _read_summary_from_json(self, json_file):
try: try:

View file

@ -2,7 +2,7 @@ import setuptools
setuptools.setup( setuptools.setup(
scripts=['restic_exporter/restic_exporter.py'], scripts=['restic_exporter/restic_exporter.py'],
author="Antonio J. Delgado", author="Antonio J. Delgado",
version='0.0.6', version='0.0.7',
name='restic_exporter', name='restic_exporter',
author_email="", author_email="",
url="", url="",