I try to create an docker compose stack involving InfluxDB, Telegraf and Grafana. To gather some test data i have used this basic test server: https://github.com/gabrielmbmb/opcua-test-server
However, I keep receiving the follwing error when starting up my docker compose stack:
telegraf | 2025-07-07T12:55:30Z E! [inputs.opcua] Error in plugin: connect failed: error validating input: server does not support an endpoint with security: "http://opcfoundation.org/UA/SecurityPolicy#None", "MessageSecurityModeNone"
What i have done: -Set all security aspects in the server.ts to "None":
public startServer(): void {
const serverOptions: OPCUAServerOptions = {
securityPolicies: [SecurityPolicy.None, SecurityPolicy.None],
securityModes: [
MessageSecurityMode.None,
MessageSecurityMode.None,
MessageSecurityMode.None,
],
Here is my telegraf.config:
[agent]
interval = "10s"
round_interval = true
[[inputs.opcua]]
endpoint = "opc.tcp://host.docker.internal:5001/UA/test"
nodes = [
{ name = "fanSpeed", namespace = "1", identifier_type = "s", identifier = "fanSpeed" },
{ name = "fanOn", namespace = "1", identifier_type = "s", identifier = "fanOn" }
]
[[outputs.influxdb_v2]]
urls = ["http://influxdb:8086"]
token = "Removed"
organization = "Removed"
bucket = "Removed"
And finally my docker-compose.yaml
version: "3"
services:
influxdb:
image: influxdb:2.5.1-alpine
container_name: influxdb
restart: unless-stopped
ports:
- '8086:8086'
volumes:
- influxdb_data:/var/lib/influxdb2
grafana:
image: grafana/grafana-oss
container_name: grafana
restart: unless-stopped
depends_on:
- influxdb
ports:
- '3000:3000'
volumes:
- grafana_data:/var/lib/grafana
telegraf:
image: telegraf
container_name: telegraf
restart: unless-stopped
depends_on:
- influxdb
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
volumes:
grafana_data: {}
influxdb_data: {}