SpectatorD is a high-performance telemetry daemon that listens for metrics specified by a text-based protocol and publishes updates periodically to an Atlas aggregator service. It consolidates the logic required to apply common tagging to all metrics received, maintain metric lifetimes, and route metrics to the correct backend.
See the Atlas Documentation site for more details on SpectatorD.
- Start
spectatord
in debug mode (--debug
) to send metrics to a dev stack of the Atlas aggregator, which will perform validation and return the correct HTTP status codes for payloads, then drop the metrics on the floor. Alternatively, you can also configure it to send metrics to/dev/null
. - Use the
metrics_gen
binary to generate and send a stream of metrics to a running spectatord binary. - Use the
perf-record
andperf-report
Linux utilities to measure the performance of the running binary. - The
udp_numbers.pl
script is used to automate runningmetrics_gen
with different kernel settings for UDP sockets.
# setup python venv and activate, to gain access to conan cli
./setup-venv.sh
source venv/bin/activate
# link clion default build directory to our build directory
ln -s cmake-build cmake-build-debug
./build.sh # [clean|clean --force|skiptest]
- CLion > Preferences > Plugins > Marketplace > Conan > Install
- CLion > Preferences > Build, Execution, Deploy > Conan > Conan Executable: $PROJECT_HOME/venv/bin/conan
When building locally on MacOS, you may see the following errors when running binaries compiled with ASAN:
malloc: nano zone abandoned due to inability to reserve vm space.
This warning can be turned off with export MallocNanoZone=0
(link).