zerodds-monitor-cli
Tools — Monitoring. Command-line front end
zerodds-monitorfor the metrics registry of the ZeroDDS runtime.
- Source: tools/monitor
- API docs: docs.rs/zerodds-monitor-cli
zerodds-monitor-cli builds the binary zerodds-monitor. It starts
a DcpsRuntime on a domain, lets it run for a given time and then prints a
snapshot of the process-wide metrics registry, or serves the registry over HTTP as
Prometheus /metrics. Registry, Prometheus rendering and HTTP server come from
zerodds-monitor (crates/monitor). The
library part of this crate, zerodds_monitor_cli, holds the argument parser
(parse_args, Command, SnapshotArgs,
ServeArgs, SnapshotFormat, ParseError).
zerodds-monitor snapshot [-d DOMAIN] [--duration DUR] [-f text|prometheus]
zerodds-monitor serve [-d DOMAIN] [-a ADDR] [--duration DUR]
zerodds-monitor names
- Defaults: domain 0;
snapshotcollects for 5 s;servelistens on127.0.0.1:9991and runs until SIGINT or SIGTERM unless--durationis given. Durations are written as5,30s,2mor1h. namesprints a fixed list of 15 metric names fromzerodds_monitor::metric_names.- The configuration options shared with other ZeroDDS programs are accepted:
--config PATH,--set PATH=VALUE,--check-config. - Exit codes:
0success,2argument or configuration error,3DDS or I/O error.
Man page: zerodds-monitor.
Consumers
- No crate in the workspace depends on it.
Features
same-host-shm(default): enableszerodds-dcps/same-host-shm. Participants on the same host exchange unicast datagrams with the tool over a shared-memory channel instead of loopback UDP.ZERODDS_SAME_HOST_SHM=0turns it off at run time.
Status
std.src/lib.rshas noforbid(unsafe_code)attribute. Safety classification in the crate docs: COMFORT.- Builds the binary
zerodds-monitor. The binary hasdoc = false, because its rustdoc name would collide with the library ofcrates/monitor. - Test functions in the source: 7 in
src/lib.rs, 9 intests/cli_smoke.rs.
zerodds-monitor-cli
Werkzeuge — Überwachung. Kommandozeilen-Frontend
zerodds-monitorfür das Metrik-Register der ZeroDDS-Laufzeit.
- Quelle: tools/monitor
- API-Docs: docs.rs/zerodds-monitor-cli
zerodds-monitor-cli baut das Binary zerodds-monitor. Es startet
eine DcpsRuntime auf einer Domain, lässt sie eine vorgegebene Zeit laufen und
gibt dann einen Schnappschuss des prozessweiten Metrik-Registers aus oder stellt das Register
über HTTP als Prometheus /metrics bereit. Register, Prometheus-Ausgabe und
HTTP-Server stammen aus zerodds-monitor
(crates/monitor). Der Bibliotheksteil dieser Crate,
zerodds_monitor_cli, enthält den Argument-Parser (parse_args,
Command, SnapshotArgs, ServeArgs,
SnapshotFormat, ParseError).
zerodds-monitor snapshot [-d DOMAIN] [--duration DUR] [-f text|prometheus]
zerodds-monitor serve [-d DOMAIN] [-a ADDR] [--duration DUR]
zerodds-monitor names
- Voreinstellungen: Domain 0;
snapshotsammelt 5 s lang;servelauscht auf127.0.0.1:9991und läuft bis SIGINT oder SIGTERM, sofern--durationnicht angegeben ist. Dauern werden als5,30s,2moder1hgeschrieben. namesgibt eine feste Liste von 15 Metriknamen auszerodds_monitor::metric_namesaus.- Die mit anderen ZeroDDS-Programmen gemeinsamen Konfigurationsoptionen werden
angenommen:
--config PATH,--set PATH=VALUE,--check-config. - Exit-Codes:
0Erfolg,2Fehler in Argumenten oder Konfiguration,3DDS- oder E/A-Fehler.
Man-Page: zerodds-monitor.
Konsumenten
- Keine Crate im Workspace hängt davon ab.
Features
same-host-shm(Standard): schaltetzerodds-dcps/same-host-shmein. Participants auf demselben Host tauschen Unicast-Datagramme mit dem Werkzeug über einen Kanal im gemeinsamen Speicher aus statt über Loopback-UDP.ZERODDS_SAME_HOST_SHM=0schaltet das zur Laufzeit ab.
Status
std.src/lib.rshat kein Attributforbid(unsafe_code). Einstufung in der Crate-Dokumentation (safety classification): COMFORT.- Baut das Binary
zerodds-monitor. Das Binary hatdoc = false, weil sein rustdoc-Name mit der Bibliothek auscrates/monitorkollidieren würde. - Testfunktionen im Quelltext: 7 in
src/lib.rs, 9 intests/cli_smoke.rs.