Prometheus exporter for Modbus protocol. Support direct RTU connections
Sample configuration can be found in the config.properties at ./src/main/resources/config.properties
. The important option is server.collector
. This option defines how registers will be read from the device and interpreted. Currently supported collectors:
- epeverTracer
If you can't find device in the list above, then please raise issue and I will add it.
In order to build the project simply execute:
mvn clean package
Edit sample configuration at ./src/main/resources/config.properties
and run using the following command:
java -jar ./target/modbusrtu_exporter.jar ./src/main/resources/config.properties
- Modify
./src/main/resources/modbusrtu_exporter.service
file - Copy this file:
sudo cp ./src/main/resources/modbusrtu_exporter.service /etc/systemd/system/
- Enable the service:
sudo systemctl enable modbusrtu_exporter.service
- Start the service:
sudo systemctl start modbusrtu_exporter.service
Currently only 1 device managed by each modbusrtu_exporter.
- job_name: 'epeverTracer'
static_configs:
- targets: ['<ip address of modbusrtu_exporter>:9849']