Skip to content

Add publish socket for on-device extension telemetry - #18

Open
yoctopidg3 wants to merge 1 commit into
avocado-linux:mainfrom
yoctopidg3:pidge/observability
Open

yoctopidg3 wants to merge 1 commit into
avocado-linux:mainfrom
yoctopidg3:pidge/observability

Conversation

@yoctopidg3

@yoctopidg3 yoctopidg3 commented Sep 4, 2026

Copy link
Copy Markdown

Part of the device observability change set — pairs with the tracking PR avocado-linux/avocado-os#50 and the meta-avocado feed PR.

What

Expose avocado-conn's internal MQTT outbox as a local ingest socket /run/avocado-conn/publish.sock, so on-device extensions (glances, logging) can push newline-delimited JSON onto the single authenticated MQTT session (event/{id}) instead of opening a second cloud connection. Downlink log_* / metrics_* commands route back through the socket.

Adds config (publish_socket, DownlinkConfig), agent wiring, docs, and unit + tokio socket integration tests.

Add /run/avocado-conn/publish.sock so extensions (e.g. glances) push
newline-JSON onto the single authenticated MQTT session instead of opening
their own cloud connection. Lines are normalized and forwarded to event/{id};
downlink log_*/metrics_* route back through the socket. Adds config
(publish_socket, DownlinkConfig), agent wiring, docs, and unit + tokio
socket integration tests.

Signed-off-by: Eilís 'pidge' Ní Fhlannagáin <pidge@baylibre.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant