Skip to content

Commit

Permalink
Another fix for the metrics...
Browse files Browse the repository at this point in the history
i should really put more tests in
  • Loading branch information
andreasnuesslein committed May 18, 2020
1 parent 2a6ec93 commit 7622739
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "runrestic"
version = "0.5.7"
version = "0.5.8"
description = "A wrapper script for Restic backup software that inits, creates, prunes and checks backups"
license = "GPL-3.0+"
authors = [ "Andreas Nüßlein <[email protected]>" ]
Expand Down
2 changes: 1 addition & 1 deletion runrestic/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.5.7"
__version__ = "0.5.8"
2 changes: 1 addition & 1 deletion runrestic/metrics/prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def generate_lines(metrics: Dict[str, Any], name: str) -> Iterator[str]:

for repo, mtrx in metrics.get("stats", {}).items():
if mtrx["rc"] != 0:
yield f'restic_stats_rc{{config="{name}",repository="{repo}"}} {mtrx["rc"]}'
yield f'restic_stats_rc{{config="{name}",repository="{repo}"}} {mtrx["rc"]}\n'
else:
yield _restic_stats.format(name=name, repository=repo, **mtrx)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
long_description=open(readme_path, "r").read(),
long_description_content_type="text/markdown",
name="runrestic",
version="0.5.7",
version="0.5.8",
description="A wrapper script for Restic backup software that inits, creates, prunes and checks backups",
python_requires=">=3.6.0",
project_urls={
Expand Down

0 comments on commit 7622739

Please sign in to comment.