Closed mxinden closed 5 years ago
Lgtm
Sent by mobile; please excuse my brevity.
On Thu, Jun 27, 2019, 16:40 Max Inden notifications@github.com wrote:
This pull request contains two commits:
1.
Instead of configuring the modbus unit per modbus module in the modbus.yml configuration file, with this commit the modbus unit is configured in prometheus.yml and passed to the exporter via an http parameter.
This keeps the modbus exporter configuration file (modbus.yml) generic (containing only hardware specific module definitions) and the modbus unit (0-255) part of the information that identifies a Prometheus scrape instance. 2.
README.md: Add sequence diagram to visualize scrape sequence
//CC @RichiH https://github.com/RichiH @bastischubert https://github.com/bastischubert
You can view, comment on, or merge this pull request online at:
https://github.com/mxinden/modbus_exporter/pull/21 Commit Summary
- README.md: Add sequence diagram to visualize scrape sequence
- *: Configure modbus unit aka. sub target in prometheus.yml
File Changes
- M README.md https://github.com/mxinden/modbus_exporter/pull/21/files#diff-0 (29)
- M config/config.go https://github.com/mxinden/modbus_exporter/pull/21/files#diff-1 (1)
- M modbus.yml https://github.com/mxinden/modbus_exporter/pull/21/files#diff-2 (2)
- M modbus/modbus.go https://github.com/mxinden/modbus_exporter/pull/21/files#diff-3 (4)
- M modbus_exporter.go https://github.com/mxinden/modbus_exporter/pull/21/files#diff-4 (17)
- M modbus_exporter_test.go https://github.com/mxinden/modbus_exporter/pull/21/files#diff-5 (17)
- M prometheus.yml https://github.com/mxinden/modbus_exporter/pull/21/files#diff-6 (1)
- A scrape-sequence.svg https://github.com/mxinden/modbus_exporter/pull/21/files#diff-7 (17)
Patch Links:
- https://github.com/mxinden/modbus_exporter/pull/21.patch
- https://github.com/mxinden/modbus_exporter/pull/21.diff
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mxinden/modbus_exporter/pull/21?email_source=notifications&email_token=AAFYII3KGTTBHZG5TUL75BDP4TGNLA5CNFSM4H34W3ZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G4C75KA, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFYIIZRIWXF2A3V254UWQLP4TGNLANCNFSM4H34W3ZA .
This pull request contains two commits:
Instead of configuring the modbus unit per modbus module in the modbus.yml configuration file, with this commit the modbus unit is configured in prometheus.yml and passed to the exporter via an http parameter.
This keeps the modbus exporter configuration file (modbus.yml) generic (containing only hardware specific module definitions) and the modbus unit (0-255) part of the information that identifies a Prometheus scrape instance.
README.md: Add sequence diagram to visualize scrape sequence
//CC @RichiH @bastischubert