Install and configure Django Prometheus exporter for OMERO.web. Assumes OMERO.web 5.6+ Python 3 has been installed using the ome.omero_web role.
See https://github.com/korfuri/django-prometheus
Note: metric endpoint /django_prometheus/metrics
is not authenticated.
Optional:
omero_web_django_prometheus_config_web
: Automatically setomero.web.*
configuration properties, defaultTrue
.omero_web_django_prometheus_stats_dir
: Prometheus temporary statistics directory
Warning This will make configuration changes to the OMERO.web and Gunicorn configurations, see templates/omero-web-config-django-prometheus-omero.j2
and defaults/main.yml
for details.
If you have customised your OMERO.web installation such as installing other web apps or setting omero.web
configuration properties ensure the configuration changes made by this role are compatible.
- hosts: localhost
roles:
- role: ome.omero_web
- role: ome.omero_web_django_prometheus