atlasbot: add more opinionated hardware insight
This commit is contained in:
parent
4e51cf6b6c
commit
c4ad82f122
@ -16,7 +16,7 @@ spec:
|
||||
labels:
|
||||
app: atlasbot
|
||||
annotations:
|
||||
checksum/atlasbot-configmap: manual-atlasbot-56
|
||||
checksum/atlasbot-configmap: manual-atlasbot-57
|
||||
vault.hashicorp.com/agent-inject: "true"
|
||||
vault.hashicorp.com/role: "comms"
|
||||
vault.hashicorp.com/agent-inject-secret-turn-secret: "kv/data/atlas/comms/turn-shared-secret"
|
||||
|
||||
@ -1721,7 +1721,9 @@ def _format_insight_text(key: str, text: str) -> str:
|
||||
.strip()
|
||||
.strip(".")
|
||||
)
|
||||
return f"mixed hardware stack ({counts}), which is unusual for a homelab."
|
||||
detail = f"mixed hardware stack ({counts})"
|
||||
flavor = "It blends low-power Pis with Jetson accelerators and a couple of AMD64 nodes."
|
||||
return f"{detail}. {flavor}"
|
||||
if key == "postgres":
|
||||
detail = cleaned.replace("Postgres is at ", "")
|
||||
return f"Postgres is at {detail}; that suggests moderate load."
|
||||
@ -1732,9 +1734,9 @@ def _format_insight_text(key: str, text: str) -> str:
|
||||
return cleaned + "."
|
||||
if key in ("cpu", "ram"):
|
||||
suffix = (
|
||||
" That likely marks the busiest workload right now."
|
||||
" If you're chasing hotspots, that's the busiest workload right now."
|
||||
if key == "cpu"
|
||||
else " That box is carrying the heaviest memory load."
|
||||
else " That box is carrying the heaviest memory load right now."
|
||||
)
|
||||
return cleaned + "." + suffix
|
||||
return cleaned + "."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user