]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
kresctl: add message when Prometheus is missing docs-develop-mana-8cbmfy/deployments/3787
authorOto Šťáva <oto.stava@nic.cz>
Mon, 15 Apr 2024 11:19:29 +0000 (13:19 +0200)
committerAleš Mrázek <ales.mrazek@nic.cz>
Mon, 15 Apr 2024 14:28:37 +0000 (16:28 +0200)
manager/knot_resolver_manager/cli/cmd/metrics.py

index c535186ef131f223496951538376cc51218facf2..7f466ec30f5498c1328e0bbaeec716a5d0785e86 100644 (file)
@@ -62,4 +62,6 @@ class MetricsCommand(Command):
                 print(metrics)
         else:
             print(response, file=sys.stderr)
+            if self.prometheus and response.status == 404:
+                print("Prometheus is unavailable due to missing optional dependencies", file=sys.stderr)
             sys.exit(1)