cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

opentelemetry: auto-generate (or at least nudge) metrics

Open tbg opened this issue 1 year ago • 5 comments

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

tbg avatar Jun 26 '25 07:06 tbg

cc @cockroachdb/test-eng

blathers-crl avatar Sep 16 '25 02:09 blathers-crl

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).

tbg avatar Oct 09 '25 14:10 tbg

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

tbg avatar Oct 09 '25 15:10 tbg

@Abhinav1299 I am assigning this issue to make sure that we address this issue with out automated metrics propagation improvements.

aa-joshi avatar Oct 09 '25 15:10 aa-joshi

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.

blathers-crl avatar Oct 09 '25 15:10 blathers-crl