From 34c7fe2eaf7f3aa4b3e8f49e90aca404cddbb236 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Mon, 19 Jan 2026 09:07:44 +0000 Subject: [PATCH] chore: update agent metadata in WCOC template (#21549) This PR: - Removes the host-related agent metadata. It's not particularly useful and the hosts have dedicated monitoring via Netdata. - Adds two metdata blocks to expose the sizes of `/home/coder` and `/var/lib/docker` --- dogfood/coder/main.tf | 62 ++++++++++--------------------------------- 1 file changed, 14 insertions(+), 48 deletions(-) diff --git a/dogfood/coder/main.tf b/dogfood/coder/main.tf index f261d9d81f..deb720829f 100644 --- a/dogfood/coder/main.tf +++ b/dogfood/coder/main.tf @@ -502,61 +502,27 @@ resource "coder_agent" "dev" { } metadata { - display_name = "CPU Usage (Host)" - key = "cpu_usage_host" + display_name = "/home Usage" + key = "home_usage" order = 2 - script = "coder stat cpu --host" - interval = 10 - timeout = 1 - } - - metadata { - display_name = "RAM Usage (Host)" - key = "ram_usage_host" - order = 3 - script = "coder stat mem --host" - interval = 10 - timeout = 1 - } - - metadata { - display_name = "Swap Usage (Host)" - key = "swap_usage_host" - order = 4 - script = <&1 | awk ' $0 ~ "Word of the Day: [A-z]+" { print $5; exit }'