Skip to content
Discussion options

You must be logged in to vote

Your first reading is correct: it's a raw comparison against the load average, with no normalisation by core count and no scaling.

  • In internal/alerts/alerts_system.go, LoadAvg1/5/15 take Info.LoadAvg[0/1/2] straight from the agent (unit ""), and the alert triggers when that value is greater than the threshold. With a "for N minutes" setting, it uses the average over that window. The tests in alerts_system_test.go cover exactly this: a threshold of 4 fires at 4.1 and not at 3.9.
  • The range comes only from the UI. internal/site/src/lib/alerts.ts defines all three load-average alerts with min: 0.1, max: 100, step: 0.1 (so it actually goes down to 0.1, not 1). The CPU and memory alerts are pe…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@VAllens
Comment options

Answer selected by VAllens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants