modbus_exporter

command module
v0.0.0-...-26c87ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2017 License: GPL-3.0 Imports: 8 Imported by: 0

README

Modbus exporter

Fault tolerant exporter which retrieves stats from a modbus system and exports them via HTTP for Prometheus consumption.

Building

you just need Go installed, simply run hte build in the directory as:

go build

Getting Started

To run it:

./modbus_exporter [flags]

The configuration will be taken from a configuration file, the exporter will search a fille called slaves.yml in the same directory by default.

Setting a different file and a different listen address:

./modbus_exporter -config.file="path/to/file" -listen-address=":8080"

Help on flags:

./modbus_exporter --help

Configuration File

Check the examples/ folder to read the information about the configuration file and some examples.

TODO

  • General clean up
  • Tons of test coverage
  • Improve global log system

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package config contains all the configuration related components
Package config contains all the configuration related components
Package glog manages the global loging from every modbus query
Package glog manages the global loging from every modbus query
Package lexer manages the imported configuration in order to generate secuences of tokens.
Package lexer manages the imported configuration in order to generate secuences of tokens.
Package modbus contains all the modbus related components
Package modbus contains all the modbus related components
Package parser contains all the tools needed to parse the configuration files.
Package parser contains all the tools needed to parse the configuration files.
Package token provides the base lexical tokens for parsing files.
Package token provides the base lexical tokens for parsing files.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL