Hello!
I am about to use several inputs.mqtt_consumer and one output just like this
[[inputs.mqtt_consumer]]
name_override = "rx0"
servers = ["localhost:1883"]
## MQTT QoS, must be 0, 1, or 2
qos = 0
## Topics to subscribe to
topics = [
"topic0/+/rx",
]
client_id = "telegraf"
data_format = "json"
tag_keys = [
"field0",
"field1"
]
[[inputs.mqtt_consumer]]
name_override = "rx1"
servers = ["localhost:1883"]
## MQTT QoS, must be 0, 1, or 2
qos = 0
## Topics to subscribe to
topics = [
"topic1/+/rx",
]
client_id = "telegraf"
data_format = "json"
tag_keys = [
"field2",
"field3",
]
[[outputs.influxdb]]
urls = ["http://localhost:8086"] # required
database = "database0" # required
## Retention policy to write to. Empty string writes to the default rp.
retention_policy = ""
write_consistency = "any"
timeout = "5s"
But for some reasons i see only items in measurement rx0 of database0
and there are no any for measurement rx1 of database0.
I have the data on "topic1/+/rx" tested by mosquitto_sub -t "topic1/+/rx" -v
Any ideas?
--
Remember to include the version number!
---
You received this message because you are subscribed to the Google Groups
"InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit
https://groups.google.com/d/msgid/influxdb/faede3be-9fed-454e-9418-8276cc68e018%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.