01-19-2023 09:58 AM
I am trying to send values every 100ms to InfluxDB. For that, I am using Telegraf and there I have configured a 100ms publishinterval and a 100ms samplinginterval. Data is generated with a PLC program every 100ms. Unfortunately, when I try to read the values in the Data explorer in Telegraf there are only values every 1s. I have checked the global subscription settings and it is configured with the minimum default 100000 μs setting and 100ms PublishInterval. I have also tried to send data every 200ms just to make sure that it is not a limit problem, but it continues to update every 1s.
I have the feeling that because Telegraf is reading the values from the Datalayer and the Datalayer updates every 1s, it is not able to read the values that are between. I have checked the ctrlX CORE documentation and there I do not find how to change the subscription properties and I only find that it is possible to change Global settings. Furthermore, when I check the subscription node of the variable I want to read, I see that the configuration is "publishInterval: 1000", but as it is a "read-only" property I can not change it.
I hope there is a way to change this setting as it would be interesting to store data at ms level in influxDB.
Thank you very much in advance.
Solved! Go to Solution.
01-19-2023 02:27 PM - edited 01-19-2023 02:28 PM
Your client needs to tell the subscription how fast it should be. Otherwise the standard is used.
Alternatively you could create you own subscription with other standard settings. For more information see our online documentation.
01-20-2023 03:00 PM - edited 01-20-2023 03:05 PM
the problem was in InfluxDB.
This configuration can be performed from the Telegraf app establishing a publish_interval = "100ms" and a sampling_interval = "100ms".