Skip to main content

Module varlink_units

Module varlink_units 

Source
Expand description

§units module

All main systemd unit statistics. Counts of types of units, unit states and queued jobs. We also house service specific statistics and system unit states.

Constants§

METRICS_SOCKET_PATH

Functions§

apply_oneshot_dbus_override
Apply the oneshot health override to varlink-collected unit stats.
apply_oneshot_types
Recompute unhealthy for tracked units given resolved service types.
apply_unit_details
Collect per-unit detail over varlink: ServiceStats for the [services] list, the tracked timers, and the service types the oneshot health override needs.
fetch_oneshot_types
Look up Service.Type for each candidate over D-Bus.
get_unit_stats
parse_metrics
parse_one_metric
Parse state of a unit into our unit_states hash
select_oneshot_candidates
Select unit names whose health needs a service-type check.
update_unit_stats
Async wrapper that can update unit stats when passed a locked struct.