Check GitHub repositories CI statues and send them to DataDog.
When we merge pull requests, sometimes CI/CD fails. Then we want to find the failure.
By running this tool periodically, we can monitor the status by DataDog.
This tool gets GitHub repositories CI statues (commit status and Check API) and sends the result by DataDog API.
- Run a Lambda Function periodically with Amazon CloudWatch Events.
- In a Lambda Function, get repositories statuses by GitHub API
- Send service checks by DataDog API
- Configure DataDog Monitor and send alerts from DataDog to Slack
We publish github-ci-monitor at AWS Serverless Application Repository.
- Create AWS Secrets Manager's secret
- Deploy the Lambda Function with AWS SAM
- Lambda's environment variables
- AWS Secrets Manager's secret
CONFIG
: YAML
---
repos:
- owner: suzuki-shunsuke
repo: test-github-action
ref: master
status: true
check_run: true
check_suite: true
tags:
codeowner: sre
region: ap-northeast-1
secret_id: github-ci-monitor
check_name: ci.ok
tags:
sender: github-ci-monitor
- datadog_api_key
- github_token
New Monitor > Custom Check
- Select a check:
ci.ok