atlasbot: make insights sound more human
This commit is contained in:
parent
c4ad82f122
commit
79650616f1
@ -16,7 +16,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: atlasbot
|
app: atlasbot
|
||||||
annotations:
|
annotations:
|
||||||
checksum/atlasbot-configmap: manual-atlasbot-57
|
checksum/atlasbot-configmap: manual-atlasbot-58
|
||||||
vault.hashicorp.com/agent-inject: "true"
|
vault.hashicorp.com/agent-inject: "true"
|
||||||
vault.hashicorp.com/role: "comms"
|
vault.hashicorp.com/role: "comms"
|
||||||
vault.hashicorp.com/agent-inject-secret-turn-secret: "kv/data/atlas/comms/turn-shared-secret"
|
vault.hashicorp.com/agent-inject-secret-turn-secret: "kv/data/atlas/comms/turn-shared-secret"
|
||||||
|
|||||||
@ -1729,9 +1729,9 @@ def _format_insight_text(key: str, text: str) -> str:
|
|||||||
return f"Postgres is at {detail}; that suggests moderate load."
|
return f"Postgres is at {detail}; that suggests moderate load."
|
||||||
if key == "pods":
|
if key == "pods":
|
||||||
detail = cleaned.replace("There are ", "")
|
detail = cleaned.replace("There are ", "")
|
||||||
return f"Pods look stable with {detail}."
|
return f"Pods look steady ({detail}); the workload mix looks healthy."
|
||||||
if key == "availability":
|
if key == "availability":
|
||||||
return cleaned + "."
|
return cleaned + " That suggests the cluster is stable right now."
|
||||||
if key in ("cpu", "ram"):
|
if key in ("cpu", "ram"):
|
||||||
suffix = (
|
suffix = (
|
||||||
" If you're chasing hotspots, that's the busiest workload right now."
|
" If you're chasing hotspots, that's the busiest workload right now."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user