Skip to content

Commit ff3f04c

Browse files
committed
also export exporter version information
1 parent c8e3003 commit ff3f04c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/linkhub_prometheus_exporter/exporter.py

+7
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@ def fetch_metrics(self) -> None:
140140
def main() -> None:
141141
"""Main entry point for the exporter"""
142142
logging.info("Linkhub Prometheus Exporter, version %s", __version__)
143+
# Add exporter metadata to what's exported
144+
exporter_info = Info("exporter_info", "Exporter information")
145+
exporter_info.info(
146+
{
147+
"version": __version__,
148+
}
149+
)
143150

144151
try:
145152
router_metrics = RouterMetrics(

0 commit comments

Comments
 (0)