{"action":"created","comment":{"url":"https://api.github.com/repos/prometheus/alertmanager/pulls/comments/73131771","id":73131771,"diff_hunk":"@@ -394,3 +401,45 @@ func (c *PushoverConfig) UnmarshalYAML(unmarshal func(interface{}) error) error\n \t}\n \treturn checkOverflow(c.XXX, \"pushover config\")\n }\n+\n+// StatusPageConfig configures notifications via StatusPage.\n+type StatusPageConfig struct {\n+\tNotifierConfig `yaml:\",inline\"`\n+\n+\tAPIURL      string `yaml:\"api_url\"`\n+\tAPIKey      Secret `yaml:\"api_key\"`\n+\tPageId      string `yaml:\"page_id\"`\n+\tComponentId string `yaml:\"component_id\"`","path":"config/notifiers.go","position":26,"original_position":26,"commit_id":"29544941639111ffb0aea94953a3bd284261f827","original_commit_id":"29544941639111ffb0aea94953a3bd284261f827","user":{"login":"brian-brazil","id":7115638,"avatar_url":"https://avatars.githubusercontent.com/u/7115638?v=3","gravatar_id":"","url":"https://api.github.com/users/brian-brazil","html_url":"https://github.com/brian-brazil","followers_url":"https://api.github.com/users/brian-brazil/followers","following_url":"https://api.github.com/users/brian-brazil/following{/other_user}","gists_url":"https://api.github.com/users/brian-brazil/gists{/gist_id}","starred_url":"https://api.github.com/users/brian-brazil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brian-brazil/subscriptions","organizations_url":"https://api.github.com/users/brian-brazil/orgs","repos_url":"https://api.github.com/users/brian-brazil/repos","events_url":"https://api.github.com/users/brian-brazil/events{/privacy}","received_events_url":"https://api.github.com/users/brian-brazil/received_events","type":"User","site_admin":false},"body":"This should allow for a list","created_at":"2016-08-02T10:34:28Z","updated_at":"2016-08-02T10:34:28Z","html_url":"https://github.com/prometheus/alertmanager/pull/441#discussion_r73131771","pull_request_url":"https://api.github.com/repos/prometheus/alertmanager/pulls/441","_links":{"self":{"href":"https://api.github.com/repos/prometheus/alertmanager/pulls/comments/73131771"},"html":{"href":"https://github.com/prometheus/alertmanager/pull/441#discussion_r73131771"},"pull_request":{"href":"https://api.github.com/repos/prometheus/alertmanager/pulls/441"}}},"pull_request":{"url":"https://api.github.com/repos/prometheus/alertmanager/pulls/441","id":79706910,"html_url":"https://github.com/prometheus/alertmanager/pull/441","diff_url":"https://github.com/prometheus/alertmanager/pull/441.diff","patch_url":"https://github.com/prometheus/alertmanager/pull/441.patch","issue_url":"https://api.github.com/repos/prometheus/alertmanager/issues/441","number":441,"state":"open","locked":false,"title":"Add StatusPage.io notifier","user":{"login":"fstehle","id":453767,"avatar_url":"https://avatars.githubusercontent.com/u/453767?v=3","gravatar_id":"","url":"https://api.github.com/users/fstehle","html_url":"https://github.com/fstehle","followers_url":"https://api.github.com/users/fstehle/followers","following_url":"https://api.github.com/users/fstehle/following{/other_user}","gists_url":"https://api.github.com/users/fstehle/gists{/gist_id}","starred_url":"https://api.github.com/users/fstehle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fstehle/subscriptions","organizations_url":"https://api.github.com/users/fstehle/orgs","repos_url":"https://api.github.com/users/fstehle/repos","events_url":"https://api.github.com/users/fstehle/events{/privacy}","received_events_url":"https://api.github.com/users/fstehle/received_events","type":"User","site_admin":false},"body":"@sbstjn and me added the possibility to send alerts to StatusPage.io to automatically change a component's status.\r\n\r\n## How to configure/use\r\n\r\n### alertmanager.yml:\r\n```\r\nglobal:\r\n  statuspage_api_key: example-statuspage-api-key\r\n  statuspage_page_id: example-statuspage-page-id\r\n\r\ninhibit_rules:\r\n- source_match:\r\n    status: 'major-outage'\r\n  target_match:\r\n    status: 'partial-outage'\r\n  equal: ['category', 'component']\r\n\r\nroute:\r\n  routes:\r\n    - match:\r\n        category: statuspage\r\n      routes:\r\n        - match:\r\n            component: my-component\r\n          routes:\r\n            - match:\r\n                status: partial-outage\r\n              receiver: my-component-partial-outage\r\n            - match:\r\n                status: major-outage\r\n              receiver: my-component-major-outage\r\n\r\nreceivers:\r\n- name: my-component-partial-outage\r\n  statuspage_configs:\r\n  - component_id: example-statuspage-component-id\r\n    status: partial_outage\r\n- name: my-component-major-outage\r\n  statuspage_configs:\r\n  - component_id: example-statuspage-component-id\r\n    status: major_outage\r\n```\r\n\r\n### alerting rules\r\n```\r\nALERT MyComponentPartialOutage\r\n  IF component_uptime{component=\"my-component\"} < 0.8\r\n  FOR 60s\r\n  LABELS { category=\"statuspage\", component=\"my-component\", status=\"partial-outage\" }\r\n  ANNOTATIONS {\r\n    summary = \"\",\r\n    description = \"\",\r\n  }\r\n\r\nALERT MyComponentMajorOutage\r\n  IF component_uptime{component=\"my-component\"} < 0.5\r\n  FOR 60s\r\n  LABELS { category=\"statuspage\", component=\"my-component\", status=\"major-outage\" }\r\n  ANNOTATIONS {\r\n    summary = \"\",\r\n    description = \"\",\r\n  }\r\n```\r\n\r\nWhat do you think about it?","created_at":"2016-08-02T09:56:55Z","updated_at":"2016-08-02T10:34:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ebbc6a0df856adb16714bc1f79396804197e323c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/prometheus/alertmanager/pulls/441/commits","review_comments_url":"https://api.github.com/repos/prometheus/alertmanager/pulls/441/comments","review_comment_url":"https://api.github.com/repos/prometheus/alertmanager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/prometheus/alertmanager/issues/441/comments","statuses_url":"https://api.github.com/repos/prometheus/alertmanager/statuses/29544941639111ffb0aea94953a3bd284261f827","head":{"label":"Jimdo:statuspage","ref":"statuspage","sha":"29544941639111ffb0aea94953a3bd284261f827","user":{"login":"Jimdo","id":318890,"avatar_url":"https://avatars.githubusercontent.com/u/318890?v=3","gravatar_id":"","url":"https://api.github.com/users/Jimdo","html_url":"https://github.com/Jimdo","followers_url":"https://api.github.com/users/Jimdo/followers","following_url":"https://api.github.com/users/Jimdo/following{/other_user}","gists_url":"https://api.github.com/users/Jimdo/gists{/gist_id}","starred_url":"https://api.github.com/users/Jimdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jimdo/subscriptions","organizations_url":"https://api.github.com/users/Jimdo/orgs","repos_url":"https://api.github.com/users/Jimdo/repos","events_url":"https://api.github.com/users/Jimdo/events{/privacy}","received_events_url":"https://api.github.com/users/Jimdo/received_events","type":"Organization","site_admin":false},"repo":{"id":64478828,"name":"alertmanager","full_name":"Jimdo/alertmanager","owner":{"login":"Jimdo","id":318890,"avatar_url":"https://avatars.githubusercontent.com/u/318890?v=3","gravatar_id":"","url":"https://api.github.com/users/Jimdo","html_url":"https://github.com/Jimdo","followers_url":"https://api.github.com/users/Jimdo/followers","following_url":"https://api.github.com/users/Jimdo/following{/other_user}","gists_url":"https://api.github.com/users/Jimdo/gists{/gist_id}","starred_url":"https://api.github.com/users/Jimdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jimdo/subscriptions","organizations_url":"https://api.github.com/users/Jimdo/orgs","repos_url":"https://api.github.com/users/Jimdo/repos","events_url":"https://api.github.com/users/Jimdo/events{/privacy}","received_events_url":"https://api.github.com/users/Jimdo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Jimdo/alertmanager","description":"Prometheus Alertmanager","fork":true,"url":"https://api.github.com/repos/Jimdo/alertmanager","forks_url":"https://api.github.com/repos/Jimdo/alertmanager/forks","keys_url":"https://api.github.com/repos/Jimdo/alertmanager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Jimdo/alertmanager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Jimdo/alertmanager/teams","hooks_url":"https://api.github.com/repos/Jimdo/alertmanager/hooks","issue_events_url":"https://api.github.com/repos/Jimdo/alertmanager/issues/events{/number}","events_url":"https://api.github.com/repos/Jimdo/alertmanager/events","assignees_url":"https://api.github.com/repos/Jimdo/alertmanager/assignees{/user}","branches_url":"https://api.github.com/repos/Jimdo/alertmanager/branches{/branch}","tags_url":"https://api.github.com/repos/Jimdo/alertmanager/tags","blobs_url":"https://api.github.com/repos/Jimdo/alertmanager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Jimdo/alertmanager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Jimdo/alertmanager/git/refs{/sha}","trees_url":"https://api.github.com/repos/Jimdo/alertmanager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Jimdo/alertmanager/statuses/{sha}","languages_url":"https://api.github.com/repos/Jimdo/alertmanager/languages","stargazers_url":"https://api.github.com/repos/Jimdo/alertmanager/stargazers","contributors_url":"https://api.github.com/repos/Jimdo/alertmanager/contributors","subscribers_url":"https://api.github.com/repos/Jimdo/alertmanager/subscribers","subscription_url":"https://api.github.com/repos/Jimdo/alertmanager/subscription","commits_url":"https://api.github.com/repos/Jimdo/alertmanager/commits{/sha}","git_commits_url":"https://api.github.com/repos/Jimdo/alertmanager/git/commits{/sha}","comments_url":"https://api.github.com/repos/Jimdo/alertmanager/comments{/number}","issue_comment_url":"https://api.github.com/repos/Jimdo/alertmanager/issues/comments{/number}","contents_url":"https://api.github.com/repos/Jimdo/alertmanager/contents/{+path}","compare_url":"https://api.github.com/repos/Jimdo/alertmanager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Jimdo/alertmanager/merges","archive_url":"https://api.github.com/repos/Jimdo/alertmanager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Jimdo/alertmanager/downloads","issues_url":"https://api.github.com/repos/Jimdo/alertmanager/issues{/number}","pulls_url":"https://api.github.com/repos/Jimdo/alertmanager/pulls{/number}","milestones_url":"https://api.github.com/repos/Jimdo/alertmanager/milestones{/number}","notifications_url":"https://api.github.com/repos/Jimdo/alertmanager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Jimdo/alertmanager/labels{/name}","releases_url":"https://api.github.com/repos/Jimdo/alertmanager/releases{/id}","deployments_url":"https://api.github.com/repos/Jimdo/alertmanager/deployments","created_at":"2016-07-29T12:29:10Z","updated_at":"2016-07-29T12:29:11Z","pushed_at":"2016-08-02T09:43:48Z","git_url":"git://github.com/Jimdo/alertmanager.git","ssh_url":"git@github.com:Jimdo/alertmanager.git","clone_url":"https://github.com/Jimdo/alertmanager.git","svn_url":"https://github.com/Jimdo/alertmanager","homepage":"","size":6104,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"prometheus:master","ref":"master","sha":"a9f7c9f318ae39a67b5594efc927a2d137469af1","user":{"login":"prometheus","id":3380462,"avatar_url":"https://avatars.githubusercontent.com/u/3380462?v=3","gravatar_id":"","url":"https://api.github.com/users/prometheus","html_url":"https://github.com/prometheus","followers_url":"https://api.github.com/users/prometheus/followers","following_url":"https://api.github.com/users/prometheus/following{/other_user}","gists_url":"https://api.github.com/users/prometheus/gists{/gist_id}","starred_url":"https://api.github.com/users/prometheus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prometheus/subscriptions","organizations_url":"https://api.github.com/users/prometheus/orgs","repos_url":"https://api.github.com/users/prometheus/repos","events_url":"https://api.github.com/users/prometheus/events{/privacy}","received_events_url":"https://api.github.com/users/prometheus/received_events","type":"Organization","site_admin":false},"repo":{"id":11452538,"name":"alertmanager","full_name":"prometheus/alertmanager","owner":{"login":"prometheus","id":3380462,"avatar_url":"https://avatars.githubusercontent.com/u/3380462?v=3","gravatar_id":"","url":"https://api.github.com/users/prometheus","html_url":"https://github.com/prometheus","followers_url":"https://api.github.com/users/prometheus/followers","following_url":"https://api.github.com/users/prometheus/following{/other_user}","gists_url":"https://api.github.com/users/prometheus/gists{/gist_id}","starred_url":"https://api.github.com/users/prometheus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prometheus/subscriptions","organizations_url":"https://api.github.com/users/prometheus/orgs","repos_url":"https://api.github.com/users/prometheus/repos","events_url":"https://api.github.com/users/prometheus/events{/privacy}","received_events_url":"https://api.github.com/users/prometheus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/prometheus/alertmanager","description":"Prometheus Alertmanager","fork":false,"url":"https://api.github.com/repos/prometheus/alertmanager","forks_url":"https://api.github.com/repos/prometheus/alertmanager/forks","keys_url":"https://api.github.com/repos/prometheus/alertmanager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prometheus/alertmanager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prometheus/alertmanager/teams","hooks_url":"https://api.github.com/repos/prometheus/alertmanager/hooks","issue_events_url":"https://api.github.com/repos/prometheus/alertmanager/issues/events{/number}","events_url":"https://api.github.com/repos/prometheus/alertmanager/events","assignees_url":"https://api.github.com/repos/prometheus/alertmanager/assignees{/user}","branches_url":"https://api.github.com/repos/prometheus/alertmanager/branches{/branch}","tags_url":"https://api.github.com/repos/prometheus/alertmanager/tags","blobs_url":"https://api.github.com/repos/prometheus/alertmanager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prometheus/alertmanager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prometheus/alertmanager/git/refs{/sha}","trees_url":"https://api.github.com/repos/prometheus/alertmanager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prometheus/alertmanager/statuses/{sha}","languages_url":"https://api.github.com/repos/prometheus/alertmanager/languages","stargazers_url":"https://api.github.com/repos/prometheus/alertmanager/stargazers","contributors_url":"https://api.github.com/repos/prometheus/alertmanager/contributors","subscribers_url":"https://api.github.com/repos/prometheus/alertmanager/subscribers","subscription_url":"https://api.github.com/repos/prometheus/alertmanager/subscription","commits_url":"https://api.github.com/repos/prometheus/alertmanager/commits{/sha}","git_commits_url":"https://api.github.com/repos/prometheus/alertmanager/git/commits{/sha}","comments_url":"https://api.github.com/repos/prometheus/alertmanager/comments{/number}","issue_comment_url":"https://api.github.com/repos/prometheus/alertmanager/issues/comments{/number}","contents_url":"https://api.github.com/repos/prometheus/alertmanager/contents/{+path}","compare_url":"https://api.github.com/repos/prometheus/alertmanager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prometheus/alertmanager/merges","archive_url":"https://api.github.com/repos/prometheus/alertmanager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prometheus/alertmanager/downloads","issues_url":"https://api.github.com/repos/prometheus/alertmanager/issues{/number}","pulls_url":"https://api.github.com/repos/prometheus/alertmanager/pulls{/number}","milestones_url":"https://api.github.com/repos/prometheus/alertmanager/milestones{/number}","notifications_url":"https://api.github.com/repos/prometheus/alertmanager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prometheus/alertmanager/labels{/name}","releases_url":"https://api.github.com/repos/prometheus/alertmanager/releases{/id}","deployments_url":"https://api.github.com/repos/prometheus/alertmanager/deployments","created_at":"2013-07-16T15:06:31Z","updated_at":"2016-07-31T14:43:13Z","pushed_at":"2016-08-02T09:56:55Z","git_url":"git://github.com/prometheus/alertmanager.git","ssh_url":"git@github.com:prometheus/alertmanager.git","clone_url":"https://github.com/prometheus/alertmanager.git","svn_url":"https://github.com/prometheus/alertmanager","homepage":"","size":6838,"stargazers_count":195,"watchers_count":195,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":120,"mirror_url":null,"open_issues_count":69,"forks":120,"open_issues":69,"watchers":195,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/prometheus/alertmanager/pulls/441"},"html":{"href":"https://github.com/prometheus/alertmanager/pull/441"},"issue":{"href":"https://api.github.com/repos/prometheus/alertmanager/issues/441"},"comments":{"href":"https://api.github.com/repos/prometheus/alertmanager/issues/441/comments"},"review_comments":{"href":"https://api.github.com/repos/prometheus/alertmanager/pulls/441/comments"},"review_comment":{"href":"https://api.github.com/repos/prometheus/alertmanager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/prometheus/alertmanager/pulls/441/commits"},"statuses":{"href":"https://api.github.com/repos/prometheus/alertmanager/statuses/29544941639111ffb0aea94953a3bd284261f827"}}}}
{"actor":{"display_login":"brian-brazil"}}