@@ -4448,7 +4430,17 @@ async def html_metrics_dashboard(self, request):
self.default_page = "./metrics_dashboard"
if not PROMETHEUS_AVAILABLE:
- return web.Response(text=FALLBACK_HTML, content_type="text/html")
+ text = self.get_header("Predbat Metrics", refresh=0)
+ text += "\n"
+ text += """
+
Metrics Dashboard Unavailable
+
prometheus_client is not installed.
+
Install it with: pip install prometheus_client
+
← Back to Dashboard
+
+"""
+ text += "