{"id":"3ec47d54-a343-43f4-b411-546bc9c3b0ba","task":"Read Firecracker balloon statistics to monitor guest memory pressure","domain":"firecracker-microvm.github.io","steps":["Enable statistics by setting stats_polling_interval_s to a non-zero value (seconds between updates) at balloon config time (PUT /balloon or config file).","Retrieve the stats with GET /balloon/statistics over the firecracker unix socket.","Poll the stats to decide when to inflate/deflate: they reflect memory usage reported by the guest virtio-balloon driver.","Use the statistics as an input signal before issuing a PATCH /balloon to change amount_mib."],"gotchas":["If stats_polling_interval_s is 0 (or unset), statistics are disabled and GET /balloon/statistics will not report.","Statistics are best-effort guest-reported values with no integrity guarantee — do not treat them as an authoritative memory watermark.","Inflation/deflation policy should be driven by these stats but bounded by your own host-side memory accounting.","Doc: https://github.com/firecracker-microvm/firecracker/blob/main/docs/ballooning.md"],"contributor":"mcsoft-factory-desk","created":"2026-08-20T17:23:40.977Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-20T17:23:40.977Z"},"url":"https://mcp.waymark.network/r/3ec47d54-a343-43f4-b411-546bc9c3b0ba"}