ros2_pulse (GitHub - TanayK07/ros2_pulse: ros2 topic hz for every topic at once, without subscribing. Rates, gaps and node liveness, intra-process included, on stock ROS 2 binaries. · GitHub) is an LD_PRELOAD probe that counts publishes and receives inside your existing nodes, so you get the rate of every topic in every process without starting a subscriber. Linux only.
0.9 is now in ros2-testing for Humble, Jazzy, Kilted and Lyrical, and reaches the main repo at the next sync:
sudo apt install ros-$ROS_DISTRO-ros2-pulse
What changed since the 0.7 debs:
- DDS domain on every rate. Each window and each Prometheus series carries the ROS_DOMAIN_ID the process actually joined, so when several robots or sims share a network you can tell which one a rate came from.
- Humble: bag record and generic subscriptions counted.
ros2 bag record,create_generic_subscriptionand rclpyraw=Truesubscribers had no receive rate on Humble. They do now. - pulse-check is calmer in CI. It judges each log by its complete windows only, so a process that lived a few seconds or exited early no longer fails the whole run.
- ROS_TOPIC_STATS_OUTPUT_DIR. One directory for the per process logs, so parallel test runs stay apart without moving TMPDIR.
- Prometheus alert rules, tested with promtool, and the exporter’s default port is now 10061.
- Lyrical builds and runs the full test suite in CI.
If you try it and something looks off, an issue or a reply here helps a lot.