Skip to content

inputs.opcua: schema improvements and fix static tag additions #8270

@sjwang90

Description

@sjwang90

Current defects with existing inputs.opcua plugin

Broken Static tag additions

The current plugin config accepts them (standard Telegraf). In this plugin code the measurement is only given tags from the data acquired from OPC-UA. [opcua.tags] is broken and does not alert

  • Expected:
    [opcua.tags]need to be able to add static tags and Telegraf needs to error on incorrect configuration

Schema improvements

The config for a Node in the configuration takes a ’name’ but this is used as the value of the “name” field in the code and the name of the field that contains the value received from OPC-UA in the code.

  • Current schema:
    [tag {name="x”}, field{x=<value>}]
  • Expected:
    Default to a field named value with an optional name_override config to change it to something else.

Metadata

Metadata

Assignees

Labels

area/opcuabugunexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions