mirror of
https://github.com/imjasonh/terraform-playground
synced 2026-07-06 23:12:22 +00:00
add dashboard
Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
parent
193bb7fdce
commit
d7d9657e6a
2 changed files with 45 additions and 0 deletions
35
driftlessaf/dashboard.tf
Normal file
35
driftlessaf/dashboard.tf
Normal file
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
@ -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 |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue