opentelemetry: auto-generate (or at least nudge) metrics
Is your feature request related to a problem? Please describe.
roachprod/opentelemetry/cockroachdb_metrics.go is not auto-generated. When new metrics are added, the author has to remember to also edit this file. In scale testing, we found that metrics were not available because this step is likely ~always missed.
Describe the solution you'd like
Ideally: auto-generate this file whenever metrics change. Tolerable: fail CI unless author somehow acknowledges that they do not wish to make a change to this file (for example, hash the metrics names and require hash to match a hash stored near that file. It's ugly, but will do the trick).
Describe alternatives you've considered
Additional context
https://cockroachlabs.slack.com/archives/C063CP41TG9/p1749635609193779?thread_ts=1749635609.193779&cid=C063CP41TG9
Jira issue: CRDB-51865
cc @cockroachdb/test-eng
This is causing friction again here while trying to reproduce a customer issue on a roachprod cluster (and trying not use DD instead of internal timeseries).
Also related discussion to what the contents of that file should be, so it isn't obvious how to backfill it: https://cockroachlabs.slack.com/archives/C074TGF3QVC/p1757621553460859
@Abhinav1299 I am assigning this issue to make sure that we address this issue with out automated metrics propagation improvements.
This issue has multiple T-eam labels. Please make sure it only has one, or else issue synchronization will not work correctly.
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.