Skip to content

v0.8.0: prometheus alert rules, exporter on port 10061

Latest

Choose a tag to compare

@TanayK07 TanayK07 released this 02 Nov 14:15
· 2 commits to main since this release
2b362cb

pulse-top 0.7.0: pulse-export moves to port 10061, ships Prometheus alerting rules, and stops exporting leftover logs and duplicate warn series. Also carries pulse-top 0.6.1's lower Textual floor. The probe and pulse_bridge are unchanged.

Changed

  • pulse-export listens on port 10061 by default, not 9464. The
    Prometheus default-port list
    gives 9464 to the OpenTelemetry Node.js exporter, so the two could not run on one host with
    their defaults. The exporter range 9100-9999 is full, and 10061 is the next free port in the
    10000+ block that continues it. To keep an existing scrape config, pass --port 9464.
    examples/grafana/ now publishes and scrapes 10061. A changed default, so pulse-top goes to
    0.7.0, not 0.6.2.
  • Textual floor lowered from 8.2.7 to 2.0 (issue #71), released as pulse-top 0.6.1 on
    2026-10-21.
    Every Textual from 4.1
    on requires pygments>=2.19.2, so on Ubuntu 24.04 pip install --break-system-packages
    replaced Debian's python3-pygments (2.17.2). Textual 2.0 to 4.0 need only rich>=13.3.3, which
    Debian's python3-rich (13.7.1) satisfies; install with "textual<4.1" there to keep both. The
    terminal theme falls back to Textual's pre-8.2.5 name for it (textual-ansi). CI runs the
    suite on the floor and on the Ubuntu 24.04 set as well as on the latest Textual.
  • pulse-top installs with pipx in the docs. pulse-top imports nothing from ROS, so the README,
    the docs.ros.org guide and docs/EXPORT.md now lead with pipx install ros2-pulse-top (in apt on
    22.04 and 24.04), with uv tool install, a ros:<distro> container recipe and the capped
    system-pip line as alternatives, instead of a bare pip3 install.

Added

  • Prometheus alerting rules for pulse-export in examples/prometheus/ros2_pulse_alerts.yml:
    the probe's topic_rate, topic_gap and node_missing warns, a warn that keeps coming back
    (info), a recv_lag deficit, a topic that stopped publishing while its process still writes
    windows, a process that stopped writing windows (warning), and pulse-export itself down.
    ros2_pulse_alerts_test.yml tests them on synthetic series, and a new CI job runs
    promtool check rules and promtool test rules (Prometheus 3.5.0) and checks the compose
    example's config. A pytest checks every metric and label the rules use against pulse-export's
    metric catalogue. examples/grafana/ loads the rules and evaluates them every 5 s.
    docs/EXPORT.md has a new Alerting section.
  • The RMW matrix runs in CI. .github/workflows/rmw-matrix.yml runs
    test/rmw/run_rmw_matrix.sh on humble, jazzy and kilted when the probe or the matrix changes,
    and on main. The script gains a rmw_zenoh leg with Zenoh shared memory that fails unless a
    pool-sized shared-memory segment shows up and no process logs a ShmProvider error.
  • README: a "Used with" section (ros2_data_collection, ros2-kubernetes-lab).

Fixed

  • pulse-export no longer scrapes logs of exited processes as live. The follower replays every
    matching log on attach and the probe never deletes its log, so on each start pulse-export
    exported one leftover topic_freq.<pid>.log per process of every earlier run with its last
    rates and an age of 0, until it forgot them five minutes later. It now skips a log whose mtime
    is older than the forget horizon (--once still reads any log). It also forgets a process on
    its jsonl exit window ("partial": true after another window), as pulse_bridge's
    /diagnostics already did, and keeps a process for four window periods when that is longer
    than five minutes, so a slow window is not forgotten between two flushes.
  • pulse-export no longer repeats a ros2_pulse_warn_active series in one scrape. The probe's
    warns carry no side or transport, so a spec with a pub and a recv rule on one topic (or an
    inter and an intra one) that both warned in a window gave two samples with the same labels,
    and Prometheus rejects a scrape with a duplicate series. Each label set is now one sample, in
    the scrape and in the OTLP push, and ros2_pulse_warns_total still counts every warn read. A
    node listed twice in the spec's nodes: did the same to warn_active and node_up.
  • examples/grafana/README.md said the probe must log jsonl. pulse-export reads the default
    text format too.