{"id":21557977,"url":"https://github.com/rgeraskin/dogoncall","last_synced_at":"2026-01-27T21:19:43.374Z","repository":{"id":263892337,"uuid":"891717580","full_name":"rgeraskin/dogoncall","owner":"rgeraskin","description":"Retrieve on-call schedules from Datadog and send notifications to Slack","archived":false,"fork":false,"pushed_at":"2024-11-29T12:46:46.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T23:03:55.925Z","etag":null,"topics":["datadog","slack"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rgeraskin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-20T20:40:18.000Z","updated_at":"2025-01-21T00:01:07.000Z","dependencies_parsed_at":"2025-01-24T10:42:58.591Z","dependency_job_id":"ca20b538-1978-4fca-b926-4f3563323ae5","html_url":"https://github.com/rgeraskin/dogoncall","commit_stats":null,"previous_names":["rgeraskin/dogoncall"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/rgeraskin/dogoncall","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgeraskin%2Fdogoncall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgeraskin%2Fdogoncall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgeraskin%2Fdogoncall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgeraskin%2Fdogoncall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgeraskin","download_url":"https://codeload.github.com/rgeraskin/dogoncall/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgeraskin%2Fdogoncall/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28823191,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T18:44:20.126Z","status":"ssl_error","status_checked_at":"2026-01-27T18:44:09.161Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datadog","slack"],"created_at":"2024-11-24T08:13:41.683Z","updated_at":"2026-01-27T21:19:43.355Z","avatar_url":"https://github.com/rgeraskin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DogOnCall\n\nDogOnCall is a Go application that retrieves an on-call schedule from Datadog and sends notification to Slack about the current on-call engineer.\n\nSlack will receive following variables from app:\n\n- `engineer_email`: Email of the current on-call engineer.\n- `schedule_name`: Schedule name.\n- `schedule_link`: Link to datadog schedule page.\n\nEngineer email in Datadog and Slack should be equal.\n\n## Usage\n\n### Slack workflow\n\nIn Slack app:\n\n1. `More` button on the left screen side =\u003e `Automations` =\u003e `Workflows` =\u003e `New workflow` =\u003e `Build workflow`\n1. For `Start the workflow…` choose event `From a webhook`\n1. Set up variables:\n   1. `engineer_email` as `Slack user email`\n   1. `schedule_name` and `schedule_link` as `Text`.\n1. Use `Web request URL` as `SLACK_ENDPOINT` later.\n1. For `Then, do these things` choose `Send a message to...` and compose a message using variables.\n\n   \u003e See [this](https://stackoverflow.com/a/78514785) if you want to use `schedule_name` and `schedule_link` together as link.\n1. Publish the workflow\n\n### App configuration\n\nThe application requires the following environment variables:\n\n- `DD_API_KEY`: Your Datadog API key.\n- `DD_APP_KEY`: Your Datadog application key.\n- `SCHEDULE_NAME`: The name of the Datadog on-call schedule.\n- `SLACK_ENDPOINT`: The Slack workflow webhook endpoint to send notifications.\n\n### App running\n\nIt's reasonable to run this app by a cron. For k8s I use CronJob in the Helm chart.\n\n#### Using Helm\n\n```sh\n# put required values in helm/values-private.yaml\nhelm upgrade --install dogoncall oci://registry-1.docker.io/rgeraskin/helm-dogoncall -f helm/values-private.yaml\n```\n\nor from the cloned git repo:\n\n```sh\n# put required values in helm/values-private.yaml\nhelm upgrade --install dogoncall ./helm -f helm/values-private.yaml\n```\n\n#### Using Docker\n\n```sh\n# put required envs in .env\ndocker run --name dogoncall --env-file .env --rm rgeraskin/dogoncall:latest\n```\n\nor from the cloned git repo:\n\n```sh\n# put required envs in .env\ndocker buildx build . -t dogoncall\ndocker run --name dogoncall --env-file .env --rm dogoncall\n```\n\n#### From Source\n\n```sh\ngo install github.com/rgeraskin/dogoncall/dogoncall@latest\n# export required env vars\ndogoncall\n```\n\nor from the cloned repo:\n\n```sh\ngo build -C dogoncall -o ..\n# export required env vars\n./dogoncall\n```\n\n## Local development\n\n### Prepare local env\n\n1. Install [mise](https://mise.jdx.dev): `brew install mise`\n2. [Activate mise](https://mise.jdx.dev/getting-started.html#_2a-activate-mise)\n\n   Zsh example:\n\n   ```bash\n   echo 'eval \"$(~/.local/bin/mise activate zsh)\"' \u003e\u003e ~/.zshrc\n   # restart shell or `source ~/.zshrc`\n   ```\n\n3. `mise install` in the repo root dir to install all required tools\n\n### Development hints\n\n- Use [Tilt](https://tilt.dev) for a realtime k8s experience: `tilt up`\n- Use mise tasks for routines: `mise run build`, `mise run deploy`\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgeraskin%2Fdogoncall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgeraskin%2Fdogoncall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgeraskin%2Fdogoncall/lists"}