DFINITY has shared a proposal for Canister Insights, a feature designed to give developers and stakeholders clearer visibility into how cycles and resources are used by their canisters. Currently, tracking cycle consumption can be cumbersome. While developers can view total cycles or memory usage via the existing canister_status endpoint, there is little insight into where those cycles are spent or how to optimise performance.
The proposed solution aims to provide real-time and historical monitoring, enabling users to track memory, compute usage, and cycle costs over time. Developers could identify spikes, unusual patterns, and assess overall canister capacity. Detailed metrics would also help predict when cycles might run low, trigger alerts, and support faster debugging by correlating system events with application logs.
Metrics would be accessible through a new management canister API, canister_metrics, offering both a standardised core set of metrics and support for custom, per-method statistics. Initially focusing on cycle consumption, the feature could later expand to instructions, memory, and throughput. By offering more detailed and actionable data, Canister Insights seeks to improve resource management and transparency for developers across the DFINITY network.