taosdata / TDengine

High-performance, scalable time-series database designed for Industrial IoT (IIoT) scenarios
https://tdengine.com
GNU Affero General Public License v3.0
23.34k stars 4.85k forks source link

how to receive mq data? #632

Closed qaiofeng closed 5 years ago

qaiofeng commented 5 years ago

可以说下流程或代码吗

qaiofeng commented 5 years ago

[[outputs.http]] [[inputs ]] 我这儿这么配置呢

qaiofeng commented 5 years ago

telegraf如何与LMQ连接,在配置文件中telegraf.conf如何配置?

qaiofeng commented 5 years ago

json格式的数据

qaiofeng commented 5 years ago

是的,阿里云的,

qaiofeng commented 5 years ago

[[inputs.mqtt_consumer]] servers = ["http://"] topics = [to] connection_timeout = "30s" max_undelivered_messages = 1000 persistent_session = false client_id = "3" username = "" password = "" insecure_skip_verify =false data_format = "json" 这么配置对吗

qaiofeng commented 5 years ago

配置了,telegraf会有社么显示

qaiofeng commented 5 years ago

配置已经没问题了 但web页面并没有出现connection

qaiofeng commented 5 years ago

在这个过程当中,我需要用到influxdb吗

qaiofeng commented 5 years ago

[[outputs.http]] [[outputs.http]] url = "http://127.0.0.1:6020/telegraf/udb" method = "POST" username = "root" password = "taosdata" data_format = "json" json_timestamp_units = "1ms"

[agent] hostname = "gsl" metric_batch_size = 30 interval = "10s" debug = true omit_hostname = false

hostname 我怎么确定其唯一性,我的设备有好多

qaiofeng commented 5 years ago

接下来我该怎么让数据接通呢,目前的话我没有收到mq传过来的数据

qaiofeng commented 5 years ago

没有文件生成

qaiofeng commented 5 years ago

加了