berkeley-dsep-infra / datahub

JupyterHubs for use by Berkeley enrolled students
https://docs.datahub.berkeley.edu
BSD 3-Clause "New" or "Revised" License
62 stars 38 forks source link

Configure uptime notifications #4001

Open ryanlovett opened 1 year ago

ryanlovett commented 1 year ago

Summary

We have enabled uptime checks in Google Cloud console. We should consider whether to:

The notifications can be modified via CLI, e.g.

gcloud alpha monitoring policies update --enabled POLICY_NUMBER gcloud alpha monitoring policies update --no-enabled POLICY_NUMBER

If we disable notifications during CI, we'd need to make sure they were always enabled afterwards, no matter what the outcome of the deployment. Perhaps something of the form below in our CI's configuration at jobs.deploy.steps:

- run:
    name: Re-enable notifications
    when: always
    command: enable-notifications.sh

Alternatively use shell return values and boolean logic to sandwich gcloud around calls to hubploy.

User Stories

We'd like to be notified if some services are down. This would displace other notifications such as uptime robot.

Acceptance criteria

Important information

Tasks to complete

balajialg commented 1 year ago

@ryanlovett Thanks for creating this user story! I will add this for discussion during our next sprint planning meeting to hash out our implementation plans.