Skip to content

Add the MQTT statistics plugin (community) - #5

Closed
connorjfarrell wants to merge 1 commit into
TrunkRecorder:mainfrom
connorjfarrell:add-mqtt
Closed

connorjfarrell wants to merge 1 commit into
TrunkRecorder:mainfrom
connorjfarrell:add-mqtt

Conversation

@connorjfarrell

Copy link
Copy Markdown

Adds MQTT statistics (mqtt) v0.1.0, a community plugin that publishes each system's state and every recorded call to an MQTT broker, for Home Assistant (with auto-discovery) and Telegraf/Grafana.

  • Repository: https://github.com/connorjfarrell/trunk-plugin-mqtt (MIT), release v0.1.0
  • Built from the template's release workflow: four platforms, SHA256SUMS, build provenance.
  • ./check plugins/mqtt.json passes locally; index.json rebuilt by add-release.
  • It subscribes to status, call.start and call.concluded, keeps no call files, and reports every concluded call as skipped, so it never holds a call's files. It only connects to the broker the user configures.
  • Reviewed on its own repo (Copilot, 5 rounds; CodeRabbit), with unit tests and an end-to-end test against a real Mosquitto broker.

🤖 Generated with Claude Code

@connorjfarrell
connorjfarrell requested a review from a team as a code owner October 14, 2026 14:19
@taclane

taclane commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

FYI, I was planning on getting a rust port of the previous plugin into the official org repo.
It's presently staged at https://github.com/taclane/trunk-plugin-mqtt

Let me know if there's any way to help reconcile the two, but expect that there will be an official MQTT plugin shortly. Primary concerns are keeping the same conventions as the prior MQTT plugin wherever possible (messaging, keys, flow, etc...).

@connorjfarrell

Copy link
Copy Markdown
Author

Oh, good to know. I'll look at that and see if there's any additional features that I'd added that aren't in your staged version and work on porting those over to you. Is there a roadmap or somewhere that things are being kept track of so that I don't accidentally do something conflicting w/ work from one of y'all?

@connorjfarrell

Copy link
Copy Markdown
Author

Closing this: taclane/trunk-plugin-mqtt is the MQTT plugin the project is working with, and it covers more than this one does. Sorry for the noise.

@taclane

taclane commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Closing this: taclane/trunk-plugin-mqtt is the MQTT plugin the project is working with, and it covers more than this one does. Sorry for the noise.

@connorjfarrell No worries. As I noted above, this is just a continuation of the previous MQTT plugin we supported for Trunk Recorder (and contributions are absolutely welcome). TR Pro is just constantly changing along a fast development cycle, and I've been waiting for things to slow down to get this published.

Just give me a moment to pull this up to the new 0.3 plugin SDK changes, then feel free to submit some PRs once it's in the official repo.

@connorjfarrell
connorjfarrell deleted the add-mqtt branch October 14, 2026 16:25
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.

2 participants