]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: enable systemd-report-basic.socket by default
authorMichael Vogt <michael@amutable.com>
Fri, 8 May 2026 14:37:52 +0000 (16:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 11 May 2026 15:09:14 +0000 (17:09 +0200)
In https://github.com/systemd/systemd/pull/41688 we merged metrics
and facts for systemd-report. However while some metric sources
are enabled by default (like `io.systemd.{Manager,Network}`) the
`io.systemd.Basic` service is not enabled by default.

This commit changes this and enables it by default.

We could also enable the systemd-report-cgroup.socket but that sends
a lot more data not sure that is a good default.

presets/90-systemd.preset
test/units/TEST-74-AUX-UTILS.report.sh

index cd7afb5df2523d36ec90932183c6c9823a7240db..4a668fb8ce93b32c0af2de0f783e7faa69d2c7f8 100644 (file)
@@ -31,6 +31,7 @@ enable systemd-networkd.service
 enable systemd-networkd-wait-online.service
 enable systemd-nsresourced.socket
 enable systemd-pstore.service
+enable systemd-report-basic.socket
 enable systemd-resolved.service
 enable systemd-sysext.service
 enable systemd-timesyncd.service
index 61d2b10d0b7c69875935fb2cd89c261f61e851c2..7475978336f14734f683e69df09efb8eb026840f 100755 (executable)
@@ -51,7 +51,7 @@ varlinkctl --more call /run/systemd/report/io.systemd.Network io.systemd.Metrics
 varlinkctl --more call /run/systemd/report/io.systemd.Network io.systemd.Metrics.Describe {}
 
 # test io.systemd.Basic Metrics
-systemctl start systemd-report-basic.socket
+[[ "$(systemctl is-enabled systemd-report-basic.socket)" == enabled ]]
 varlinkctl info /run/systemd/report/io.systemd.Basic
 varlinkctl list-methods /run/systemd/report/io.systemd.Basic
 varlinkctl --more call /run/systemd/report/io.systemd.Basic io.systemd.Metrics.List {}