-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New opc ua client plugin #7213
New opc ua client plugin #7213
Changes from all commits
361331a
0f81b0a
fd19a8c
f87c2e4
965c34f
55fb20f
6437ce9
93a9ab0
390aa0a
9899256
aeae416
3cded57
abd7d59
2ef4c9f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
( | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Launch", | ||
"type": "go", | ||
"request": "launch", | ||
"mode": "auto", | ||
"program": "${fileDirname}", | ||
"env": {}, | ||
"args": [] | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Telegraf Input Plugin: opcua_client | ||
|
||
The opcua_client plugin retrieves data from OPCUA slave devices | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please replace the term There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks I’ll replace with server to match industry standards nomenclature |
||
|
||
### Configuration: | ||
|
||
```toml | ||
# ## Connection Configuration | ||
# ## | ||
# ## The plugin supports connections to PLCs via OPCUA | ||
# ## | ||
# ## Device name | ||
name = "opcua_rocks" | ||
# | ||
# # OPC UA Endpoint URL | ||
endpoint = "opc.tcp://opcua.rocks:4840" | ||
# | ||
# ## Read Timeout | ||
# ## add an arbitrary timeout (seconds) to demonstrate how to stop a subscription | ||
# ## with a context. | ||
timeout = 30 | ||
# | ||
# # Time Inteval, default = 100 * time.Millisecond | ||
# # interval = "10000000" | ||
# | ||
# # Security policy: None, Basic128Rsa15, Basic256, Basic256Sha256. Default: auto | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. default says auto, but text says "None" these should match |
||
security_policy = "None" | ||
# | ||
# # Security mode: None, Sign, SignAndEncrypt. Default: auto | ||
security_mode = "None" | ||
# | ||
# # Path to cert.pem. Required for security mode/policy != None | ||
# # cert = "/etc/telegraf/cert.pem" | ||
# | ||
# # Path to private key.pem. Required for security mode/policy != None | ||
# # key = "/etc/telegraf/key.pem" | ||
# | ||
# ## Measurements | ||
# ## node id to subscribe to | ||
# ## 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 | ||
# ## Template - {name="", namespace="", identifier_type="", identifier="", data_type="", description=""}, | ||
nodes = [ | ||
{name="ProductName", namespace="0", identifier_type="i", identifier="2261", data_type="string", description="open62541 OPC UA Server"}, | ||
{name="ProductUri", namespace="0", identifier_type="i", identifier="2262", data_type="string", description="http://open62541.org"}, | ||
{name="ManufacturerName", namespace="0", identifier_type="i", identifier="2263", data_type="string", description="open62541"}, | ||
] | ||
``` | ||
### Example Output: | ||
|
||
``` | ||
$ ./telegraf -config telegraf.conf -input-filter opcua_client -test | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should be actual example output, not the command to run to get the output. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. an example input/output would be very useful for this README |
||
|
||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't commit these dot-files.