Skip to content

Commit

Permalink
Several small changes (#582)
Browse files Browse the repository at this point in the history
    + logrotate from my raspberry pi
    added influx message format description
    added example configurations to debian package
  • Loading branch information
narc-Ontakac2 committed Feb 28, 2023
1 parent 790438d commit a91abe1
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.InfluxDB.md
Expand Up @@ -13,3 +13,15 @@ Set `"api"` to`"influxdb"` to use the InfluxDB API.

For optional parameters such as `username` or `password` have a look at the
example config file is available at [`etc/vzlogger.conf.InfluxDB`](https://github.com/volkszaehler/vzlogger/blob/master/etc/vzlogger.conf.InfluxDB)

Message Format
---------------------------

Messages are sent in the following format:

<measurement_name>,uuid=<uuid>,<tags> value=<value> <time[ms]>

In the above, measurement_name, tags and uuid are from the configuration
while value and time[ms] are value and time of the measurement.

Details about this can be found in the [InfluxDB line protocol tutorial](https://docs.influxdata.com/influxdb/v1.8/write_protocols/line_protocol_tutorial/)
4 changes: 4 additions & 0 deletions debian/vzlogger.examples
@@ -0,0 +1,4 @@
etc/vzlogger.conf.InfluxDB
etc/vzlogger.conf.meterOCR
etc/vzlogger.conf.meterOMS
etc/vzlogger.conf.mySmartGrid
1 change: 1 addition & 0 deletions debian/vzlogger.install
@@ -1 +1,2 @@
etc/vzlogger.conf etc
etc/logrotate.d/vzlogger etc/logrotate.d
8 changes: 8 additions & 0 deletions etc/logrotate.d/vzlogger
@@ -0,0 +1,8 @@
/var/log/vzlogger.log {
rotate 1
size=100k
copytruncate
missingok
notifempty
create 0664 vzlogger root
}

0 comments on commit a91abe1

Please sign in to comment.