A bunch of tools for maintenance a ejabberd server, written in python3 with rest and xmlrpc support: metrics service to fetch statistics from ejabberd to generate metrics for prometheus and influxdb
Go to file
nico eaed97cf4f
utilize /etc/ directory
+ add config.py to read / touch create the etc config file

_read():
	tries to open the config files in read only mode to parse its contents.

_check():
	checks if the config file is present and then calls _read()
	if that is false it tries to touch create a new file.

	worst case scenario: file is present and holds content, the method assumes that the file isn't present. Therefore tries to touch-create a new file, if a file is against all odds present, only the mtime would be updated. Hence any file content would not be altered.

get():
	main method, calling _check()
	if a key is given return only the assigned value or None
	or return the whole dictionary
2020-02-03 20:49:52 +01:00
contrib/init/linux-systemd systemd compliance 2019-12-07 14:48:25 +01:00
.gitignore utilize /etc/ directory 2020-02-03 20:49:52 +01:00
README.md Initial commit 2019-10-17 01:47:23 +02:00
config.py utilize /etc/ directory 2020-02-03 20:49:52 +01:00
config_example.json alignment changes 2019-12-28 22:37:07 +01:00
ejabberdrpc.py backend readability and performance improvements 2019-12-29 01:16:17 +01:00
influx.py utilize /etc/ directory 2020-02-03 20:49:52 +01:00
prometheus.py improve configuration (with default values) - also for testing ejabberdrpc.py 2019-12-07 16:01:58 +01:00
requirements.txt alignment changes 2019-12-28 22:37:07 +01:00

README.md

ejabberd-metrics