Task · TSO-0206

Export the Go memory limit and alert when heap nears it

Description

OOM restarts happened (TSO-0192, TSO-0197). The chart sets GOMEMLIMIT but no metric reports the effective limit and no runtime.memory family has an alert. Read the effective limit with debug.SetMemoryLimit(-1).

Acceptance Criteria

Definition of Done

Implementation Plan

Loop33 memory lane: effective memory limit gauge, panel and alert, gate and review.

Implementation Notes

loop33 landedfdaa4d8b84c44cde5ca99c00f6f4256886a8b409. Effective Go limit gauge emits -1 when unlimited; paired heap panel/rule. Independent guarded review caught stale historical reduction; per-rule instant query repaired and proved in native Grafana12.3 fixture pipeline plus real PromQL transitions. Other rule objects preserved. Final independent PASS; exact composed gate20261101T212748Z-tailscale2otel-9e155cc2 exit0. Python CodeRabbit gaps independently reviewed; no Grafana13 live/scheduler claim.

Final Summary

Exported effective Go memory limit and generated heap-pressure view/alert, including finite-to-unlimited and zero transitions.

References

View the source file on GitHub