Go Datadog Client

datadog devops go oss

I recently found myself wrapping ChatOps around a CI/CD pipeline to manage scheduled downtime in DataDog (avoiding SLO impact for planned work). For astute readers wondering why this wasn’t a direct API call – I tend to (ab)use CI as a generic task runner (has an API, secret store, etc).

I wanted to identify resources using labels (team:foo, service:bar). Sounded simple enough. It’s been over a month, so things may have improved, but documentation and available clients provided numerous ways to manage downtime beside tags.

The DataDog SDK came to the rescue. I resisted the urge to go down the rabbit hole of a full-fledged client, but implemented enough to support this use case and provide a framework for a Go DataDog CLI. Browse the project repo. Open issues or submit PRs if you spot bugs or have feature requests.