influxdata / influxdata/telegraf

[outputs.mqtt] Allow setting last will and testament

Open
#16,046 1 comment 0 reactions 0 assignees View on GitHub
feature request help wanted size/m
Dominant language
Go
Stars
17.8k
Forks
5.8k
Avg merge
1d 20h
Merged PRs (30d)
161

Description

### Use Case

Bing able to set the last will and testament means that we can tell if telegraf has disconnected ungracefully from the mqtt broker on the subscriber side.

### Expected behavior

mqtt producer plugin has options to set the last will and testament topic/payload/retain/qos which are sent to the broker on connect.

### Actual behavior

These options don't exist yet.

### Additional info

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by locating the MQTT producer plugin and reviewing how its existing connection options are configured and sent to the broker. Done means the plugin supports last-will topic, payload, retain, and QoS options and sends them on connect; add or update coverage where the plugin's behavior is tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.