mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Delete sentry metrics /watchdog/{stuck_startup_detected, stuck_tasks_detected}
- These metrics are replaced with WeirdnessMetric with fields watchdog_stuck_startup and watchdog_stuck_tasks. PiperOrigin-RevId: 381365617
This commit is contained in:
committed by
gVisor bot
parent
2e6195ffe0
commit
3e46b660b9
@@ -77,11 +77,6 @@ var DefaultOpts = Opts{
|
||||
// trigger it.
|
||||
const descheduleThreshold = 1 * time.Second
|
||||
|
||||
var (
|
||||
stuckStartup = metric.MustCreateNewUint64Metric("/watchdog/stuck_startup_detected", true /* sync */, "Incremented once on startup watchdog timeout")
|
||||
stuckTasks = metric.MustCreateNewUint64Metric("/watchdog/stuck_tasks_detected", true /* sync */, "Cumulative count of stuck tasks detected")
|
||||
)
|
||||
|
||||
// Amount of time to wait before dumping the stack to the log again when the same task(s) remains stuck.
|
||||
var stackDumpSameTaskPeriod = time.Minute
|
||||
|
||||
@@ -242,7 +237,6 @@ func (w *Watchdog) waitForStart() {
|
||||
return
|
||||
}
|
||||
|
||||
stuckStartup.Increment()
|
||||
metric.WeirdnessMetric.Increment("watchdog_stuck_startup")
|
||||
|
||||
var buf bytes.Buffer
|
||||
@@ -316,7 +310,6 @@ func (w *Watchdog) runTurn() {
|
||||
// unless they are surrounded by
|
||||
// Task.UninterruptibleSleepStart/Finish.
|
||||
tc = &offender{lastUpdateTime: lastUpdateTime}
|
||||
stuckTasks.Increment()
|
||||
metric.WeirdnessMetric.Increment("watchdog_stuck_tasks")
|
||||
newTaskFound = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user