{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/1570","repository_url":"https://api.github.com/repos/prometheus/prometheus","labels_url":"https://api.github.com/repos/prometheus/prometheus/issues/1570/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/prometheus/issues/1570/comments","events_url":"https://api.github.com/repos/prometheus/prometheus/issues/1570/events","html_url":"https://github.com/prometheus/prometheus/issues/1570","id":150145299,"number":1570,"title":"HTTP API for getting alerts","user":{"login":"hryamzik","id":1643962,"avatar_url":"https://avatars1.githubusercontent.com/u/1643962?v=4","gravatar_id":"","url":"https://api.github.com/users/hryamzik","html_url":"https://github.com/hryamzik","followers_url":"https://api.github.com/users/hryamzik/followers","following_url":"https://api.github.com/users/hryamzik/following{/other_user}","gists_url":"https://api.github.com/users/hryamzik/gists{/gist_id}","starred_url":"https://api.github.com/users/hryamzik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hryamzik/subscriptions","organizations_url":"https://api.github.com/users/hryamzik/orgs","repos_url":"https://api.github.com/users/hryamzik/repos","events_url":"https://api.github.com/users/hryamzik/events{/privacy}","received_events_url":"https://api.github.com/users/hryamzik/received_events","type":"User","site_admin":false},"labels":[{"id":365567222,"url":"https://api.github.com/repos/prometheus/prometheus/labels/component/ui","name":"component/ui","color":"0052cc","default":false},{"id":365563592,"url":"https://api.github.com/repos/prometheus/prometheus/labels/kind/enhancement","name":"kind/enhancement","color":"c7def8","default":false},{"id":647013637,"url":"https://api.github.com/repos/prometheus/prometheus/labels/priority/P3","name":"priority/P3","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":28,"created_at":"2016-04-21T17:51:14Z","updated_at":"2018-02-09T20:11:18Z","closed_at":null,"author_association":"NONE","body":"I didn't find anything about API for the /alerts in [docs](https://prometheus.io/docs/). I can see that /alerts returns html:\n\n``` go\nrouter.Get(\"/alerts\", instrf(\"alerts\", h.alerts))\n```\n\nBut is it possible to get them with json?\n"},"comment":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/comments/364550809","html_url":"https://github.com/prometheus/prometheus/issues/1570#issuecomment-364550809","issue_url":"https://api.github.com/repos/prometheus/prometheus/issues/1570","id":364550809,"user":{"login":"omadawn","id":603925,"avatar_url":"https://avatars3.githubusercontent.com/u/603925?v=4","gravatar_id":"","url":"https://api.github.com/users/omadawn","html_url":"https://github.com/omadawn","followers_url":"https://api.github.com/users/omadawn/followers","following_url":"https://api.github.com/users/omadawn/following{/other_user}","gists_url":"https://api.github.com/users/omadawn/gists{/gist_id}","starred_url":"https://api.github.com/users/omadawn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omadawn/subscriptions","organizations_url":"https://api.github.com/users/omadawn/orgs","repos_url":"https://api.github.com/users/omadawn/repos","events_url":"https://api.github.com/users/omadawn/events{/privacy}","received_events_url":"https://api.github.com/users/omadawn/received_events","type":"User","site_admin":false},"created_at":"2018-02-09T20:11:18Z","updated_at":"2018-02-09T20:11:18Z","author_association":"NONE","body":"I also have an existing need to be able to retrieve all rules via an API (mainly non-firing alerts.) Either #3656 or #3391 should address my need. Is there a plan to implement it yet and can I vote for this functionality if not?"}}
{"actor":{"display_login":"omadawn"}}