Closed dbleul closed 7 months ago
@dbleul can you please test the binary in PR #14752 available once CI finished all tests?! Let me know if this fixes the issue for you!
Hello @srebhan
the fix solves the problem! Thanks for the quick response time!
2024-02-12T18:36:55Z I! Loading config: C:\Data\git\nats\telegraf\telegraf_dc.conf 2024-02-12T18:36:55Z I! Starting Telegraf 1.30.0-3782eb70 brought to you by InfluxData the makers of InfluxDB 2024-02-12T18:36:55Z I! Available plugins: 241 inputs, 9 aggregators, 30 processors, 24 parsers, 61 outputs, 5 secret-stores 2024-02-12T18:36:55Z I! Loaded inputs: influxdb_listener 2024-02-12T18:36:55Z I! Loaded aggregators: 2024-02-12T18:36:55Z I! Loaded processors: 2024-02-12T18:36:55Z I! Loaded secretstores: 2024-02-12T18:36:55Z I! Loaded outputs: mqtt 2024-02-12T18:36:55Z I! Tags enabled: host=annika-laptop 2024-02-12T18:36:55Z I! [agent] Config: Interval:1s, Quiet:false, Hostname:"annika-laptop", Flush Interval:5s 2024-02-12T18:36:55Z D! [agent] Initializing plugins 2024-02-12T18:36:55Z D! [agent] Connecting outputs 2024-02-12T18:36:55Z D! [agent] Attempting connection to [outputs.mqtt] 2024-02-12T18:36:55Z D! [agent] Successfully connected to outputs.mqtt 2024-02-12T18:36:55Z D! [agent] Starting service inputs 2024-02-12T18:36:55Z I! [inputs.influxdb_listener] Started HTTP listener service on :8186 2024-02-12T18:37:00Z D! [outputs.mqtt] Wrote batch of 8846 metrics in 109.1811ms 2024-02-12T18:37:00Z D! [outputs.mqtt] Buffer fullness: 0 / 1000000 metrics 2024-02-12T18:37:05Z D! [outputs.mqtt] Wrote batch of 2068 metrics in 31.3318ms 2024-02-12T18:37:05Z D! [outputs.mqtt] Buffer fullness: 0 / 1000000 metrics 2024-02-12T18:37:10Z D! [outputs.mqtt] Wrote batch of 1360 metrics in 29.9697ms 2024-02-12T18:37:10Z D! [outputs.mqtt] Buffer fullness: 0 / 1000000 metrics 2024-02-12T18:37:15Z D! [outputs.mqtt] Wrote batch of 2041 metrics in 29.9164ms 2024-02-12T18:37:15Z D! [outputs.mqtt] Buffer fullness: 0 / 1000000 metrics 2024-02-12T18:37:20Z D! [outputs.mqtt] Wrote batch of 1364 metrics in 25.7452ms 2024-02-12T18:37:20Z D! [outputs.mqtt] Buffer fullness: 0 / 1000000 metrics 2024-02-12T18:37:25Z D! [outputs.mqtt] Wrote batch of 2040 metrics in 29.121ms 2024-02-12T18:37:25Z D! [outputs.mqtt] Buffer fullness: 0 / 1000000 metrics ---- STOPPED MQTT BROKER ------ 2024-02-12T18:37:35Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:37:35Z D! [outputs.mqtt] Buffer fullness: 3400 / 1000000 metrics 2024-02-12T18:37:38Z D! [outputs.mqtt] Buffer fullness: 4109 / 1000000 metrics 2024-02-12T18:37:38Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:37:45Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:37:45Z D! [outputs.mqtt] Buffer fullness: 6834 / 1000000 metrics 2024-02-12T18:37:48Z D! [outputs.mqtt] Buffer fullness: 7514 / 1000000 metrics 2024-02-12T18:37:48Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:37:55Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:37:55Z D! [outputs.mqtt] Buffer fullness: 10234 / 1000000 metrics 2024-02-12T18:37:58Z D! [outputs.mqtt] Buffer fullness: 10914 / 1000000 metrics 2024-02-12T18:37:58Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:38:05Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:38:05Z D! [outputs.mqtt] Buffer fullness: 13634 / 1000000 metrics 2024-02-12T18:38:08Z D! [outputs.mqtt] Buffer fullness: 14324 / 1000000 metrics 2024-02-12T18:38:08Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:38:15Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:38:15Z D! [outputs.mqtt] Buffer fullness: 17063 / 1000000 metrics 2024-02-12T18:38:18Z D! [outputs.mqtt] Buffer fullness: 17743 / 1000000 metrics 2024-02-12T18:38:18Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:38:25Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:38:25Z D! [outputs.mqtt] Buffer fullness: 20468 / 1000000 metrics 2024-02-12T18:38:28Z D! [outputs.mqtt] Buffer fullness: 21148 / 1000000 metrics 2024-02-12T18:38:28Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:38:35Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:38:35Z D! [outputs.mqtt] Buffer fullness: 23868 / 1000000 metrics 2024-02-12T18:38:38Z D! [outputs.mqtt] Buffer fullness: 24548 / 1000000 metrics 2024-02-12T18:38:38Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:38:45Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:38:45Z D! [outputs.mqtt] Buffer fullness: 27280 / 1000000 metrics 2024-02-12T18:38:48Z D! [outputs.mqtt] Buffer fullness: 27948 / 1000000 metrics 2024-02-12T18:38:48Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:38:55Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:38:55Z D! [outputs.mqtt] Buffer fullness: 30697 / 1000000 metrics 2024-02-12T18:38:58Z D! [outputs.mqtt] Buffer fullness: 31382 / 1000000 metrics 2024-02-12T18:38:58Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:39:05Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:39:05Z D! [outputs.mqtt] Buffer fullness: 34102 / 1000000 metrics 2024-02-12T18:39:08Z D! [outputs.mqtt] Buffer fullness: 34782 / 1000000 metrics 2024-02-12T18:39:08Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:39:15Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:39:15Z D! [outputs.mqtt] Buffer fullness: 37502 / 1000000 metrics 2024-02-12T18:39:18Z D! [outputs.mqtt] Buffer fullness: 38211 / 1000000 metrics 2024-02-12T18:39:18Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:39:25Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:39:25Z D! [outputs.mqtt] Buffer fullness: 40936 / 1000000 metrics 2024-02-12T18:39:28Z D! [outputs.mqtt] Buffer fullness: 41616 / 1000000 metrics 2024-02-12T18:39:28Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:39:35Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:39:35Z D! [outputs.mqtt] Buffer fullness: 44336 / 1000000 metrics 2024-02-12T18:39:38Z D! [outputs.mqtt] Buffer fullness: 45016 / 1000000 metrics 2024-02-12T18:39:38Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:39:45Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:39:45Z D! [outputs.mqtt] Buffer fullness: 47736 / 1000000 metrics 2024-02-12T18:39:48Z D! [outputs.mqtt] Buffer fullness: 48421 / 1000000 metrics 2024-02-12T18:39:48Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:39:55Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:39:55Z D! [outputs.mqtt] Buffer fullness: 51167 / 1000000 metrics 2024-02-12T18:39:58Z D! [outputs.mqtt] Buffer fullness: 51845 / 1000000 metrics 2024-02-12T18:39:58Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:40:05Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:40:05Z D! [outputs.mqtt] Buffer fullness: 54570 / 1000000 metrics 2024-02-12T18:40:08Z D! [outputs.mqtt] Buffer fullness: 55250 / 1000000 metrics 2024-02-12T18:40:08Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:40:15Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:40:15Z D! [outputs.mqtt] Buffer fullness: 57970 / 1000000 metrics 2024-02-12T18:40:18Z D! [outputs.mqtt] Buffer fullness: 58662 / 1000000 metrics 2024-02-12T18:40:18Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:40:25Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:40:25Z D! [outputs.mqtt] Buffer fullness: 61399 / 1000000 metrics 2024-02-12T18:40:28Z D! [outputs.mqtt] Buffer fullness: 62084 / 1000000 metrics 2024-02-12T18:40:28Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:40:35Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:40:35Z D! [outputs.mqtt] Buffer fullness: 64804 / 1000000 metrics 2024-02-12T18:40:38Z D! [outputs.mqtt] Buffer fullness: 65484 / 1000000 metrics 2024-02-12T18:40:38Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:40:45Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:40:45Z D! [outputs.mqtt] Buffer fullness: 68204 / 1000000 metrics 2024-02-12T18:40:48Z D! [outputs.mqtt] Buffer fullness: 68884 / 1000000 metrics 2024-02-12T18:40:48Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:40:55Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:40:55Z D! [outputs.mqtt] Buffer fullness: 71633 / 1000000 metrics 2024-02-12T18:40:58Z D! [outputs.mqtt] Buffer fullness: 72313 / 1000000 metrics 2024-02-12T18:40:58Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:41:05Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:41:05Z D! [outputs.mqtt] Buffer fullness: 75038 / 1000000 metrics 2024-02-12T18:41:08Z D! [outputs.mqtt] Buffer fullness: 75718 / 1000000 metrics 2024-02-12T18:41:08Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:41:15Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:41:15Z D! [outputs.mqtt] Buffer fullness: 78438 / 1000000 metrics 2024-02-12T18:41:18Z D! [outputs.mqtt] Buffer fullness: 79118 / 1000000 metrics 2024-02-12T18:41:18Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:41:25Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:41:25Z D! [outputs.mqtt] Buffer fullness: 81838 / 1000000 metrics 2024-02-12T18:41:28Z D! [outputs.mqtt] Buffer fullness: 82518 / 1000000 metrics 2024-02-12T18:41:28Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:41:35Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:41:35Z D! [outputs.mqtt] Buffer fullness: 85267 / 1000000 metrics 2024-02-12T18:41:38Z D! [outputs.mqtt] Buffer fullness: 85947 / 1000000 metrics 2024-02-12T18:41:38Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:41:45Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:41:45Z D! [outputs.mqtt] Buffer fullness: 88672 / 1000000 metrics 2024-02-12T18:41:48Z D! [outputs.mqtt] Buffer fullness: 89352 / 1000000 metrics 2024-02-12T18:41:48Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out 2024-02-12T18:41:55Z W! [agent] ["outputs.mqtt"] did not complete within its flush interval 2024-02-12T18:41:55Z D! [outputs.mqtt] Buffer fullness: 92072 / 1000000 metrics 2024-02-12T18:41:58Z D! [outputs.mqtt] Buffer fullness: 92752 / 1000000 metrics 2024-02-12T18:41:58Z E! [agent] Error writing to outputs.mqtt: could not publish message to MQTT server: command timed out
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.29.4
Docker
No response
Steps to reproduce
Expected behavior
Telegraf no longer writes metrics to the MQTT output and fills its buffer
Actual behavior
Despite the MQTT broker being switched off, Telegraf reports a successful write after one minute and deletes the metrics from the buffer
Additional info
No response