coussej / node-opcua-logger

An OPCUA Client for logging data to InfluxDB! 🔌 🏭
https://www.factry.io
MIT License
179 stars 63 forks source link

Metric monitoring #60

Open azwald opened 3 years ago

azwald commented 3 years ago

Hi, I use monitoring mode to monitor the changes in value with interval 60000ms (1 minute) but in influxdb, the measurement shows every 1 minute regardless of any changes in monitored value

is there any mistake in the configuration?

[[metrics]] measurement = "PVC_Real" datatype = "number" tags = { equipment = "Mixer 2" } nodeId = "ns=2;s=Mixer.Oil 2.PVC Real" method = "monitored" interval = 60000

MoritzLaut commented 3 years ago

hi @azwald currently, only second level intervals are supported, and they are rounded so they match a 1 minute cycle.

~moritz