Strengthen metric name structure according to Prometheus guidance

This commit is contained in:
2024-07-16 18:59:42 -07:00
parent 8ce14c58a4
commit 958a4e2d0e

View File

@@ -91,7 +91,7 @@ struct __attribute__((__visibility__("default"))) ConflictSet {
/** Experimental! */
struct MetricsV1 {
/** A null-terminated string with static lifetime. Identifies this metric.
* Matches the regex [a-zA-Z_:][a-zA-Z0-9_:]*
* Matches the regex [a-zA-Z][a-zA-Z0-9_]*
*/
const char *name;
/** A null-terminated string with static lifetime. Describes this metric.