cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Telegraf - Requesting data of subscription failure

Telegraf - Requesting data of subscription failure

sanX
New Contributor

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:

Requested data failureRequested data failure

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

4 REPLIES 4

nickH
Community Moderator
Community Moderator

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 

sanX
New Contributor

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

CodeShepherd
Community Moderator
Community Moderator

Are there any news? Is this still an issue? Or can this topic be closed?

nickH
Community Moderator
Community Moderator

Sorry for the late update. This bug is fixed with Version V2.02 of ctrlX Data Layer. 

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist