Hello,
I configured telegraf opc ua plugin to read a variable from my opc ua server and to store it into influxdb. It worked but when I tried to add a tagkeys and values I cannot see them into my database. I will put the config file for telegraf here.
[[inputs.opcua]] ## Device name name = "Product" # ## OPC UA Endpoint URL endpoint = "opc.tcp://localhost:4840" # ## Maximum time allowed to establish a connect to the endpoint. connect_timeout = "10s" # ## Maximum time allowed for a request over the estabilished connection. request_timeout = "5s" # ## Security policy, one of "None", "Basic128Rsa15", "Basic256", ## "Basic256Sha256", or "auto" security_policy = "None" # ## Security mode, one of "None", "Sign", "SignAndEncrypt", or "auto" security_mode = "None" # ## Path to cert.pem. Required when security mode or policy isn't "None". ## If cert path is not supplied, self-signed cert and key will be generated. #certificate = "/etc/telegraf/cert.pem" # ## Path to private key.pem. Required when security mode or policy isn't "None". ## If key path is not supplied, self-signed cert and key will be generated. #private_key = "/etc/telegraf/key.pem" # ## Authentication Method, one of "Certificate", "UserName", or "Anonymous". To ## authenticate using a specific ID, select 'Certificate' or 'UserName' # auth_method = "Anonymous" # ## Username. Required for auth_method = "UserName" # username = "" # ## Password. Required for auth_method = "UserName" # password = "" # ## Node ID configuration ## name - the variable name ## namespace - integer value 0 thru 3 ## identifier_type - s=string, i=numeric, g=guid, b=opaque ## identifier - tag as shown in opcua browser ## data_type - boolean, byte, short, int, uint, uint16, int16, ## uint32, int32, float, double, string, datetime, number ## Example: ## {name="ProductUri", namespace="0", identifier_type="i", identifier="2262", data_type="string", description="http://open62541.org"} ##nodes = [ ## {name="", namespace="", identifier_type="", identifier="", data_type="", description=""}, ## {name="", namespace="", identifier_type="", identifier="", data_type="", description=""}, ##] nodes = [ {name="Double", namespace="1", identifier_type="i", identifier="51031", tags=[["node1_tag", "val2"]]}, ] name_suffix = "_51031" ## Store into the database [[outputs.influxdb_v2]] ## The URLs of the InfluxDB cluster nodes. ## ## Multiple URLs can be specified for a single cluster, only ONE of the ## urls will be written to each interval. ## urls exp: http://127.0.0.1:8086 urls = ["http://localhost:8086"] ## Token for authentication. token = "T3DsWbLlhb69htTLQzOcPIAyDsZH-n03tHHuQOEzQXN80-zH5nxC032FtAZSJJ-oekZXZYCeKHnaDX5ZXGwNRw==" ## Organization is the name of the organization you wish to write to; must exist. organization = "Cebi" ## Destination bucket to write into. bucket = "Data_Collector"
If any one can help me please ? Thanks.