diff --git a/README.md b/README.md index 2bd6269..7c0325d 100644 --- a/README.md +++ b/README.md @@ -26,10 +26,10 @@ demonstrate basic system features, integration APIs, and best practices. | [Hacker News Alerts in Slack ](./hackernews/) | Track Hacker News articles by topic and send updates to Slack | slack | | [JIRA Assignee From Google Calendar Workflow](./jira_google_calendar/assignee_from_schedule/) | Set Assignee in Jira ticket to the person currently on-call | jira, calendar | | [Create calendar due date event for Jira ticket](./jira_google_calendar/deadline_to_event/) | When a new Jira issue is created, the workflow automatically generates a Google Calendar event with a deadline | calendar, jira | -| [Alert on missing Jira events](./ops/alert_on_missing_events/) | Send Slack alerts when AutoKitteh doesn't receive certain Jira events in time | Jira, Slack | -| [Alert on session errors](./ops/alert_on_session_errors/) | Send Slack alerts when AutoKitteh sessions end due to errors | Slack | | [Pull Request Review Reminder (Purrr)](./purrr/) | Streamline code reviews and cut down turnaround time to merge pull requests | GitHub, Google Sheets, Slack | | [Quickstart](./quickstart/) | Sample for quickstart | http | +| [Alert on missing Jira events](./reliability/alert_on_missing_events/) | Send Slack alerts when AutoKitteh doesn't receive certain Jira events in time | Jira, Slack | +| [Alert on session errors](./reliability/alert_on_session_errors/) | Send Slack alerts when AutoKitteh sessions end due to errors | Slack | | [Monitor PR until completion in Slack](./reviewkitteh/) | Create a Slack channel for each PR, update team leads until completion | slack, github, sheets | | [Ad-hoc room reservation via Slack](./room_reservation/) | Ad-hoc room reservation via Slack slash commands | slack, calendar | | [Jira](./samples/atlassian/jira/) | Samples using Jira APIs | jira | diff --git a/ops/alert_on_missing_events/README.md b/reliability/alert_on_missing_events/README.md similarity index 96% rename from ops/alert_on_missing_events/README.md rename to reliability/alert_on_missing_events/README.md index 97e5aac..7f1e29c 100644 --- a/ops/alert_on_missing_events/README.md +++ b/reliability/alert_on_missing_events/README.md @@ -2,7 +2,7 @@ title: Alert on missing Jira events description: Send Slack alerts when AutoKitteh doesn't receive certain Jira events in time integrations: ["Jira", "Slack"] -categories: ["Ops"] +categories: ["Reliability"] --- # Alert on Missing Events @@ -50,7 +50,7 @@ events, and resends reminder alerts at a shorter interval. (default = `24` hours) - `PING_HOURS`: while an incident is ongoing, re-check at a shorter interval (default = `1` hour) - - `SLACK_CHANNEL`: send incident alerts to this Slack channel name/ID + - `SLACK_CHANNEL_NAME_OR_ID`: send alert messages to this Slack channel (default = `autokitteh-alerts`) 5. Deploy the project diff --git a/ops/alert_on_missing_events/autokitteh.yaml b/reliability/alert_on_missing_events/autokitteh.yaml similarity index 81% rename from ops/alert_on_missing_events/autokitteh.yaml rename to reliability/alert_on_missing_events/autokitteh.yaml index a07f16d..87d6b64 100644 --- a/ops/alert_on_missing_events/autokitteh.yaml +++ b/reliability/alert_on_missing_events/autokitteh.yaml @@ -1,6 +1,6 @@ -# This YAML file is a declarative manifest that describes the -# setup of an AutoKitteh project that sends Slack alerts when -# AutoKitteh doesn't receive certain Jira events in time. +# This YAML file is a declarative manifest that describes the setup +# of an AutoKitteh project that sends Slack alerts when AutoKitteh +# doesn't receive certain Jira events in time. version: v1 @@ -22,7 +22,7 @@ project: value: 24 - name: PING_HOURS value: 1 - - name: SLACK_CHANNEL + - name: SLACK_CHANNEL_NAME_OR_ID value: autokitteh-alerts connections: diff --git a/ops/alert_on_missing_events/program.py b/reliability/alert_on_missing_events/program.py similarity index 96% rename from ops/alert_on_missing_events/program.py rename to reliability/alert_on_missing_events/program.py index 2ae05d8..27470ff 100644 --- a/ops/alert_on_missing_events/program.py +++ b/reliability/alert_on_missing_events/program.py @@ -17,7 +17,7 @@ TIMEOUT_HOURS = int(os.getenv("TIMEOUT_HOURS", "24")) PING_HOURS = int(os.getenv("PING_HOURS", "1")) -SLACK_CHANNEL = os.getenv("SLACK_CHANNEL", "") +SLACK_CHANNEL = os.getenv("SLACK_CHANNEL_NAME_OR_ID", "") def on_monitor_trigger(event): diff --git a/ops/alert_on_session_errors/README.md b/reliability/alert_on_session_errors/README.md similarity index 94% rename from ops/alert_on_session_errors/README.md rename to reliability/alert_on_session_errors/README.md index 0e5052e..e3dd228 100644 --- a/ops/alert_on_session_errors/README.md +++ b/reliability/alert_on_session_errors/README.md @@ -2,7 +2,7 @@ title: Alert on session errors description: Send Slack alerts when AutoKitteh sessions end due to errors integrations: ["Slack"] -categories: ["Ops"] +categories: ["Reliability"] --- # Alert on Session Errors @@ -36,7 +36,7 @@ to look for sessions that ended with an error status in the previous minute. - `AUTOKITTEH_UI_BASE_URL` (default = `https://app.autokitteh.cloud`, use `http://localhost:9982` for self-hosted servers) - `AUTOKITTEH_AUTH_TOKEN`: the API auth token generated in step 1 above - - `SLACK_CHANNEL`: send alert messages to this Slack channel name/ID + - `SLACK_CHANNEL_NAME_OR_ID`: send alert messages to this Slack channel (default = `autokitteh-alerts`) 5. Deploy the project diff --git a/ops/alert_on_session_errors/autokitteh.yaml b/reliability/alert_on_session_errors/autokitteh.yaml similarity index 81% rename from ops/alert_on_session_errors/autokitteh.yaml rename to reliability/alert_on_session_errors/autokitteh.yaml index 0abce99..1c65b0b 100644 --- a/ops/alert_on_session_errors/autokitteh.yaml +++ b/reliability/alert_on_session_errors/autokitteh.yaml @@ -8,12 +8,12 @@ project: vars: - name: AUTOKITTEH_API_BASE_URL - value: "https://api.autokitteh.cloud" + value: https://api.autokitteh.cloud - name: AUTOKITTEH_UI_BASE_URL - value: "https://app.autokitteh.cloud" + value: https://app.autokitteh.cloud - name: AUTOKITTEH_AUTH_TOKEN value: "" - - name: SLACK_CHANNEL + - name: SLACK_CHANNEL_NAME_OR_ID value: autokitteh-alerts connections: diff --git a/ops/alert_on_session_errors/program.py b/reliability/alert_on_session_errors/program.py similarity index 97% rename from ops/alert_on_session_errors/program.py rename to reliability/alert_on_session_errors/program.py index 14191bd..6a2c49c 100644 --- a/ops/alert_on_session_errors/program.py +++ b/reliability/alert_on_session_errors/program.py @@ -16,7 +16,7 @@ API_BASE_URL = os.getenv("AUTOKITTEH_API_BASE_URL", "") UI_BASE_URL = os.getenv("AUTOKITTEH_UI_BASE_URL", "") JWT = os.getenv("AUTOKITTEH_AUTH_TOKEN", "") -SLACK_CHANNEL = os.getenv("SLACK_CHANNEL", "") +SLACK_CHANNEL = os.getenv("SLACK_CHANNEL_NAME_OR_ID", "") slack = slack_client("slack_conn")