FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
02-15-2023 09:46 AM - edited 02-15-2023 09:56 AM
Hi all,
I am sending PLC values to InfluxDB and for that I am using Telegraf. At the beginning it works fine, but after some time (sometimes after minutes, other after some hours) I receive the message "[inputs.ctrlx_datalayer_sse] Requesting data of subscription 0 failed, got end of sse data input". I receive the following message in the diagnostics log:
I have tried to change the interval to make sure if it is a problem of having a too high flush or input interval, but it does not change anything.
I have also tried to replicate this by just reading the in the Data Layer the following node:
framework/metrics/system/cpu-utilisation-percent
Unfortunately I have the same problems. This is the Telegraf configuration so that you can replicate it:
[[outputs.influxdb_v2]]
urls = ["https://192.168.2.1/influxdb"]
token = "token"
organization = "boschrexroth"
bucket = "boschrexroth"
insecure_skip_verify = true
[[inputs.ctrlx_datalayer_sse]]
## Hostname or IP address of ctrlX CORE
## example: hostname = "localhost" # Telegraf is running directly on the device
## hostname = "192.168.1.1" # Connect to ctrlX CORE remote via IP
## hostname = "host.example.com" # Connect to ctrlX CORE remote via hostname
## hostname = "10.0.2.2:8443" # Connect to ctrlX CORE Virtual from development environment
hostname = "localhost"
## Authentication credentials
username = "username"
password = "password"
## Use TLS but skip chain & host verification
insecure_skip_verify = true
## Timeout for HTTP requests. (default: "10s")
# timeout = "10s"
## Create a ctrlX Data Layer SSE subscription.
[[inputs.ctrlx_datalayer_sse.subscription]]
## The name of the measurement. (default: "ctrlx")
measurement = "metrics"
sampling_interval = "200ms"
## Define an array of nodes with field name and node address
nodes=[
{name="cpu_usage_percent", address="framework/metrics/system/cpu-utilisation-percent"}
]
I am using Telegraf 1.18.5 and the ctrlX CORE is also with the latest version: 1.18
Thank you very much in advance.
Best regards,
Nicolas
Solved! Go to Solution.
02-16-2023 08:14 AM - edited 02-16-2023 08:15 AM
Hi Nicolas,
Thanks for the detailed report! I was able to reproduce the error message. I will forward the issue for further clarification. And will come back to you when I got news.
But even if the error gets thrown, the error message does not seem to have an effect on the collecting of the data by telegraf.
Best regards,
Nick
02-16-2023 08:22 AM
Dear Nick,
Thank you very much for your quick reply.
Unfortunately it is not just only a message error but also affects in the data collecting. When I check in InfluxDB the collected data at the time of failure, I see that data has not been collected. Sometimes it does not collect data for 500ms or for 30s. The good thing is that after the failure it starts to collect data again automatically.
Best regards,
Nicolas
11-14-2023 04:48 PM
Are there any news? Is this still an issue? Or can this topic be closed?
11-15-2023 10:06 AM
Sorry for the late update. This bug is fixed with Version V2.02 of ctrlX Data Layer.