Skip to content

Prometheus exporter for Modbus protocol. Support direct RTU connections

License

Notifications You must be signed in to change notification settings

dernasherbrezon/modbusrtu_exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

modbusrtu_exporter

Prometheus exporter for Modbus protocol. Support direct RTU connections

grafana

Configuration

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.

Build

In order to build the project simply execute:

mvn clean package

Run

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 

Run as a service

  1. Modify ./src/main/resources/modbusrtu_exporter.service file
  2. Copy this file:
sudo cp ./src/main/resources/modbusrtu_exporter.service /etc/systemd/system/
  1. Enable the service:
sudo systemctl enable modbusrtu_exporter.service
  1. Start the service:
sudo systemctl start modbusrtu_exporter.service

Prometheus configuration

Currently only 1 device managed by each modbusrtu_exporter.

  - job_name: 'epeverTracer'
    static_configs:
      - targets: ['<ip address of modbusrtu_exporter>:9849']

About

Prometheus exporter for Modbus protocol. Support direct RTU connections

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages