-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Telegraf: remove unused mosquitto dependency #554
base: master
Are you sure you want to change the base?
Conversation
I really hate to be "All Mr Negative" twice in the space of 24 hours but I also can't endorse this proposed change. Let's work backwards. Q1: Why does Telegraf's service definition contain:
A1: Because of ❶ in the following:
Q2: How does A2: Because of line 4 in that file:
Q3: Why is that line there? A3: It is the direct descendent of line 171 in Graham Garner's original implementation. Q4: When did Graham Garner create that dependency? A4: November 2019. That's the initial commit, unmodified since. So, the way I see it is, every single IOTstack user who has ever used IOTstack to instantiate a Telegraf container has had a default configuration that assumes Telegraf is capable of subscribing to topics distributed by a broker responding on the URL I don't see how that logical chain meets any reasonable definition of "unused". The presence of It may not be a Telegraf dependency. But it's an IOTStack implementation of Telegraf dependency. The dependency is documented in the Telegraf documentation. If there are situations where it would be better for the Telegraf container to not have this linkage with Mosquitto then perhaps the documentation should be expanded to explain the how-to:
With the usual caveats that I'm not in charge of Jack Split, and that this is all just my 2¢ … 👎 |
a9b9512
to
11fcaff
Compare
Good point, docs updated with instructions to add this dependency back, if you use the the addition.
Umm.. that is an optional addition, not enabled by default. |
2bb2248
to
41c3f3e
Compare
Seems like remnant misconfiguration from the beginning. Fixes docker-compose.yml to be valid even if you don't choose mosquitto fron the menu. Added documentation about adding the mosquitto 'depends_on' back if you use the mqtt_consumer addition. Resolves SensorsIot#550
41c3f3e
to
bbcb34c
Compare
PR cleaned up to only include changes regarding the dependency. Other important Telegraf changes split into their own pull-requests. |
The
mosquitto
dependency for Telegraf is a misconfiguration.There is a mosquitto example for reading from from mosquitto (
.templates/telegraf/iotstack_defaults/additions/inputs.mqtt_consumer.conf
), but this is NOT enabled by default. As such there shouldn't be a default dependency either. Docs updated with instructions to add this dependency if you use the the addition.Reasons to remove the dependency:
Resolves #550