Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to get notified when a container is stuck at 100% CPU?

Featured Replies

Hi all,

Every now and then one of my Docker containers hangs and starts eating 100% CPU until I notice it and restart it manually. The container stays in “running” state the whole time, so nothing flags it — I usually only find out when the rest of the server starts feeling sluggish.

What I’d like is a notification (Unraid’s built-in notification agents would be fine) whenever a container stays above some CPU threshold for more than a few minutes, so I can go and restart it myself.

I already run Uptime Kuma, but it only tells me whether the service responds — and in this hung state it often still does, just very slowly, so the check passes.

A few questions:

Is there a plugin that does this out of the box?

If not, is a User Scripts cron job polling docker stats --no-stream and calling notify the usual approach here? Any gotchas with that on Unraid?

Has anyone wired this up to auto-restart the container instead of just alerting? I’d rather be notified first, but I’m curious how it works in practice.

Thanks!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.