Add healthcheck to /versions endpoint

Setting to /versions endpoint makes for easy HAProxy config
This commit is contained in:
Steve Lewis 2015-12-17 12:04:55 -08:00
parent 1b3e9ef396
commit 31137adbe2
2 changed files with 8 additions and 1 deletions

View File

@ -100,6 +100,7 @@ gnocchi_service_internaluri_proto: "{{ openstack_service_internaluri_proto | def
gnocchi_service_publicurl: "{{ gnocchi_service_publicuri_proto }}://{{ external_lb_vip_address }}:{{ gnocchi_service_port }}"
gnocchi_service_internalurl: "{{ gnocchi_service_internaluri_proto }}://{{ internal_lb_vip_address }}:{{ gnocchi_service_port }}"
gnocchi_service_adminurl: "{{ gnocchi_service_adminuri_proto }}://{{ internal_lb_vip_address }}:{{ gnocchi_service_port }}"
gnocchi_healthcheck_disable_path: /etc/gnocchi/healthcheck_disable
#: Gnocchi API program name
gnocchi_api_program_name: gnocchi-api

View File

@ -2,7 +2,7 @@
# Remove keystone_authtoken from the pipeline if you don't want to use keystone authentication
[pipeline:main]
pipeline = keystone_authtoken gnocchi
pipeline = healthcheck keystone_authtoken gnocchi
[app:gnocchi]
paste.app_factory = gnocchi.rest.app:app_factory
@ -11,6 +11,12 @@ paste.app_factory = gnocchi.rest.app:app_factory
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
oslo_config_project = gnocchi
[filter:healthcheck]
paste.filter_factory = oslo_middleware:Healthcheck.factory
path = /versions
backends = disable_by_file
disable_by_file_path = {{ gnocchi_healthcheck_disable_path }}
[filter:cors]
paste.filter_factory = oslo_middleware.cors:filter_factory
oslo_config_project = gnocchi