You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[[inputs.mqtt_consumer]]
name_override = "qr_mqtt_message"servers = ["tcp://mosquitto:1883"]
topics = [
"<REDACTED>"
]
qos = 2persistent_session = falseclient_id = "telegraf_qr_code"data_format = "json_v2"
[[inputs.mqtt_consumer.json_v2]]
[[inputs.mqtt_consumer.json_v2.object]]
path = "message.data"tags = ["data"]
[[inputs.mqtt_consumer]]
name_override = "raw_mqtt_message"servers = ["tcp://mosquitto:1883"]
# Capture the content as a string since we do not know the format of it...data_format = "value"data_type = "string"# Capture all topics and store the topic as a tag with name "topic"...topics = ["#"]
topic_tag = "topic"qos = 2persistent_session = falseclient_id = "telegraf_generic"
[[outputs.influxdb_v2]]
urls = ["http://influxdb:8086"]
token = "${INFLUX_TOKEN}"organization = "test"bucket = "test_bucket"
Logs from Telegraf
/
System info
Linux danielfa-ThinkPad-T590 6.5.0-41-generic #41~22.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 3 11:32:55 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Docker
No response
Steps to reproduce
Clone the telegraf repo and checkout master or v.1.31.1
Run make build_tools
Run ./tools/custom_builder/custom_builder --config <path-to-config>
Run ./telegraf --config /tmp/t.conf
Expected behavior
Telegraf should be built with the correct plugins and run.
Actual behavior
One of the parsers are not built / found be the custom_builder. This seems to be since there are two inputs using the same plugin, and the scanner seems to only use one of them.
When running the custom build, only the parser from the second usage of the plugin is captured:
Relevant telegraf.conf
Logs from Telegraf
System info
Linux danielfa-ThinkPad-T590 6.5.0-41-generic #41~22.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 3 11:32:55 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Docker
No response
Steps to reproduce
master
orv.1.31.1
make build_tools
./tools/custom_builder/custom_builder --config <path-to-config>
./telegraf --config /tmp/t.conf
Expected behavior
Telegraf should be built with the correct plugins and run.
Actual behavior
One of the parsers are not built / found be the custom_builder. This seems to be since there are two inputs using the same plugin, and the scanner seems to only use one of them.
When running the custom build, only the parser from the second usage of the plugin is captured:
Note that
json_v2
parser was not captured.When running telegraf using the same config we get an error:
If I split the config file into two config files where each one is using one of the mqtt inputs, then both parsers are correctly detected:
Additional info
No response
The text was updated successfully, but these errors were encountered: