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" )
Hi Alberto, here's the diff (master):
diff --git i/src/maasserve r/prometheus/ stats.py w/src/maasserve r/prometheus/ stats.py .f01bab714 100644 r/prometheus/ stats.py r/prometheus/ stats.py ver.prometheus. utils import ( nition, Metrics,
index 7ac3a352c.
--- i/src/maasserve
+++ w/src/maasserve
@@ -26,6 +26,7 @@ from provisioningser
MetricDefi
Prometheus
)
+import objgraph
log = LegacyLogger()
@@ -127,6 +128,10 @@ def prometheus_ stats_handler( request) :
update_ handlers= [update_ prometheus_ stats],
registry= prom_cli. CollectorRegist ry(), show_most_ common_ types(limit= 4) show_growth( limit=3)
content= metrics. generate_ latest( ), content_ type="text/ plain"
)
+
+ objgraph.
+ objgraph.
+
return HttpResponse(
)