Skip to main content

Pre-Backup script that synchronises git and mercurial repositories

Project description


appuio_routes_monitoring is a tool to generate yaml code for hieradata from APPUiO routes to configure http icinga2 monitoring checks for those routes. However the script should work on any openshift cluster.


appuio_routes_monitoring expects the oc to be in the path variable and you need to be logged in to APPUiO before calling this script.

By default the script will generate yaml code for all routes the logged in user has access to.

See usage section of this document for details.


appuio_routes_monitoring supports python >=3.4 and has the following 3rd-party dependencies

appuio_routes_monitoring further relies on the oc binary to extract the routes from the openshift cluster.


appuio_routes_monitoring can be easily installed using pip: pip install appuio_routes_monitoring


appuio_routes_monitoring does not have any configuration files. But it does rely on the oc binary and valid session to APPUiO. Furthermore the script reads annotations from the routes to generate the appropriate yaml code. Currently the following annotations are supported:


Setting this annotation on the route to true, will set the alert_customer variable to true as well. This will configure the http check to alert to the defined e-mail address.

monitoring/alert_vshn: ‘true’

Setting this annotation on the route to true, will set the production_level of the check to 4, making the check a 24/7 check. This means VSHN will be alerted anytime the check fails.


Setting this annotation on the route to a URI, will set the http_uri to the specified path. If the annoation is missing, the http_uri will default to /.


usage: generate_monitoring_check [-h] [-p PROJECTS [PROJECTS ...]] [-k HIERAKEY]

generate hieradata from appuio routes

optional arguments:
  -h, --help            show this help message and exit


Generate yaml code for project my-test-project

generate_monitoring_check -p my-test-project
        display_name: on APPUiO in my-test-project
        http_ssl: true
        http_uri: /
            alert_customer: false


run development version

git clone
cd appuio_routes_monitoring
python -m venv pyvenv
. pyvenv/bin/activate
pip install -r requirements.txt

python -m appuio_routes_monitoring

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for appuio-routes-monitoring, version 1.1.1
Filename, size & hash File type Python version Upload date
appuio_routes_monitoring-1.1.1-py3-none-any.whl (6.0 kB) View hashes Wheel py3
appuio_routes_monitoring-1.1.1.tar.gz (4.3 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page