Comments (21)
Hello @MoritzLaut and @coussej
There is a telegraf plugin for OPC-UA now. It works with InfluxDBv2.
See also
https://github.com/influxdata/telegraf/blob/master/plugins/inputs/opcua/README.md
https://docs.influxdata.com/influxdb/v2.0/write-data/no-code/use-telegraf/manual-config/
@coussej do you still see benefits of using node-opcua-logger as opposed to telegraf?
from node-opcua-logger.
To be honest, I've used telegraf opcua, but having so much troubles and issues. And I don't see if there is a data buffering on the side of telegraf when connection to influx is lost.
On my opinion, opcua logger is still the best tested application. πͺ
I hope we can run multiple instances of this opcua logger on 1 computer, or atleast it has configuration for multiple opc server inputs and multiple influxdb output
from node-opcua-logger.
I successfully runned 3 parallel opcua logger to a single influx db. I do not think this could be a problem to output to different db's.
I used IOTstack (https://sensorsiot.github.io/). This is grafana, influx, and more already configured within docker.
from node-opcua-logger.
Hi @stephb59 how did you that? That was amazing. I never got lucked running atleast 2 insctance of opcua logger on my windows machine.
Does it need to be run separately on a a docker?
I am just using the opcualogger.exe for this.
I hope you can help me.
from node-opcua-logger.
I never tried with windows. I do prefer working on "the light side of the force" :-)
My hardware is a small linux server. Linux always working more efficiently.
I just do have several instances that are not on the docker side. Grafana and Influx are within docker. Several opcua logger instances are pushing data to influxdb.
from node-opcua-logger.
I actually want to implement it on Limux, however existing OS of our client is Windows :'(
But did you already tried running 3 instances of an opcua logger at the same linux machine?
from node-opcua-logger.
On my small server i did some tests recording online opcua server with 5 instances
from node-opcua-logger.
@stephb59 is it via docker? (You've run 5 docker with opcua logger) Or you've just run it 1by1 on a command line?
There is no conflict on instance-uid?
from node-opcua-logger.
Hello all,
-
@MoritzLaut it's true that not a lot of development has been done the past months, but support for influx 2.0 is already available in the dev branch!
-
@henjoe you should be able to run different loggers next to each other. You should just configure different paths for the config file, data en log files, and everything should be fine!
from node-opcua-logger.
Hi
@coussej never knew about this. Thanks a lot!
from node-opcua-logger.
@henjoe On main os i run it in 5 different screen sessions with different path and configuration files. No conflict as instances are different pid. Docker containers are only there for influx and grafana.
from node-opcua-logger.
@stephb59 thanks men!
As @coussej mentioned in his comment. :)
Again! Highly appreciated all of you! :)
from node-opcua-logger.
Hi @stephb59 and @coussej,
One more thing. May I confirm that we can run multiple instances of opcua logger when it was run from a source? Instead of a prebuilt binary?
I am trying to run multiple instances from the pre built binary but it seems that only one is running.
Hoping for your confirmation.
Thanks in advance! :)
from node-opcua-logger.
@henjoe I ran from source in the past but suffered certificate problems that i was not able to solve. Running pre built binary solved that
from node-opcua-logger.
@stephb59 but how did you manage that each pre built binary has different config files?
Do you just create a copy of opcua logger on a seperate folder and create a config file for each?
That is actually what I am doing right now, but only 1 instance is working.
from node-opcua-logger.
You can provide the path to the config file using environment variables, you can see which ones in the readme file. You can for example create a windows service from the same binary, but configure different parameters for each service. nssm has an easy way to do this for example.
from node-opcua-logger.
In my linux case
node-opcua-logger1
βββ config.toml
βββ config.toml.old
βββ data
βΒ Β βββ _error
βΒ Β βββ _queue
βββ influx-opcua-logger_v2.0.0-alpha_linux-x64
node-opcua-logger2
βββ config.toml
βββ data
βΒ Β βββ _error
βΒ Β βββ _queue
βββ influx-opcua-logger_v2.0.0-alpha_linux-x64
node-opcua-logger3
βββ config.toml
βββ data
βΒ Β βββ _error
βΒ Β βββ _queue
βββ influx-opcua-logger_v2.0.0-alpha_linux-x64
node-opcua-logger4
βββ config.toml
βββ data
βΒ Β βββ _error
βΒ Β βββ _queue
βββ influx-opcua-logger_v2.0.0-alpha_linux-x64
from node-opcua-logger.
You can provide the path to the config file using environment variables, you can see which ones in the readme file. You can for example create a windows service from the same binary, but configure different parameters for each service. nssm has an easy way to do this for example.
Hi @coussej , I understand that I can use an environment variables for the config files. What I didn't know is how would I set other instance of opcualogger to use other config path using environment variables? Like for example if I use an environment variables foe opcualogger1, how would my opcualogger2 will use another environment variables? (with the same variable name of opcualogger1)
Is there a paraneter like running the opcualogger --config path?
from node-opcua-logger.
In my linux case
node-opcua-logger1 βββ config.toml βββ config.toml.old βββ data βΒ Β βββ _error βΒ Β βββ _queue βββ influx-opcua-logger_v2.0.0-alpha_linux-x64 node-opcua-logger2 βββ config.toml βββ data βΒ Β βββ _error βΒ Β βββ _queue βββ influx-opcua-logger_v2.0.0-alpha_linux-x64 node-opcua-logger3 βββ config.toml βββ data βΒ Β βββ _error βΒ Β βββ _queue βββ influx-opcua-logger_v2.0.0-alpha_linux-x64 node-opcua-logger4 βββ config.toml βββ data βΒ Β βββ _error βΒ Β βββ _queue βββ influx-opcua-logger_v2.0.0-alpha_linux-x64
Hi @stephb59 have you tried this running simulteaneously, and sending their data into different influxdb databases? Like for example db1 has IP: 192.168.0.1:8086 and db2: 192.168.0.2:8086,
I am thinking that there would be some issue when using the same port of databases? But I am not sure here.
from node-opcua-logger.
@henjoe
There is no issue sending data to same port. Influx db like others db's can accept simultaneous connections. I did not try with different databases.
from node-opcua-logger.
I found the issue now. May testing machine is blocking the opcua program π€·
I switch to another machine and I was succesfull running it simultaneously.
Again, thanks for your help! :)
from node-opcua-logger.
Related Issues (20)
- Server Rejects Client HOT 5
- bi-directional communication
- Error: The connection has rejected by server HOT 2
- Unable to parse HOT 4
- OPC UA Server Close HOT 4
- Unauthorized error HOT 4
- Connection reject by server HOT 6
- Polling multiple fields in one shot HOT 6
- Rasberry PI4 test : connection rejected by server HOT 3
- Metric monitoring HOT 1
- Installation without internet
- the certificate and the private key do not match ! HOT 2
- Error: cannot find version block HOT 1
- [Question] Adding OPCUA Tag while running HOT 3
- [Question] Clarification on the side of BatchSize, buffer.js HOT 2
- Different measurements created for different sensor fields with OPC-UA !
- Cannot accept config.json file as config file.
- Boolean writing error on Influx V2 HOT 2
- Failed to write points, error: "Self-signed certificates"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-opcua-logger.