Repository navigation
Releases
v0.1.0
rtcollector-qnx 0.1.0
The first release of rtcollector for QNX 8.0: a telemetry collector written in C that runs on the QNX target and sends what it collects to Arc (columnar MessagePack over HTTP) or to an MQTT broker. It is built so that it is never the reason a real-time deadline is missed: fixed buffers allocated at start, and nothing on the path a measured program waits on that allocates, blocks or logs.
Get started: docs/getting-started.md,
from a blank SD card to data in Arc on a Raspberry Pi 4.
What it collects
trace: from the QNX kernel trace, per thread, the time between becoming ready and running (p50, p99, max), wakeups, run time, preemptions and priority; context switches and interrupts per CPU; interrupts per vector. Events are applied in time order across CPUs, so a thread that wakes on one CPU and runs on another is measured correctly.cpu: usage per CPU and in total, from the run time of the kernel's idle threads.mem,processes: memory, process and thread counts.rmgr:/dev/rtcollector, where any program on the target publishes its own metrics as line protocol, at the cost of one memory copy.internal: the collector's own counters; every dropped record is counted.
Tested on
- Raspberry Pi 4 Model B, QNX 8.0 Quick Start Target Image (
aarch64le). - QEMU x86_64, QNX 8.0 (
x86_64).
Requirements on the target
libcurl.so.12, libsocket.so.4, libm.so.3, libc.so.6, libgcc_s.so.1 (on the QNX 8.0 images). The trace input also needs libtracelog.so.1 (on the images) and libtraceparser.so.1, which you copy from your QNX SDP 8.0 to /usr/lib. Without them the other inputs run and trace reports itself unavailable.
Licence
The source is under the Apache License 2.0. The binaries are built with the QNX SDP 8.0 under QNX's non-commercial licence (QNX Everywhere); QNX software on your target is licensed to you by QNX under its own terms. Apart from the toolchain's C start-up code and the SDP's build of zstd, the binaries contain no QNX code. QNX is a trademark of BlackBerry Limited; this project is not affiliated with or endorsed by BlackBerry or QNX. See NOTICE.
Built from commit 12d83a219a41efda181aec806c84047751b1c10d with the QNX SDP 8.0 on Basekick's build host.
The binaries are also attached on their own (rtcollector-0.1.0-qnx8.0-<arch>, with NOTICE.txt); the tarballs add the start script, example config and header. Getting started: docs/getting-started.md.
Source: Apache-2.0. The binaries are built with the QNX SDP 8.0 under QNX's non-commercial licence (QNX Everywhere); QNX software on your target is licensed to you by QNX under its own terms (see NOTICE).
1741084b43877dc5d840c3a34ffe9da967b43267aa8df6fa12a9a4fbcaeaa2ad rtcollector-0.1.0-qnx8.0-aarch64le.tar.gz
8939f956683c0c85a45609ff005e0b9f788dff77c3b9e654b2e7b40ff06d7aa1 rtcollector-0.1.0-qnx8.0-x86_64.tar.gz
090058f5e2c9b3c277d42263aa350ec3e316e51f43c2c59e27026772dd20e9b2 rtcollector-0.1.0-qnx8.0-aarch64le
1ecb06c7fa8dadf08ed79376337c62265022d97839dd95b0430ded9e534d6dff rtcollector-0.1.0-qnx8.0-x86_64
00b3d246b9175a364bd7773a776a89d90f9a79ecc5053966d340682c6482900e NOTICE.txt