Mam serwer synology na którym postawiłem influxdb.
Chciałbym, żeby wczytywał mi dane do bazy z brokera mqtt supla.
Niestety nie potrafię skonfigurować go poprawnie.
(MQTT Explorer działa bez zarzutów.)
Aktualnie (zanonimizowany) plik *.conf telegraf wygląda tak:
Code: Select all
# Configuration for telegraf agent
[agent]
interval = "10s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = ""
hostname = ""
omit_hostname = false
[[outputs.influxdb_v2]]
urls = ["http://312.10.0.108:8086"]
token = "Token_4_authentication"
organization = "W"
bucket = "W"
[[inputs.mqtt_consumer]]
servers = ["mqtt://mqttNR.supla.org:8883"]
topics = [
"supla/bardzodluginieczytelnynumer/devices/",
]
username = "username"
password = "password"
## Optional TLS Config
# tls_ca = "/etc/telegraf/ca.pem"
# tls_cert = "/etc/telegraf/cert.pem"
# tls_key = "/etc/telegraf/key.pem"
## Use TLS but skip chain & host verification
#insecure_skip_verify = false
data_format = "influx"
## Enable extracting tag values from MQTT topics
## _ denotes an ignored entry in the topic path
# [[inputs.mqtt_consumer.topic_parsing]]
# topic = ""
# measurement = ""
# tags = ""
# fields = ""
## Value supported is int, float, unit
# [[inputs.mqtt_consumer.topic.types]]
# key = type
Czy ktos spotkał się z takim problemem?
Co powinienem zmienić?
Za wszelkie wskazówki będę wdzięczny.
pozdrawiam
Michał
