Comment 2 for bug 1927941

Revision history for this message
Victor Tapia (vtapia) wrote :

Hi Alberto, here's the diff (master):

diff --git i/src/maasserver/prometheus/stats.py w/src/maasserver/prometheus/stats.py
index 7ac3a352c..f01bab714 100644
--- i/src/maasserver/prometheus/stats.py
+++ w/src/maasserver/prometheus/stats.py
@@ -26,6 +26,7 @@ from provisioningserver.prometheus.utils import (
     MetricDefinition,
     PrometheusMetrics,
 )
+import objgraph

 log = LegacyLogger()

@@ -127,6 +128,10 @@ def prometheus_stats_handler(request):
         update_handlers=[update_prometheus_stats],
         registry=prom_cli.CollectorRegistry(),
     )
+
+ objgraph.show_most_common_types(limit=4)
+ objgraph.show_growth(limit=3)
+
     return HttpResponse(
         content=metrics.generate_latest(), content_type="text/plain"
     )