openresty / lua-resty-upstream-healthcheck

Health Checker for Nginx Upstream Servers in Pure Lua
521 stars 134 forks source link

How can support register the callback function when peer down #78

Closed cleverpig closed 3 years ago

cleverpig commented 3 years ago

I will call some fail warning program via kafka or redis client, so need this callback function. Just like the hook_up: https://github.com/p0pr0ck5/lua-resty-upstream-healthcheck

cleverpig commented 3 years ago

I've made it by add hook_up and hook_down callback functions to send alert message to kafka! share here: healthcheckAndKafkaRemix.zip