Background
The SQL queries and alerts behind our two main dealbot dashboards live only in the BetterStack UI. Than means:
- No version history – we can't see what a query looked like last week or who change it.
- No review – query/alert changes ship with nobody else looking.
- No diffing or easy revert.
Proposal (deliberately minimal)
Mirror the chart queries and alerts in this repo and gate changes behind a PR. No new infra or automation right not.
- One-time-export of all chart queries + alerts from BetterStack into the repo.
- Every change to a chart query or alert goes through a PR with 1 approval from a teammate.
- After approval: apply the change in BetterStack, then merge the PR.
The win: reviewable, versioned, revertable queries and alerts.
In scope
The two main dashboards:
| Dashboard |
ID |
Charts |
Source |
| Operational |
618457 |
17 |
Infra Prod |
| Provider |
624265 |
49 |
Infra Staging |
Both their chart SQL and their alerts.
Proposed repo layout
docs/dashboards/
operational/
charts/<chart-name>.sql
alerts/<alert-name>.json
provider/
charts/<chart-name>.sql
alerts/<alert-name>.json
- One
.sql file per chart query.
- One JSON file per alert (threshold / condition / notification target diffs cleanly as structured data, not prose).
- Chart/alert files keyed by their stable Better Stack numeric ID (in the file or a small index) so we always know which live object a file maps to.
Workflow
open PR → 1 teammate approves → apply change in Better Stack → merge
main always reflects the last approved-and-applied state.
Tasks
Background
The SQL queries and alerts behind our two main dealbot dashboards live only in the BetterStack UI. Than means:
Proposal (deliberately minimal)
Mirror the chart queries and alerts in this repo and gate changes behind a PR. No new infra or automation right not.
The win: reviewable, versioned, revertable queries and alerts.
In scope
The two main dashboards:
618457624265Both their chart SQL and their alerts.
Proposed repo layout
.sqlfile per chart query.Workflow
mainalways reflects the last approved-and-applied state.Tasks
charts/& alerts ->alerts/docs/dashboards/README.md