roachtest: expose an API to label (cluster) VMs with name of executing test #104366
Labels
A-testing
Testing tools and infrastructure
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-testeng
TestEng Team
For observability purposes, we need to map a test to the cluster where it was executed. Roachprod already supports custom VM labels across all cloud providers. Hence, it should be straightforward to expose an internal API, that's accessible to roachtest.
Note that a cluster may be reused, hence care should be taken to ensure the label is removed upon test completion.
Prometheus config. should be updated to scrape the new label.
In addition to making it easy to pull up the metrics for a given test run in Grafana, this would also support fine-grained billing attribution (by test name).
Informs: #98658
Jira issue: CRDB-28489
The text was updated successfully, but these errors were encountered: