Data Model Overview
The BYOC Cluster Health system uses three StarRocks databases, each serving a distinct purpose.
| Database | Tables | Purpose |
|---|---|---|
metrics | 7 tables/views | Raw and aggregated cluster metrics, customer profiles |
byoc | 16 tables | Core entities: orgs, accounts, clusters, resources, billing |
alerts | 3 tables | Parsed Lark alert messages and daily recommendations |
Cross-Database Relationships
Key ID Patterns
Understanding the two ID formats is critical for writing correct JOINs:
| Format | Example | Used by |
|---|---|---|
Short alphanumeric biz_id | aorpc2fr3 | accounts, organizations |
UUID biz_id | f2f593e4-3880-... | clusters, resource, resource_node, billing_order |
account_idin child tables (clusters, bill_detail, metrics_table) referencesaccounts.biz_id(short form).region_idis a UUID that maps toregion_details.region_idfor display names.cluster_idin metrics and alerts is a UUID matchingclusters.biz_id.