{"action":"created","issue":{"url":"https://api.github.com/repos/raintank/grafana/issues/91","labels_url":"https://api.github.com/repos/raintank/grafana/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/raintank/grafana/issues/91/comments","events_url":"https://api.github.com/repos/raintank/grafana/issues/91/events","html_url":"https://github.com/raintank/grafana/issues/91","id":75758014,"number":91,"title":"tracking important errors","user":{"login":"Dieterbe","id":20774,"avatar_url":"https://avatars.githubusercontent.com/u/20774?v=3","gravatar_id":"","url":"https://api.github.com/users/Dieterbe","html_url":"https://github.com/Dieterbe","followers_url":"https://api.github.com/users/Dieterbe/followers","following_url":"https://api.github.com/users/Dieterbe/following{/other_user}","gists_url":"https://api.github.com/users/Dieterbe/gists{/gist_id}","starred_url":"https://api.github.com/users/Dieterbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dieterbe/subscriptions","organizations_url":"https://api.github.com/users/Dieterbe/orgs","repos_url":"https://api.github.com/users/Dieterbe/repos","events_url":"https://api.github.com/users/Dieterbe/events{/privacy}","received_events_url":"https://api.github.com/users/Dieterbe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-12T22:17:10Z","updated_at":"2015-05-13T09:22:40Z","closed_at":null,"body":"do we have any convention on how we will keep tabs on critical/important error events in grafana?\r\nmaybe log to a file and then use heka or logstash to shove them into ES?"},"comment":{"url":"https://api.github.com/repos/raintank/grafana/issues/comments/101587458","html_url":"https://github.com/raintank/grafana/issues/91#issuecomment-101587458","issue_url":"https://api.github.com/repos/raintank/grafana/issues/91","id":101587458,"user":{"login":"woodsaj","id":8415072,"avatar_url":"https://avatars.githubusercontent.com/u/8415072?v=3","gravatar_id":"","url":"https://api.github.com/users/woodsaj","html_url":"https://github.com/woodsaj","followers_url":"https://api.github.com/users/woodsaj/followers","following_url":"https://api.github.com/users/woodsaj/following{/other_user}","gists_url":"https://api.github.com/users/woodsaj/gists{/gist_id}","starred_url":"https://api.github.com/users/woodsaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woodsaj/subscriptions","organizations_url":"https://api.github.com/users/woodsaj/orgs","repos_url":"https://api.github.com/users/woodsaj/repos","events_url":"https://api.github.com/users/woodsaj/events{/privacy}","received_events_url":"https://api.github.com/users/woodsaj/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T09:22:40Z","updated_at":"2015-05-13T09:22:40Z","body":"You can use the existing events in Grafana.\r\n\r\nhttps://github.com/raintank/grafana/blob/master/pkg/events/events.go\r\n\r\nIf enabled, these events will be pushed to a rabbitmq Topic Exchange with the routingKey set to `Priority.eventType`.  This is handled by eventpublisher.eventListener\r\nhttps://github.com/raintank/grafana/blob/master/pkg/services/eventpublisher/eventpublisher.go#L135\r\n\r\nSo an event defined as\r\n\r\n```\r\ntype OrgCreated struct {\r\n\tTimestamp time.Time `json:\"timestamp\"`\r\n\tId        int64     `json:\"id\"`\r\n\tName      string    `json:\"name\"`\r\n}\r\n```\r\n\r\nwill use the routingKey `INFO.org.created`\r\n\r\nThe events package will need some updating as it hard codes the event.Priority to 'INFO'\r\n\r\n"}}