All Projects → coinbase → watchdog

coinbase / watchdog

Licence: Apache-2.0 license
DEPRECATED -- Github Bot for Datadog codification

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to watchdog

AwesomeCompiler
The Big list of the github, open-source compilers.
Stars: ✭ 27 (+3.85%)
Mutual labels:  github-bot
background-check
A GitHub App built with probot that peforms a "background check" to identify users who have been toxic in the past, and shares their toxic activity in the maintainer’s repo.
Stars: ✭ 27 (+3.85%)
Mutual labels:  github-bot
sign-off-checker
A GitHub integration to ensure commits have "Signed-off-by"
Stars: ✭ 34 (+30.77%)
Mutual labels:  github-bot
rebasebot
A GitHub bot that rebases your branches
Stars: ✭ 43 (+65.38%)
Mutual labels:  github-bot
aloba
🤖 [Myrmica Aloba 🐜] Bot: Add labels and milestone on pull requests and issues.
Stars: ✭ 18 (-30.77%)
Mutual labels:  github-bot
telegram-github-search-bot
A Github search bot for Telegram
Stars: ✭ 67 (+157.69%)
Mutual labels:  github-bot
dd-go-opentracing
[WIP] OpenTracing Tracer implementation for Datadog in Go
Stars: ✭ 22 (-15.38%)
Mutual labels:  datadog
triage-new-issues
A GitHub App, built with Probot that adds `triage` label to newly-created issues which don't have labels
Stars: ✭ 23 (-11.54%)
Mutual labels:  github-bot
terraform-aws-datadog-integration
Terraform module to configure Datadog AWS integration
Stars: ✭ 26 (+0%)
Mutual labels:  datadog
size-plugin-bot
A Github bot for size-plugin
Stars: ✭ 76 (+192.31%)
Mutual labels:  github-bot
issuelabeler
A GitHub bot to label issues automatically based on title and body against list of defined labels. System status (https://status.verticalaxisbd.com/)
Stars: ✭ 23 (-11.54%)
Mutual labels:  github-bot
dx-automator
A tool for managing priorities across multiple GitHub repositories
Stars: ✭ 14 (-46.15%)
Mutual labels:  github-bot
yake
A Rake-like DSL for writing AWS Lambda handlers
Stars: ✭ 146 (+461.54%)
Mutual labels:  datadog
labhub
GitHub bot for using GitLab CI in OSS projects
Stars: ✭ 31 (+19.23%)
Mutual labels:  github-bot
terraform-aws-datadog-forwarders
Terraform module which creates resources on AWS to forward logs/metrics to Datadog 🇺🇦
Stars: ✭ 30 (+15.38%)
Mutual labels:  datadog
okra
Hot-swap Kubernetes clusters while keeping your service up and running.
Stars: ✭ 46 (+76.92%)
Mutual labels:  datadog
github-bot
This is a github bot that helps with managing issues, used on
Stars: ✭ 29 (+11.54%)
Mutual labels:  github-bot
SwiftDog
This is an (un)official swift library of the datadog API! Many more features to come, but right now it supports sending metrics and events!
Stars: ✭ 26 (+0%)
Mutual labels:  datadog
datadog-trace-agent
Datadog Trace Agent archive (pre-6.10.0)
Stars: ✭ 70 (+169.23%)
Mutual labels:  datadog
datadog-anomaly-detector
🐶 Anomaly detection system for Datadog multiple metrics
Stars: ✭ 19 (-26.92%)
Mutual labels:  datadog

Coinbase Watchdog

A Datadog codification framework.

The goal of Coinbase Watchdog is to make users lives easier by monitoring Datadog components and ensuring their consistency with data stored in git repository.

Coinbase Watchdog operates in two different ways:

  • Code driven: Users can make a change to component configuration and submit a pull request. Once merged, Coinbase Watchdog will automatically call the Datadog API to update with latest change.
  • UI driven: Coinbase Watchdog will monitor Datadog components for changes. If a change is detected (between actual component and data stored in git) a new pull request will be created. If the pull request was closed, Coinbase Watchdog will restore the component from git, discarding the change.

Quick guide

  • Create config files in watchdog-resources repository under config folder. This folder may contain an arbitrary number of sub folders. This gives users ability to organize the configuration hierarchy for their best needs. Config must be in yaml format and have a .yaml file extension.

Example config file

# cat ./config/infra/sre/components.yaml
meta:
    team: infra/sre

dashboards:
    - 954604

monitors:
    - 6065878

How to setup Coinbase Watchdog from scratch

  • Create a github app, follow the guide on github.com
    • Give permission to read/write to Pull Requests
    • Generate a new RSA private key in github UI.
  • Generate an rsa-ssh key from github app private RSA key: ssh-keygen -y -f <private.key>
    • Add the generated public rsa-ssh key to github repo, where config and data will be stored under Settings -> Deploy Keys. Make sure to check Allow write access. This will grant Coinbase Watchdog permissions to push changes to remote branch and open PRs.

Coinbase Watchdog parameters

All parameters must be set via environment variables.

There are 2 different categories of parameters: system and user parameters.

System parameters:

  • DD_API_KEY, required - Datadog API key.
  • DD_APP_KEY, required - Datadog APP key.
  • DATADOG_POLLING_SCHEDULER, optional, default set to "simple" - Datadog polling scheduler method.
  • DATADOG_POLLING_INTERVAL, optional, default set to "20s" - Datadog poling interval.
  • GITHUB_ASSETS_STORE_PATH, optional, default set to "data" - Base directory in watchdog-resources repo to store components data to.
  • GITHUB_BASE_URL, optional, default set to github.com - Set the default github URL. Useful for github EE.
  • GITHUB_APP_PRIVATE_KEY, required - Private key generated by github app.
  • GITHUB_PROJECT_OWNER, required - Organization name which contains the watchdog-resources repo.
  • GITHUB_REPO, required - Name of repo to save datadog components, usually watchdog-resources.
  • GITHUB_APP_INTEGRATION_ID, required - Github app integration ID.
  • GITHUB_APP_INSTALLATION_ID, required - Github installation ID.
  • GITHUB_WEBHOOK_SECRET", optional, unset - Github webhook secret.
  • LOGGING_LEVEL, optional, unset - Set the logging level (info/debug/warning).
  • LOGGING_JSON, optional, default set to false - Output JSON logs.
  • HTTP_SECRET, optional, unset - Secret used to access HTTP endpoints. (Refer to design doc for more details)
  • HTTP_PORT, optional, default set to "3000" - Port to listen on
  • SLACK_TOKEN, optional, - Use slack token for notifications.

User parameters:

  • USER_CONFIG_PATH, optional, default set to "/config" - Prefix to base path with user configs.
  • USER_CONFIG_GIT_URL, required - URL to github repo with user configs.
  • USER_CONFIG_UPDATE_INTERVAL, optional, default set to "10m" - Coinbase Watchdog will automatically reload user configs every 10 minutes.
  • USER_CONFIG_GIT_PRIVATE_KEY, required - Private key to clone the repo (the public key must be in Deploy keys).
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].