Hi from Austria, Iβm struggled since 2 days with a little problem (possible sitting before the screen
)
I have a MQTT topic, the values are formatted as strings:
MQTT: Topic: SHRDZM/807D3A37863A/807D3A37863A/sensor
Blockquote
{
βtimestampβ:β2025-10-31T10:39:50β,
β32.7.0β:β236.10β,
β52.7.0β:β234.70β,
β72.7.0β:β235.30β,
β31.7.0β:β2.50β,
β51.7.0β:β2.00β,
β71.7.0β:β1.12β,
β1.7.0β:β0β,
β2.7.0β:β17β,
β1.8.0β:β9929432β,
β2.8.0β:β19417831β,
β3.8.0β:β692170β,
β4.8.0β:β7045923β,
β16.7.0β:β-17β,
βuptimeβ:β0003:09:38:02β,
βUTCβ:β2025-10-31T09:39:53β
}β
so I set up the config:
[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
debug = true
[[outputs.influxdb_v2]]
urls = [βh t t p://localhost:8086β]
token = βxxxxxxxxxxxxxxxxxxxx2elN6JJ_c7_W-ujvTYDvHMDfUquDUg==β
organization = βHoeβ
bucket = βSmartmeterβ
[[inputs.mqtt_consumer]]
servers = [βtcp://192.168.10.214:1883β]
topics = [
βSHRDZM/807D3A37863A/807D3A37863Aβ,
]
username = βXβ
password = βKβ
data_format = βjson_v2β
[[inputs.mqtt_consumer.json_v2]]
timestamp_path = βtimestampβ
timestamp_format = β2006-01-02T15:04:05β
timestamp_timezone= βCETβ
[[inputs.mqtt_consumer.json_v2.field]]
path = β71.7.0β
type = βfloatβ
optional = true
[[inputs.mqtt_consumer.json_v2.field]]
path = β51.7.0β
type = βfloatβ
optional = true
[[inputs.mqtt_consumer.json_v2.field]]
path = β1.7.0β
type = βintβ>
optional = true
the debug output is:
Blockquote
root@influxdb:~# telegraf --debug --config h t t p://192.168.50.133:8086/api/v2/telegrafs/0fba69b7b5211000
2025-10-31T17:04:06Z I! Loading config: h t t p://192.168.50.133:8086/api/v2/telegrafs/0fba69b7b5211000
2025-10-31T17:04:06Z I! Starting Telegraf 1.36.3 brought to you by InfluxData the makers of InfluxDB
2025-10-31T17:04:06Z I! Available plugins: 239 inputs, 9 aggregators, 35 processors, 26 parsers, 65 outputs, 6 secret-stores
2025-10-31T17:04:06Z I! Loaded inputs: mqtt_consumer
2025-10-31T17:04:06Z I! Loaded aggregators:
2025-10-31T17:04:06Z I! Loaded processors:
2025-10-31T17:04:06Z I! Loaded secretstores:
2025-10-31T17:04:06Z I! Loaded outputs: influxdb_v2
2025-10-31T17:04:06Z I! Tags enabled: host=influxdb
2025-10-31T17:04:06Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:βinfluxdbβ, Flush Interval:10s
2025-10-31T17:04:06Z W! [agent] The default value of βskip_processors_after_aggregatorsβ will change to βtrueβ with Telegraf v1.40.0! If you need the current default behavior, please explicitly set the option to βfalseβ!
2025-10-31T17:04:06Z D! [agent] Initializing plugins
2025-10-31T17:04:06Z D! [agent] Connecting outputs
2025-10-31T17:04:06Z D! [agent] Attempting connection to [outputs.influxdb_v2]
2025-10-31T17:04:06Z D! [agent] Successfully connected to outputs.influxdb_v2
2025-10-31T17:04:06Z D! [agent] Starting service inputs
2025-10-31T17:04:06Z I! [inputs.mqtt_consumer] Connected [tcp://192.168.10.214:1883]
2025-10-31T17:04:16Z D! [outputs.influxdb_v2] Buffer fullness: 0 / 10000 metrics
Are there any hints to find my mistake?
Iβm very new with influx so please be lenient ![]()
Greetings
Eric
