SendGrid2Datadog

by dtan4

GitHub Readme.md

SendGrid2Datadog

Build Status Docker Repository on Quay

Send SendGrid metrics to Datadog

sendgrid2datadog

  +----------+
  |          |
  | SendGrid |
  |          |
  +----------+
      |
      | Event Notification
      |
+=====|===============================+
|     |    SendGrid2Datadog           |
|     v                               |
| +------------+        +-----------+ |           +---------+
| |            |        |           | |           |         |
| | API Server | -----> | DogStatsD |-----------> | DataDog |
| |            |        |           | |           |         |
| +------------+        +-----------+ |           +---------+
|                                     |
+=====================================+

Install

Heroku

Deploy

Kubernetes

kubectl create -f kubernetes/namespace.yaml
kubectl create -f kubernetes/service.yaml

# Use envFrom (>= k8s 1.6)
kubectl create -f kubernetes/deployment-envFrom.yaml

# or else
kubectl create -f kubernetes/deployment.yaml

Environment variables

Kubernetes Secret name Key Description Required sendgrid2datadog BASIC_AUTH_USERNAME basic auth username sendgrid2datadog BASIC_AUTH_PASSWORD basic auth password dd-agent API_KEY Datadog API key Required

If both BASIC_AUTH_USERNAME and BASIC_AUTH_PASSWORD are provided, basic auth will be enabled.

License

MIT License