grafana / opcua-datasource

An OPC UA datasource for reading from OPC UA servers (DA/HDA/AE) into Grafana directly
GNU Affero General Public License v3.0
54 stars 10 forks source link

OPC UA Client - TimeStamp Handling (server time or source time) for Historic Data Raw Read #57

Closed ukalt closed 2 years ago

ukalt commented 2 years ago

Hello @srclosson

found one issue regarding the TimeStamp Handling for Historic Data Raw Read. It looks like that the plugin queries historic raw data including "Server Time" and not "Source Time". In my case our used OPC UA Server only responds to historic (HA) raw data read if the client uses "Source Time".

This leads to an error "BadTimeStampNotSupported" at the Grafana Query:

The client requested history using a timestamp format the server does not support. (i.e requested ServerTimestamp when server only supports SourceTimestamp).

BadTimeStampNotSupported

In other OPC UA Clients this could be changed by config, example "Ua Expert":

HA_Read_working_Ua_Expert

So my question, is it possible to quickfix this behaviour by config or do you have to rebuild the plugin ?

srclosson commented 2 years ago

Hi @ukalt, I've started looking into supporting this. I don't see an issue in getting this implemented. Will let you know when I have an idea when the work can be scheduled.

ukalt commented 2 years ago

Hi @srclosson, sounds great. Thx for the feedback.

ukalt commented 2 years ago

Planned Release Date ?

Stephanie Closson @.***> schrieb am Fr., 6. Mai 2022, 18:52:

Closed #57 https://github.com/grafana/opcua-datasource/issues/57 via #60 https://github.com/grafana/opcua-datasource/pull/60.

— Reply to this email directly, view it on GitHub https://github.com/grafana/opcua-datasource/issues/57#event-6564926837, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYVSBW2IEA4HKWSF4S3RDMTVIVE4BANCNFSM5TFZDTYA . You are receiving this because you were mentioned.Message ID: @.***>