Commit Graph

12 Commits

Author SHA1 Message Date
nico 044e0334d2
flake8 fixup
* fix trailing/ leading whitespaces
* fix None comparison to use is
+ add noqa ignore statements for the influx escape replacements
+ add noqa ignore statements around the bare excepts

TODO: This is only a temporary fix for most of the bare excepts, we need further specify those.
2020-06-29 18:59:16 +02:00
nico 5f0cb289c1
black reformat
* black reformatted the code
2020-06-29 11:03:49 +02:00
nico bbf156057f
add new values to influx
+ add uptime and process values to influx exporter
2020-06-26 01:00:39 +02:00
nico 331adaf820
fixup
* update version regex to succesfully match only the version string
+ add missing import
2020-06-10 00:40:22 +02:00
genofire 710e139403 add logging to influxdb 2020-06-09 20:22:30 +02:00
nico d44e4021fe
code cleanup
* split up api and metrics class
* revamped file nameming to better resemble their function
* update prometheus and influx files

* fixed version regex to not break on - in version string
2020-04-28 14:11:49 +02:00
nico f02b7e87ed utilize /etc/ directory
+ add config.py to read / touch create the etc config file
2020-02-16 20:19:03 +01:00
nico 9b6d0c0b97
fix parser error
* influxdb does not expect a comma in front of the ts
2019-12-29 00:52:01 +01:00
nico 7200131614
alignment changes
* update influx plugin use the rest interface
* align influx.py to ejabberdrpc changes
* replace format with f-strings
* minor performance improvements
2019-12-28 22:37:07 +01:00
genofire a5a39958cc
improve configuration (with default values) - also for testing ejabberdrpc.py 2019-12-07 16:01:58 +01:00
nico 9c33cf856b systemd compliance
+ add possibility to customize db name via config file
+ file path configurations are dealt with dynamically
* at least Debian does not feature a group called nobody it is called nogroup

I am not sure if other systems feature a group called nobody.
2019-12-07 14:48:25 +01:00
nico 40edb13762 final touches
# added
+ add method to escape whitespaces in keys and values

# changed
* init client handler only once and not every time
* don't try to create database on every run just on the first one

# removed
- vhosts are listed first and after that the respective nodes are listed
2019-10-24 20:31:49 +02:00