report: switch to "verbs" command line interface, and add 'describe-metrics'

Let's prepare for a future where the "systemd-report" tool can do more
than enumerate metrics: let's introduce our usual "verbs" style
interface.

Let's also add a second command right-away: "describe-metrics" shows the
description of the metrics.
This commit is contained in:
Lennart Poettering
2026-02-18 11:19:35 +01:00
parent 5344bede1e
commit 5046a12fbc
3 changed files with 86 additions and 20 deletions

View File

@@ -244,7 +244,7 @@ systemd-run --wait --pipe --user --machine testuser@ \
varlinkctl --more call "/run/user/$testuser_uid/systemd/io.systemd.Manager" io.systemd.Unit.List '{}'
# test report
systemd-report
systemd-report metrics
# test io.systemd.Network Metrics
varlinkctl info /run/systemd/report/io.systemd.Network