]> git.ipfire.org Git - thirdparty/systemd.git/commit
report: tighten rules on metrics names
authorLennart Poettering <lennart@amutable.com>
Wed, 18 Feb 2026 13:43:07 +0000 (14:43 +0100)
committerLennart Poettering <lennart@amutable.com>
Fri, 20 Feb 2026 07:25:12 +0000 (08:25 +0100)
commitec2cd403f42c6a6a31b0adf3b94ae0acc9fd9add
treea6594541f1a670acbdeb8d87b93bcb8380b4904c
parent5617ebb096672b8284ffb02efe06e2577c6ba804
report: tighten rules on metrics names

Let's stay close to Varlink's naming rules and insist that metrics
prefixes must be valid varlink interface names, and suffixes are valid
varlink field names.

The former rule is clear: because a metric <x>.<y> can only be provided
by a varlink service <x>, it is obvious we should validate them the
same way. Validating the suffix via varlink field rules is not that
obvious, but I think it makes sense to stay close to Varlink naming
rules if we already started out at one place.
src/report/report.c