diff --git a/driftlessaf/dashboard.tf b/driftlessaf/dashboard.tf new file mode 100644 index 0000000..59d3efe --- /dev/null +++ b/driftlessaf/dashboard.tf @@ -0,0 +1,35 @@ +# Dashboards for the PR reconciler infrastructure + +module "pr-reconciler-dashboard" { + source = "chainguard-dev/common/infra//modules/dashboard/reconciler" + + project_id = var.project_id + name = "pr-logger" + + # Workqueue configuration (should match reconciler module settings) + max_retry = 100 + concurrent_work = 20 + + # Enable GitHub API metrics section since we call GitHub + sections = { + github = true + } + + notification_channels = [] + + labels = { + team = var.team + } +} + +module "pr-workqueue-dashboard" { + source = "chainguard-dev/common/infra//modules/dashboard/workqueue" + + name = "pr-logger-wq" + concurrent_work = 20 + max_retry = 100 + + labels = { + team = var.team + } +} diff --git a/driftlessaf/diagram.md b/driftlessaf/diagram.md index 5596f93..d618d0f 100644 --- a/driftlessaf/diagram.md +++ b/driftlessaf/diagram.md @@ -230,3 +230,13 @@ flowchart TB | Secret | Purpose | |--------|---------| | `driftlessaf-github-app-private-key` | GitHub App authentication | + +### Cloud Monitoring Dashboards (5) + +| Dashboard | Purpose | +|-----------|---------| +| `Reconciler: pr-logger` | PR reconciler metrics: workqueue state, error reporting, logs, HTTP/gRPC, GitHub API, resources | +| `Cloud Workqueue: pr-logger-wq` | Workqueue metrics: queue depth, processing rate, retries, latency | +| `github-events-recorder` | Event recorder metrics: Pub/Sub throughput, GCS writes | +| `driftless-github-events` | GitHub events trampoline metrics | +| `driftlessaf` | CloudEvent broker metrics |