Module dbus_stats

Module dbus_stats 

Source
Expand description

§dbus_stats module

Handle getting statistics of our Dbus daemon/broker

Structs§

CurMaxPair
Current/maximum resource pair as reported by dbus-broker’s UserAccounting. Note: dbus-broker stores the current value in inverted form; actual usage = max - cur.
DBusBrokerCGroupAccounting
Aggregated D-Bus resource accounting grouped by cgroup. Not directly present in dbus-broker stats; computed by summing peer stats that share a cgroup. Grouping by cgroup reduces metric cardinality while still identifying abusive clients.
DBusBrokerPeerAccounting
Per-peer resource accounting from dbus-broker’s PeerAccounting stats. Each peer represents a single D-Bus connection identified by a unique bus name.
DBusBrokerUserAccounting
Per-user aggregated D-Bus resource limits and usage from dbus-broker’s UserAccounting. Each entry tracks quota consumption across all connections belonging to a Unix user.
DBusStats
D-Bus daemon/broker statistics from org.freedesktop.DBus.Debug.Stats. Works with both dbus-daemon and dbus-broker; broker-specific fields are in separate maps.

Enums§

MonitordDbusStatsError

Functions§

parse_dbus_stats
Pull all units from dbus and count how system is setup and behaving
update_dbus_stats
Async wrapper than can update dbus stats when passed a locked struct