From e484db4d27b65e1ee313f181892dc0d5116828e1 Mon Sep 17 00:00:00 2001 From: thefosk Date: Fri, 12 Feb 2016 14:15:43 -0800 Subject: [PATCH] Showing ngx timers stats in the API --- kong/api/routes/kong.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kong/api/routes/kong.lua b/kong/api/routes/kong.lua index a5660c5f89e..c27bf288588 100644 --- a/kong/api/routes/kong.lua +++ b/kong/api/routes/kong.lua @@ -14,6 +14,10 @@ return { tagline = "Welcome to Kong", version = constants.VERSION, hostname = utils.get_hostname(), + timers = { + running = ngx.timer.running_count(), + pending = ngx.timer.pending_count() + }, plugins = { available_on_server = configuration.plugins, enabled_in_cluster = db_plugins