Add publish socket for on-device extension telemetry - #18
Open
yoctopidg3 wants to merge 1 commit into
Open
yoctopidg3 wants to merge 1 commit into
yoctopidg3 wants to merge 1 commit into
Conversation
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>
yoctopidg3
marked this pull request as ready for review
September 4, 2026 14:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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. Downlinklog_*/metrics_*commands route back through the socket.Adds config (
publish_socket,DownlinkConfig), agent wiring, docs, and unit + tokio socket integration tests.