Commit Graph

15 Commits

Author SHA1 Message Date
nico 634ba02e76
config handeling
* add proper configuration handeling to the metrics class
2020-04-08 13:27:52 +02:00
nico c8d88a537d
better session handeling
* improved session handeling

Due to the with statement in the session creation process, every requests to the api created a new session. This patch decreases the enormous TCP overhead, by creating a single global session to reuse.
2020-03-06 12:43:15 +01:00
nico 95616508ce
customizable muc host
+ add optional argument to the EjabberdMetrics class to customize the default muc host sub-domain
2020-02-17 02:05:58 +01:00
nico 7c656961ce
ejabberd 19.* fix
* ejabberd 19 and above report muc count only on the muc host
2020-02-16 12:23:47 +01:00
nico 5ce45fca7f
fetch_muc improvements
+ add parsed version string property
* improve fetch_muc method to not request the status string for each request
2020-02-04 01:40:20 +01:00
nico 0145458961
backend readability and performance improvements
+ add some typing
* optimized imports to only import if necessary
* change xmlrpc connection to with statement
* change rest connection to with statement
* replace format string to f-string
* pep8 changes
2019-12-29 01:16:17 +01:00
genofire ee25eb6e23
improve error handling + fix muc 2019-12-07 16:19:36 +01:00
genofire a5a39958cc
improve configuration (with default values) - also for testing ejabberdrpc.py 2019-12-07 16:01:58 +01:00
genofire 39ae668307
add rest api support to ejabberdrpc.py 2019-12-07 15:30:48 +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
nico 1a63916b4e
pep8 and gitignore
+ add .gitignore
* some pep8 changes
2019-10-17 14:24:06 +02:00
Martin/Geno 47683773ff
client by (ipversion) 2019-10-17 13:45:55 +02:00
Martin/Geno 4ceca3f87e
s2s_in/out + muc 2019-10-17 09:13:00 +02:00
Martin/Geno 17a6585ea4
first xml rpc api 2019-10-17 07:00:39 +02:00