aboutsummaryrefslogtreecommitdiff
path: root/prometheus_borgmatic_exporter
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--prometheus_borgmatic_exporter/__init__.py5
-rw-r--r--prometheus_borgmatic_exporter/__main__.py4
-rw-r--r--prometheus_borgmatic_exporter/metrics.py4
-rw-r--r--prometheus_borgmatic_exporter/types.py1
4 files changed, 9 insertions, 5 deletions
diff --git a/prometheus_borgmatic_exporter/__init__.py b/prometheus_borgmatic_exporter/__init__.py
index 8bfd629..c72012a 100644
--- a/prometheus_borgmatic_exporter/__init__.py
+++ b/prometheus_borgmatic_exporter/__init__.py
@@ -4,7 +4,6 @@
#
# SPDX-License-Identifier: BSD-3-Clause
-
import json
import os
import subprocess
@@ -18,10 +17,10 @@ from prometheus_client import write_to_textfile
from . import metrics, types
from .cli import FlexibleColorOption, debug, error, msg, verbose, warn
-VERSION = "1.0.0"
+VERSION = "2.0.0"
DESCRIPTION = "Collect borgmatic repository metrics and export them for Prometheus."
DATE_OF_CREATION = "2021-06-12"
-DATE_OF_REVISION = "2026-05-01"
+DATE_OF_REVISION = "2026-09-19"
AUTHOR = "Dennis Fink <me+coding@dennisfink.me>"
LICENSE = "BSD-3-Clause"
diff --git a/prometheus_borgmatic_exporter/__main__.py b/prometheus_borgmatic_exporter/__main__.py
index b5dc8e8..08d2010 100644
--- a/prometheus_borgmatic_exporter/__main__.py
+++ b/prometheus_borgmatic_exporter/__main__.py
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2026 Dennis Fink <me+coding@dennisfink.me>
+#
+# SPDX-License-Identifier: BSD-3-Clause
+
from . import prometheus_borgmatic_exporter
prometheus_borgmatic_exporter()
diff --git a/prometheus_borgmatic_exporter/metrics.py b/prometheus_borgmatic_exporter/metrics.py
index 683c179..8dcc0e2 100644
--- a/prometheus_borgmatic_exporter/metrics.py
+++ b/prometheus_borgmatic_exporter/metrics.py
@@ -1,9 +1,9 @@
-"""Prometheus metric definitions for the borgmatic exporter."""
-
# SPDX-FileCopyrightText: 2026 Dennis Fink <me+coding@dennisfink.me>
#
# SPDX-License-Identifier: BSD-3-Clause
+"""Prometheus metric definitions for the borgmatic exporter."""
+
from prometheus_client import CollectorRegistry, Gauge, Info
REGISTRY = CollectorRegistry(auto_describe=True)
diff --git a/prometheus_borgmatic_exporter/types.py b/prometheus_borgmatic_exporter/types.py
index 8b82fbe..86be8d7 100644
--- a/prometheus_borgmatic_exporter/types.py
+++ b/prometheus_borgmatic_exporter/types.py
@@ -1,6 +1,7 @@
# SPDX-FileCopyrightText: 2026 Dennis Fink <me+coding@dennisfink.me>
#
# SPDX-License-Identifier: BSD-3-Clause
+
"""TypedDict definitions for borgmatic JSON output structures."""
from typing import Any, TypedDict