aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* flake8 gitlab ajustmentsnico2020-06-261-4/+6
| | | | | | | | | * ajust ci config for gitlabs ci * reduced max line length to 120 It seems gitlab prefers it that way + add some comments
* initial ci runner confignico2020-06-261-0/+16
| | | | * have mercy on my soul
* add new metrics to prometheusgenofire2020-06-261-0/+4
|
* add call for nodenamegenofire2020-06-261-0/+18
|
* add new values to influxnico2020-06-261-0/+2
| | | | + add uptime and process values to influx exporter
* properly implement more valuesnico2020-06-261-2/+16
| | | | | * fix the bad job with commit bf05b826 + proper guidance methods complete with a proper name
* pep8 and import ajustmentsnico2020-06-262-21/+19
| | | | | * optimzed import statements * pep8 alignment changes, mostly missing whitespaces, newlines or redundant brackets
* fix get_nodes not being a public methodnico2020-06-251-2/+2
| | | | * fix get_nodes being a public method
* add more global valuesnico2020-06-252-3/+15
| | | | | | * organize global values + add global uptime value + add global processes count value
* Inherits control in metrics (+ fix nameing to _count)genofire2020-06-244-46/+45
|\ | | | | See merge request sum7/ejabberd-tools!5
| * pep8 and friendsnico2020-06-174-23/+24
| | | | | | | | | | | | | | | | * add default logging NullHandler * fix indentation mismatch * rename control to calls to better point out its purpose * rename class to EjabberdApiCalls to better point out it purpose * changed get_nodes to an internal support method
| * Revert "add more global values"nico2020-06-172-15/+3
| | | | | | | | | | | | This reverts commit 990d3abdc60bea8a525d4fbdc56cdff2e44947ce. my mistake, I hadn't checked if I am on the correct branch
| * add more global valuesnico2020-06-172-3/+15
| | | | | | | | | | + add global uptime value + add global processes count value
| * fix muc_hostgenofire2020-06-101-3/+3
| |
| * improve control.pygenofire2020-06-102-19/+19
| |
| * metrics: use inherits of control/apigenofire2020-06-101-20/+18
| |
* | clarify documentationnico2020-06-103-39/+43
| | | | | | | | | | | | * align url parameter to the ejabberd example * update virtualenv command * remove influxdb service requirement from service template
* | debugging by defaultnico2020-06-101-2/+3
|/ | | | * disable debug logs by default in the config template
* syntax and pep8nico2020-06-101-4/+4
| | | | what have I become - a pep8 monster
* systemd: prometheus does not needed on same machine then the exportergenofire2020-06-101-2/+1
|
* prometheus: fix client by ipgenofire2020-06-101-1/+1
|
* systemd service hardeningnico2020-06-103-0/+29
| | | | | | + add systemd protective features to restrict the system access + add service documentation link + add service required / after fields
* no unicornsnico2020-06-103-3/+0
| | | | gunicorn VIRTUAL_ENV detection is not compatible to our tools
* systemd: add support for venv and cleanupgenofire2020-06-103-2/+27
|
* systemd: prometheus files with venvgenofire2020-06-101-2/+4
|
* add cleanup.pygenofire2020-06-105-90/+203
|
* further documentationnico2020-06-102-8/+39
| | | | + add systemd service documentation
* fixupnico2020-06-102-3/+4
| | | | | * update version regex to succesfully match only the version string + add missing import
* fix ipv6 support for prometheusgenofire2020-06-091-0/+3
|
* add logging to influxdbgenofire2020-06-091-0/+3
|
* fix prometheusgenofire2020-06-091-1/+1
|
* fix versionstring parsinggenofire2020-06-091-2/+4
|
* update clients naminggenofire2020-06-091-1/+1
|
* refactory prometheus exporter - use python libgenofire2020-06-093-65/+82
|
* initial documentation attemptnico2020-06-091-0/+73
| | | | + add install and configuration documentations
* fix version string being unpopulatednico2020-06-092-2/+13
| | | | | | | | | | * fix version string being empty + add error code 17 to the README resolves #2 Error Code 17 means one of two things a) the configured user credentials are not correct, therefore the user is not able to properly login b) the configured user does not have the correct permissions to interact with the api
* Client ressource additionnico2020-05-091-2/+3
| | | | | * update Xabber ressource names + add Monal ressource
* code cleanupnico2020-04-284-60/+80
| | | | | | | | * 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
* update requirements filenico2020-04-091-1/+3
| | | | + add ruamel.yaml to requierments file
* config handelingnico2020-04-081-10/+10
| | | | * add proper configuration handeling to the metrics class
* Merge branch 'yaml' into 'master'Martin/Geno2020-03-074-24/+36
|\ | | | | | | | | yaml config See merge request sum7/ejabberd-metrics!4
| * yaml confignico2020-03-064-24/+36
|/ | | | | | | | + implement yaml config file parsing * update default config file * update global config file from .conf to .yml ( debatable ) Signed-off-by: nico <nico@magicbroccoli.de>
* better session handelingnico2020-03-061-7/+14
| | | | | | * 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.
* customizable muc hostnico2020-02-171-2/+3
| | | | + add optional argument to the EjabberdMetrics class to customize the default muc host sub-domain
* config file location overwritenico2020-02-172-7/+11
| | | | | | + add environment toggle to overwrite the config directory setting ejabberd_metrics_dev to 1 / true -> set the config path inside the dev directory
* Merge branch 'etc_config' into 'master'nico2020-02-164-32/+91
|\ | | | | | | | | utilize /etc/ directory See merge request sum7/ejabberd-metrics!3
| * utilize /etc/ directorynico2020-02-164-32/+91
|/ | | | + add config.py to read / touch create the etc config file
* ejabberd 19.* fixnico2020-02-161-1/+1
| | | | * ejabberd 19 and above report muc count only on the muc host
* fetch_muc improvementsnico2020-02-042-2/+19
| | | | | + add parsed version string property * improve fetch_muc method to not request the status string for each request
* backend readability and performance improvementsnico2019-12-291-25/+36
| | | | | | | | | + 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