Hi all,
I’m asking the possibility to configure the OPC UA that support this column settings
opcua,host=quest,id=ns\=2;s\=Variable.TOTAL_CONSUMPTION:993 node1=44,Quality="The operation succeeded. StatusGood (0x0)",DataType="Double" 1753004542000000000
opcua,host=quest,id=ns\=2;s\=Variable.TOTAL_CONSUMPTION:994 node2=55,Quality="The operation succeeded. StatusGood (0x0)",DataType="Double" 1753004545000000000
to this
opcua,host=quest,id=ns\=2;s\=Variable.TOTAL_CONSUMPTION:993 node0=44,Quality="The operation succeeded. StatusGood (0x0)",DataType="Double" 1753004542000000000
opcua,host=quest,id=ns\=2;s\=Variable.TOTAL_CONSUMPTION:994 node0=55,Quality="The operation succeeded. StatusGood (0x0)",DataType="Double" 1753004545000000000
so to have in database one single name instead multiple for each sensor since the the key is the Id. Below the configuration that I’m using
> [[inputs.opcua]]
> name = "opcua"
> endpoint = "opc.tcp://******:4841"
> connect_timeout = "10s"
> request_timeout = "5s"
> session_timeout = "20m"
> security_policy = "None"
> security_mode = "None"
> optional_fields = ["DataType"]
>
> [[inputs.opcua.group]]
> nodes = [
> {name="node1", namespace="2", identifier_type="s", identifier="Variable.TOTAL_CONSUMPTION:993"}
> {name="node2", namespace="2", identifier_type="s", identifier="Variable.TOTAL_CONSUMPTION:994"}
> ]
>
> [[outputs.file]]
> files = ["metrics.out"]
> data_format = "influx"
> rotation_interval = "24h"
> rotation_max_archives = 10
Best Regards
ALP
suyash
2
Have you looked at this telegraf/plugins/inputs/opcua at master · influxdata/telegraf · GitHub ?