Skip to content

Commit

Permalink
Merge pull request #992 from Mashape/feature/timers
Browse files Browse the repository at this point in the history
Showing ngx timers stats in the API
  • Loading branch information
subnetmarco committed Feb 12, 2016
2 parents cb6337d + e484db4 commit 90ffb0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kong/api/routes/kong.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 90ffb0b

Please sign in to comment.