From eb9d470ba8e24ed42bfa81c5014066e07b060311 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Mon, 16 Nov 2026 00:16:14 +1100 Subject: [PATCH] fix(runs): the forecast figure is in hours, so the model doesn't convert it (archie #2005) --- internal/platform/prompts/investigate.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/internal/platform/prompts/investigate.md b/internal/platform/prompts/investigate.md index fb7845061..e93f96e49 100644 --- a/internal/platform/prompts/investigate.md +++ b/internal/platform/prompts/investigate.md @@ -17,13 +17,15 @@ A trend is a query, not an estimate. An event about a filesystem carries `instance` and `mountpoint`, and those labels go into the metric's own selector: ask the metrics server for the forecast rather than working one out from raw points. Prometheus answers `predict_linear` through `query`, and with -node exporter's filesystem metrics the seconds until the disk is full are +node exporter's filesystem metrics the hours until the disk is full are -predict_linear(node_filesystem_avail_bytes{instance="",mountpoint=""}[6h], 0) / deriv(node_filesystem_avail_bytes{instance="",mountpoint=""}[6h]) + / 3600 -Report the figure that query returns and how long it is. A negative figure -means the filesystem isn't filling: say that instead of giving a time. +Report the figure that query returns: it is already in hours, so don't convert +it. A negative figure means the filesystem isn't filling, so say that instead +of giving a time. When you're done, reply with your findings in plain text: