{"action":"created","issue":{"url":"https://api.github.com/repos/mholt/caddy/issues/285","labels_url":"https://api.github.com/repos/mholt/caddy/issues/285/labels{/name}","comments_url":"https://api.github.com/repos/mholt/caddy/issues/285/comments","events_url":"https://api.github.com/repos/mholt/caddy/issues/285/events","html_url":"https://github.com/mholt/caddy/pull/285","id":112505405,"number":285,"title":"Add expvar middleware","user":{"login":"mem","id":189701,"avatar_url":"https://avatars.githubusercontent.com/u/189701?v=3","gravatar_id":"","url":"https://api.github.com/users/mem","html_url":"https://github.com/mem","followers_url":"https://api.github.com/users/mem/followers","following_url":"https://api.github.com/users/mem/following{/other_user}","gists_url":"https://api.github.com/users/mem/gists{/gist_id}","starred_url":"https://api.github.com/users/mem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mem/subscriptions","organizations_url":"https://api.github.com/users/mem/orgs","repos_url":"https://api.github.com/users/mem/repos","events_url":"https://api.github.com/users/mem/events{/privacy}","received_events_url":"https://api.github.com/users/mem/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mholt/caddy/labels/under%20review","name":"under review","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-21T03:33:45Z","updated_at":"2015-11-06T16:13:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mholt/caddy/pulls/285","html_url":"https://github.com/mholt/caddy/pull/285","diff_url":"https://github.com/mholt/caddy/pull/285.diff","patch_url":"https://github.com/mholt/caddy/pull/285.patch"},"body":"Right now it has a very simple configuration:\r\n\r\n\texpvar /debug/vars\r\n\r\nIt will return a JSON object with memory statistics and the command line\r\nused to start caddy, which are the two expvars that expvar registers by\r\ndefault.\r\n\r\nSince it's doing the same thing as expvar, any published variable will show up in the output.\r\n\r\nWhat I'd like to do later is have per-vhost variables. Could be as simple as naming the published variables along the lines of host/varname."},"comment":{"url":"https://api.github.com/repos/mholt/caddy/issues/comments/154454189","html_url":"https://github.com/mholt/caddy/pull/285#issuecomment-154454189","issue_url":"https://api.github.com/repos/mholt/caddy/issues/285","id":154454189,"user":{"login":"mem","id":189701,"avatar_url":"https://avatars.githubusercontent.com/u/189701?v=3","gravatar_id":"","url":"https://api.github.com/users/mem","html_url":"https://github.com/mem","followers_url":"https://api.github.com/users/mem/followers","following_url":"https://api.github.com/users/mem/following{/other_user}","gists_url":"https://api.github.com/users/mem/gists{/gist_id}","starred_url":"https://api.github.com/users/mem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mem/subscriptions","organizations_url":"https://api.github.com/users/mem/orgs","repos_url":"https://api.github.com/users/mem/repos","events_url":"https://api.github.com/users/mem/events{/privacy}","received_events_url":"https://api.github.com/users/mem/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T16:13:46Z","updated_at":"2015-11-06T16:13:46Z","body":"Thanks for looking at it!\r\n\r\nYou are right, the name could be better. Like I said elsewhere, what I'd like to do is provide something on top of this to hook into Prometheus, so monitoring is the primary goal, but not the only one. My two alternatives for names would be \"monitor\" and \"debug\". Any better alternatives?"}}