hub v0.131.0: the tunnel status is true (R-841: three states, tunnel_down after two not_running reports, unknown never alarms); OS updates per layer (guest/host separate approved sets, host candidate leaves out kernel/boot/firmware, host_release in the box block), the fleet view and four hourly operator alarms (11 §8 steps 3+4); red-proofs in audits/os-host-lane-2026-10-04
gates / gates (push) Successful in 30s
gates / gates (push) Successful in 30s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
1 parent
0ed2e8de4c
commit
88b0a2e761
24 files changed
+1254
-149
No files matched your search
@@ -79,6 +79,7 @@ type hostVitals struct {
|
||||
MemoryPercent float64
|
||||
DiskPercent float64
|
||||
CloudflaredStatus string
|
||||
CloudflaredDetail string // agent >= 0.141.0: why not_running (container state, exit code, readiness)
|
||||
}
|
||||
|
||||
// parseHostVitals extracts the vitals block from a host-report body. A missing/malformed
|
||||
@@ -96,6 +97,7 @@ func parseHostVitals(reportJSON string) hostVitals {
|
||||
} `json:"host"`
|
||||
Cloudflared struct {
|
||||
Status string `json:"status"`
|
||||
Detail string `json:"detail"`
|
||||
} `json:"cloudflared"`
|
||||
}
|
||||
if err := json.Unmarshal([]byte(reportJSON), &body); err != nil {
|
||||
@@ -105,6 +107,7 @@ func parseHostVitals(reportJSON string) hostVitals {
|
||||
v.MemoryPercent = body.Host.MemoryPercent
|
||||
v.DiskPercent = body.Host.DiskPercent
|
||||
v.CloudflaredStatus = body.Cloudflared.Status
|
||||
v.CloudflaredDetail = body.Cloudflared.Detail
|
||||
return v
|
||||
}
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="label">Cloudflared</span>
|
||||
<span class="value">{{if .Vitals.CloudflaredStatus}}{{.Vitals.CloudflaredStatus}}{{else}}—{{end}}</span>
|
||||
<span class="value">{{if .Vitals.CloudflaredStatus}}{{.Vitals.CloudflaredStatus}}{{if .Vitals.CloudflaredDetail}} ({{.Vitals.CloudflaredDetail}}){{end}}{{else}}—{{end}}</span>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="label">Guests</span>
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
<td>{{if .HasReport}}{{formatFloat .Vitals.CPUPercent}}%{{else}}—{{end}}</td>
|
||||
<td>{{if .HasReport}}{{formatFloat .Vitals.MemoryPercent}}%{{else}}—{{end}}</td>
|
||||
<td>{{if .HasReport}}{{formatFloat .Vitals.DiskPercent}}%{{else}}—{{end}}</td>
|
||||
<td>{{if .Vitals.CloudflaredStatus}}{{.Vitals.CloudflaredStatus}}{{else}}—{{end}}</td>
|
||||
<td>{{if .Vitals.CloudflaredStatus}}{{.Vitals.CloudflaredStatus}}{{if .Vitals.CloudflaredDetail}} ({{.Vitals.CloudflaredDetail}}){{end}}{{else}}—{{end}}</td>
|
||||
<td>{{if .HasStorage}}{{formatFloat .WorstFillPct}}% <span class="text-muted">{{.WorstFillName}}</span>{{else}}—{{end}}</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
|
||||
Reference in new issue
Block a user