Files
zeekay 1b367e2b62 chore: rebase the tree onto upstream master
The tree was a debranded snapshot of upstream taken around 2026-02-20, and
upstream has moved about five months since. This replaces it with upstream
master, mechanically re-derived: bin/debrand does the rename, and the
pipeline and squashed migrations are restored from the shipped tree.

Not a merge. The previous import replaced the tree wholesale in a single
commit, so there is no shared content history to merge against. Reproducing
the rename on the new tree is what actually converges.

What survives: .hanzo/workflows, the Dockerfiles and bin/docker* entrypoints,
compose files, LLM.md, and insights/migrations. The squashed initial
migration is load-bearing — the live database records it by name, so
upstream's ~918 individual migrations cannot come back.

Nine products are dropped as unreferenced. Twenty-one more that we do not run
are kept anyway because the core app still imports them; unpicking those is a
refactor and does not belong in a rebase.

This base does not build yet, and the reasons are not in the rename:
upstream now wants Python 3.13.13 against our 3.12.12 and Django 5.2 against
our 4.2, and the dependency manifests still name upstream packages that we
republish under our own names. Those are decisions, not renames.
2026-08-01 15:44:40 -07:00

81 lines
3.2 KiB
Terraform

resource "insights_dashboard_layout" "slo_monitoring" {
dashboard_id = insights_dashboard.slo_monitoring.id
tiles = concat(
# Row 0 (y=0, h=5): Success rate + volume table.
[
{
insight_id = insights_insight.slo_success_rate.id
layouts_json = jsonencode({
sm = {
h = 5, i = "success_rate", w = 8, x = 0, y = 0
minH = 2, minW = 2, moved = false, static = false
}
})
},
{
insight_id = insights_insight.slo_volume.id
layouts_json = jsonencode({
sm = {
h = 5, i = "volume", w = 4, x = 8, y = 0
minH = 2, minW = 2, moved = false, static = false
}
})
},
{
text_body = "**Success rate** is a 28-day rolling window showing the percentage of successful operations. **Burn rate** shows how fast you're consuming your error budget on a logarithmic scale — the Budget rate line marks sustainable consumption, crossing 100x burn indicates an active incident. **Duration** shows p50/p95/p99 operation latency in seconds."
layouts_json = jsonencode({
sm = {
h = 1, i = "text", w = 12, x = 0, y = 5
minH = 1, minW = 1, moved = false, static = false
}
})
},
],
# Per-operation sections: header + burn rate (left) + duration (right) per region.
# Each section: header (h=1) + N regions * row_height (h=3).
# Base y = 6 (after success rate h=5 + text h=1).
# NOTE: y offset formula assumes all operations have the same number of regions.
flatten([
for op_idx, op_key in sort(keys(local.slo_operations)) : concat(
# Section header
[{
text_body = "## ${local.slo_operations[op_key].name}"
layouts_json = jsonencode({
sm = {
h = 1, i = "header_${op_key}", w = 12, x = 0,
y = 6 + op_idx * (1 + length(local.slo_operations[op_key].regions) * 3)
minH = 1, minW = 1, moved = false, static = false
}
})
}],
# Burn rate tiles (left half)
[
for reg_idx, region in sort(local.slo_operations[op_key].regions) : {
insight_id = insights_insight.slo_burn_rate["${op_key}_${lower(region)}"].id
layouts_json = jsonencode({
sm = {
h = 3, i = "burn_${op_key}_${lower(region)}", w = 6, x = 0,
y = 6 + op_idx * (1 + length(local.slo_operations[op_key].regions) * 3) + 1 + reg_idx * 3
minH = 2, minW = 2, moved = false, static = false
}
})
}
],
# Duration tiles (right half)
[
for reg_idx, region in sort(local.slo_operations[op_key].regions) : {
insight_id = insights_insight.slo_duration["${op_key}_${lower(region)}"].id
layouts_json = jsonencode({
sm = {
h = 3, i = "dur_${op_key}_${lower(region)}", w = 6, x = 6,
y = 6 + op_idx * (1 + length(local.slo_operations[op_key].regions) * 3) + 1 + reg_idx * 3
minH = 2, minW = 2, moved = false, static = false
}
})
}
],
)
]),
)
}