Skip to content

Send a count of Pull-Request as custom metrics to Datadog

License

Notifications You must be signed in to change notification settings

chaspy/datadog-github-pr

Repository files navigation

datadog-github-pr

Send a count of Pull-Request as custom metrics to Datadog

Example in Datadog

Preparation

Copy .envrc and lod it.

$ cp .envrc.sample .envrc
$ # edit .envrc
$ # source .envrc

The target repositories are specified by GITHUB_REPOSITORIES environment varibales, that should be written in org/reponame, separated by commas.

export GITHUB_REPOSITORIES="chaspy/datadog-github-pr,chaspy/favsearch"

How to run

Local

$ go run main.go

Binary

Get the binary file from Releases and run it.

Docker

$ docker run -e DATADOG_API_KEY="${DATADOG_API_KEY}" -e DATADOG_APP_KEY="${DATADOG_APP_KEY}" -e GITHUB_TOKEN="${GITHUB_TOKEN}" -e GITHUB_REPOSITORIES="${GITHUB_REPOSITORIES}" chaspy/datadog-github-pr:v0.1.1

About

Send a count of Pull-Request as custom metrics to Datadog

Resources

License

Stars

Watchers

Forks

Packages

No packages published