{"action":"created","issue":{"url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/issues/9","repository_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus","labels_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/issues/9/comments","events_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/issues/9/events","html_url":"https://github.com/knyar/nginx-lua-prometheus/issues/9","id":196886849,"number":9,"title":"How to get error metric of website","user":{"login":"messi655","id":10138068,"avatar_url":"https://avatars.githubusercontent.com/u/10138068?v=3","gravatar_id":"","url":"https://api.github.com/users/messi655","html_url":"https://github.com/messi655","followers_url":"https://api.github.com/users/messi655/followers","following_url":"https://api.github.com/users/messi655/following{/other_user}","gists_url":"https://api.github.com/users/messi655/gists{/gist_id}","starred_url":"https://api.github.com/users/messi655/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/messi655/subscriptions","organizations_url":"https://api.github.com/users/messi655/orgs","repos_url":"https://api.github.com/users/messi655/repos","events_url":"https://api.github.com/users/messi655/events{/privacy}","received_events_url":"https://api.github.com/users/messi655/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-21T09:40:31Z","updated_at":"2016-12-21T13:57:45Z","closed_at":"2016-12-21T13:57:45Z","body":"Hi @knyar ,\r\n\r\nThanks for your script, it's very helpful for me.\r\nBut If I want to get the metrics error of my website (ex: www.example.com) how can I do that?\r\nPlease give me some suggest.\r\n\r\nthanks,\r\nTin\r\n"},"comment":{"url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/issues/comments/268528707","html_url":"https://github.com/knyar/nginx-lua-prometheus/issues/9#issuecomment-268528707","issue_url":"https://api.github.com/repos/knyar/nginx-lua-prometheus/issues/9","id":268528707,"user":{"login":"knyar","id":1687799,"avatar_url":"https://avatars.githubusercontent.com/u/1687799?v=3","gravatar_id":"","url":"https://api.github.com/users/knyar","html_url":"https://github.com/knyar","followers_url":"https://api.github.com/users/knyar/followers","following_url":"https://api.github.com/users/knyar/following{/other_user}","gists_url":"https://api.github.com/users/knyar/gists{/gist_id}","starred_url":"https://api.github.com/users/knyar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knyar/subscriptions","organizations_url":"https://api.github.com/users/knyar/orgs","repos_url":"https://api.github.com/users/knyar/repos","events_url":"https://api.github.com/users/knyar/events{/privacy}","received_events_url":"https://api.github.com/users/knyar/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T13:57:45Z","updated_at":"2016-12-21T13:57:45Z","body":"If you follow the \"Quick start guide\" section in README.md, you should get a `nginx_http_requests_total` metric with HTTP status code as a separate field. You can then use Prometheus to see the number of requests that resulted in a response with code 500.\r\n\r\nFor example, to see the rate of errors per host, you could use the following expression: `sum(rate(nginx_http_requests_total{status=~\"5..\"}[2m])) by (host)`"}}
{"actor":{"display_login":"knyar"}}