1.17.0
This release introduces the new memfaultctl write-metrics
command
as well as some important bugfixes.
Added
memfaultctl write-metrics
, which allows users to write
metrics tomemfaultd
from a script or shell by specifying
them as arguments to the command in the formKEY=VALUE
.- 2 new built-in system metrics under the new
diskstats
metric category. These metrics follow the naming pattern
diskstats/<device name>/reads_per_second
and
diskstats/<device name>/writes_per_second
where
<device name>
is the name of a device listed in
/proc/diskstats
. The list of devices monitored
can be configured with themetrics.system_metric_collection.diskstats
configuration field.
Changed
- The log message emitted when the MAR cleaner
encounters an invalid MAR entry in the MAR
staging area has been lowered fromWARN
level
toDEBUG
level. - A log message emitted when the configured
high_resolution_telemetry.max_samples_per_minute
rate limit is violated has been lowered fromWARN
level toDEBUG
. This is to avoid repeatedly
logging the same message at a high frequency
when the system is sending more readings than
permitted.
Fixed
- All deltas calculated based on a current and previous
counter from procfs now take potential overflow into account. - Fixed a sequencing issue with the cleaning of the MAR directory
concerning an edge case where logs would fail to recover on
devices that are near their disk space or inode quotas.
This would result in stranded log files that would not
get deleted or uploaded to Memfault until there is enough
space to recover them.