From 89b9341568c402ec74bc87813443c5908f22560c Mon Sep 17 00:00:00 2001 From: Anso Date: Mon, 29 Jun 2026 15:23:19 -0400 Subject: [PATCH] fix: replace Janitor wording with reclaim/prune actions in user-facing copy (#1518) Rename "Janitor threshold" to "Reclaimable Docker data threshold" in Settings and update the unused-Docker-data alert to point users to the Resources view and the Prune Node Resources scheduled action, which are the real UI surfaces for reclaiming disk space. Remove "janitor" from settings search keywords. The internal docker_janitor_gb database key and JANITOR_* constants are unchanged. --- backend/src/services/MonitorService.ts | 2 +- docs/features/alerts-notifications.mdx | 6 +++--- docs/reference/settings.mdx | 2 +- frontend/src/components/settings/DockerStorageSection.tsx | 2 +- frontend/src/components/settings/registry.ts | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/backend/src/services/MonitorService.ts b/backend/src/services/MonitorService.ts index 931e4f1f..9552f7bf 100644 --- a/backend/src/services/MonitorService.ts +++ b/backend/src/services/MonitorService.ts @@ -450,7 +450,7 @@ export class MonitorService { JANITOR_COOLDOWN_MS, 'info', 'system', - `Node "${nodeLabel}" has accumulated ${reclaimGb.toFixed(1)} GB of unused Docker data. Consider using the Janitor tool.`, + `Node "${nodeLabel}" has accumulated ${reclaimGb.toFixed(1)} GB of unused Docker data. Open Resources to reclaim space, or set up a Prune Node Resources schedule.`, ); } } finally { diff --git a/docs/features/alerts-notifications.mdx b/docs/features/alerts-notifications.mdx index 5c22613f..6b1a62c1 100644 --- a/docs/features/alerts-notifications.mdx +++ b/docs/features/alerts-notifications.mdx @@ -290,9 +290,9 @@ The suppression window defaults to 60 minutes and is configured per node in **Se The entire host threshold evaluation can be silenced per node from **Settings · Monitoring · Host Alerts · Host threshold alerts** while keeping the configured limit values. This toggle affects only the CPU, RAM, and disk threshold checks; crash capture, stack alert rules, and health gate checks all continue to run independently. -### Docker janitor +### Reclaimable Docker data -`info`/`system`: `Node "" has accumulated GB of unused Docker data. Consider using the Janitor tool.` 24-hour cooldown. +`info`/`system`: `Node "" has accumulated GB of unused Docker data. Open Resources to reclaim space, or set up a Prune Node Resources schedule.` 24-hour cooldown. ### Sencho version availability @@ -375,7 +375,7 @@ The global crash-capture switch lives under **Settings · Monitoring · Containe The **Container crash & health alerts** toggle controls whether `DockerEventService` raises crash, OOM, and healthcheck alerts on the active node. Helper text: `Send alerts for unexpected container exits, OOM kills, and Docker healthcheck failures. Auto-Heal can still observe crash signals independently.` Defaults to on; if the database read fails, Sencho falls back to default-deny so the system never leaks alerts you cannot turn off. -The **Host Alerts** panel carries the **Host thresholds** rows (CPU limit, RAM limit, Disk limit, all expressed as percent) that drive the host-level monitor warnings. Container crash and health alerts live in the **Container Alerts** panel. The **Janitor threshold** (in GiB) that drives the unused-Docker-data alert lives in the **Docker & Storage** panel. +The **Host Alerts** panel carries the **Host thresholds** rows (CPU limit, RAM limit, Disk limit, all expressed as percent) that drive the host-level monitor warnings. Container crash and health alerts live in the **Container Alerts** panel. The **Reclaimable Docker data threshold** (in GiB) that drives the unused-Docker-data alert lives in the **Docker & Storage** panel. ## Refresh cadence diff --git a/docs/reference/settings.mdx b/docs/reference/settings.mdx index 0a004326..5a4d3e52 100644 --- a/docs/reference/settings.mdx +++ b/docs/reference/settings.mdx @@ -271,7 +271,7 @@ Configure the reclaimable-space alert, the reclaimable-space banner, and automat | Setting | Default | Description | |---------|---------|-------------| -| **Janitor threshold** | 5 GiB | Alert when reclaimable Docker data (images, volumes, build cache that `docker prune` could free) exceeds this size. Set to `0` to disable the alert. | +| **Reclaimable Docker data threshold** | 5 GiB | Alert when reclaimable Docker data (images, volumes, build cache that `docker prune` could free) exceeds this size. Set to `0` to disable the alert. | | **Show reclaimable-space banner** | On | Show the reclaimable-space banner at the top of the Resource Hub when this node has unused images, stopped containers, or dangling volumes to clear. | ### Image cleanup diff --git a/frontend/src/components/settings/DockerStorageSection.tsx b/frontend/src/components/settings/DockerStorageSection.tsx index 0a5547b5..0aa008fb 100644 --- a/frontend/src/components/settings/DockerStorageSection.tsx +++ b/frontend/src/components/settings/DockerStorageSection.tsx @@ -115,7 +115,7 @@ export function DockerStorageSection({ onDirtyChange }: DockerStorageSectionProp