aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request 'refactor os.environ to pathlib' (#1) from configpath ↵nico2020-11-061-5/+4
|\ | | | | | | | | | | into master Reviewed-on: https://dev.sum7.eu/sum7/ejabberd-tools/pulls/1
| * pathlib config path - short versiongenofire2020-09-261-3/+2
| |
| * refactor os.environ to pathlibnico2020-09-261-4/+4
|/ | | | * config.py should use the smaller lib to determine which config to load
* pre-commit frameworknico2020-09-183-0/+41
| | | | + add pre-commit framework to reduce the amount the ci workers have to stem
* Merge branch 'exception' into 'master'nico2020-08-062-5/+5
|\ | | | | | | | | | | | | Bare exception handling Closes #4 and #5 See merge request sum7/ejabberd-tools!7
| * exception handlinggenofire2020-07-192-5/+5
|/
* Merge branch 'add-ci' into 'master'genofire2020-06-2911-107/+206
|\ | | | | | | | | Add ci See merge request sum7/ejabberd-tools!6
| * flake8 fixupnico2020-06-295-10/+10
| | | | | | | | | | | | | | | | | | * 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.
| * black reformatnico2020-06-297-100/+136
| | | | | | | | * black reformatted the code
| * black flake8 compatabilitynico2020-06-291-1/+1
| | | | | | | | | | | | + add E203 whitespace before ‘:’ to flake8 ignore Due to black's formatting we need to ignore flake8 warning.
| * tool configurationnico2020-06-273-9/+33
| | | | | | | | | | | | | | | | * seperate tool config and tool call * rename black stage to code consistency for a greater readability - remove allow_failure from the third stage I did decide to remove the allowed failure tag to encourage a higher code quality.
| * finalizing the ci pipelinesnico2020-06-271-9/+10
| | | | | | | | | | - revert 565702d9 as it did not behave like it should have + add black pipeline for code consistency
| * gitlab ci syntaxnico2020-06-271-3/+2
| | | | | | | | * multiple before_script segments overwrite one another
| * gitlab ci cachingnico2020-06-271-1/+16
| | | | | | | | | | + add pip caching + add venv caching
| * split up flake jobsnico2020-06-261-5/+11
| | | | | | | | | | * split flake8 jobs into two seperate jobs to better control the result + add allow_failure: true to the pep8 job to not discourage anybody from commiting code
| * 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