Added amqp to health check
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -11,7 +11,7 @@ from db import db
|
||||
from marshm import ma
|
||||
from influxus import influx_db
|
||||
from resources import SampleResource, SampleParameterResource
|
||||
from healthchecks import health_database_status
|
||||
from healthchecks import health_database_status, ampq_connection_status
|
||||
|
||||
import atexit
|
||||
|
||||
@ -70,5 +70,7 @@ api.add_resource(SampleResource, "/sample")
|
||||
api.add_resource(SampleParameterResource, '/sample/<tag>')
|
||||
|
||||
health.add_check(health_database_status)
|
||||
health.add_check(ampq_connection_status)
|
||||
|
||||
app.add_url_rule("/healthz", "healthcheck", view_func=lambda: health.run())
|
||||
|
||||
|
Reference in New Issue
Block a user