I am able to connect to my aws iot core mqtt broker. my telegraf configuration looks like below -
data_format = “xpath_protobuf”
xpath_protobuf_file = “vss_rel.proto”
xpath_protobuf_type = “Vehicle”
xpath_print_document = true
xpath_protobuf_import_paths = [“C:\Program Files\telegraf-1.30.1\Types”]
[[outputs.influxdb_v2]]
## The URLs of the InfluxDB cluster nodes.
## Multiple URLs can be specified for a single cluster, only ONE of the
## urls will be written to each interval.
## ex: urls = [“https://us-west-2-1.aws.cloud2.influxdata.com”]
urls = [“http://localhost:8086”]
## Token for authentication.
token = “”
## Organization is the name of the organization you wish to write to.
organization = “mgm”
## Destination bucket to write into.
bucket = “mybucker”
## The value of this tag will be used to determine the bucket. If this
## tag is not set the ‘bucket’ option is used as the default.
# bucket_tag = “”
## If true, the bucket tag will not be added to the metric.
# exclude_bucket_tag = false
## Timeout for HTTP messages.
timeout = “5s”
logs of telegraf -
2024-04-19T16:47:36Z I! Starting Telegraf 1.30.1 brought to you by InfluxData the makers of InfluxDB
2024-04-19T16:47:36Z I! Available plugins: 233 inputs, 9 aggregators, 31 processors, 24 parsers, 60 outputs, 5 secret-stores
2024-04-19T16:47:36Z I! Loaded inputs: mqtt_consumer
2024-04-19T16:47:36Z I! Loaded aggregators:
2024-04-19T16:47:36Z I! Loaded processors:
2024-04-19T16:47:36Z I! Loaded secretstores:
2024-04-19T16:47:36Z I! Loaded outputs: file influxdb_v2
2024-04-19T16:47:36Z I! Tags enabled: host=TRYNB6PSZTV3
2024-04-19T16:47:36Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:“TRYNB6PSZTV3”, Flush Interval:10s
2024-04-19T16:47:36Z D! [agent] Initializing plugins
2024-04-19T16:47:36Z D! [agent] Connecting outputs
2024-04-19T16:47:36Z D! [agent] Attempting connection to [outputs.influxdb_v2]
2024-04-19T16:47:36Z D! [agent] Successfully connected to outputs.influxdb_v2
2024-04-19T16:47:36Z D! [agent] Attempting connection to [outputs.file]
2024-04-19T16:47:36Z D! [agent] Successfully connected to outputs.file
2024-04-19T16:47:36Z D! [agent] Starting service inputs
2024-04-19T16:47:40Z I! [inputs.mqtt_consumer] Connected [ssl://a3k228l3a8pgl0-ats.iot.us-east-1.amazonaws.com:8883]
2024-04-19T16:47:48Z D! [parsers.xpath_protobuf::mqtt_consumer] XML document equivalent: “<?xml version=\"1.0\"?>25”
2024-04-19T16:47:48Z D! [parsers.xpath_protobuf::mqtt_consumer] Number of configs: 0
2024-04-19T16:47:48Z D! [inputs.mqtt_consumer] No metrics were created from a message. Verify your parser settings. This message is only printed once.
2024-04-19T16:47:50Z D! [outputs.file] Buffer fullness: 0 / 1000 metrics
2024-04-19T16:47:50Z D! [outputs.influxdb_v2] Buffer fullness: 0 / 1000 metrics
2024-04-19T16:47:58Z D! [parsers.xpath_protobuf::mqtt_consumer] XML document equivalent: “<?xml version=\"1.0\"?>25”
2024-04-19T16:47:58Z D! [parsers.xpath_protobuf::mqtt_consumer] Number of configs: 0
what is the issue here ? Why i am not able to see any data in my influxdb bucket.