Some checks failed
build-images / web (push) Has been cancelled
vision2026-ci / Python SDK resource tests (push) Has been cancelled
build-images / api (push) Has been cancelled
build-images / worker-gpu (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Has been cancelled
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Has been cancelled
codeql / Analyze (javascript-typescript) (push) Has been cancelled
codeql / Analyze (python) (push) Has been cancelled
perf / API hot-path micro-smoke (budgeted) (push) Has been cancelled
perf / Desktop engine crates (release build check) (push) Has been cancelled
vision2026-ci / API phase modules (ruff + pytest) (push) Has been cancelled
vision2026-ci / Alembic upgrade + drift check (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Has been cancelled
Paid, hosted product at menivor.com, now retired as a company project. Fresh squashed history of the cleaned working tree (secret-scanned, no .env, no customer data, no outreach logs). Built on MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
73 lines
2.1 KiB
HCL
73 lines
2.1 KiB
HCL
# Observability — Grafana Cloud stack (Prometheus/Loki/Tempo) + a Sentry project.
|
|
# The k8s OTel collector (infra/k8s addons) ships metrics/logs/traces here; the
|
|
# SLO/alert catalog lives in infra/observability/slo.yaml and is provisioned as
|
|
# Grafana alert rules.
|
|
terraform {
|
|
required_providers {
|
|
grafana = { source = "grafana/grafana", version = "~> 2.0" }
|
|
}
|
|
}
|
|
|
|
variable "grafana_url" { type = string }
|
|
variable "slo_config_path" {
|
|
type = string
|
|
default = "../../../observability/slo.yaml"
|
|
}
|
|
|
|
# A folder for ReelForge dashboards + alert rules.
|
|
resource "grafana_folder" "reelforge" {
|
|
title = "ReelForge"
|
|
}
|
|
|
|
# The wallet success-only-billing invariant as a Grafana alert (mirrors slo.yaml).
|
|
resource "grafana_rule_group" "invariants" {
|
|
name = "reelforge-invariants"
|
|
folder_uid = grafana_folder.reelforge.uid
|
|
interval_seconds = 60
|
|
|
|
rule {
|
|
name = "wallet-success-only-billing"
|
|
condition = "A"
|
|
data {
|
|
ref_id = "A"
|
|
relative_time_range {
|
|
from = 300
|
|
to = 0
|
|
}
|
|
datasource_uid = "prometheus"
|
|
model = jsonencode({
|
|
expr = "increase(wallet_debit_micros{reason=\"generation\"}[5m]) > 0 and increase(render_jobs{state=\"COMPLETED\"}[5m]) == 0"
|
|
})
|
|
}
|
|
for = "2m"
|
|
annotations = {
|
|
summary = "paid debit with no completed render — possible pay-double / billing bug"
|
|
}
|
|
labels = { severity = "page" }
|
|
}
|
|
|
|
# Same invariant for the unified media gateway (/images + /videos).
|
|
rule {
|
|
name = "media-gateway-success-only-billing"
|
|
condition = "A"
|
|
data {
|
|
ref_id = "A"
|
|
relative_time_range {
|
|
from = 300
|
|
to = 0
|
|
}
|
|
datasource_uid = "prometheus"
|
|
model = jsonencode({
|
|
expr = "increase(wallet_debit_micros{reason=\"gateway\"}[5m]) > 0 and increase(media_gateway_jobs{status=\"completed\"}[5m]) == 0"
|
|
})
|
|
}
|
|
for = "2m"
|
|
annotations = {
|
|
summary = "gateway debit with no completed generation — possible pay-without-output billing bug"
|
|
}
|
|
labels = { severity = "page" }
|
|
}
|
|
}
|
|
|
|
output "folder_uid" { value = grafana_folder.reelforge.uid }
|