An open API service indexing awesome lists of open source software.

https://github.com/dtan4/sendgrid2datadog

Send SendGrid metrics to DataDog
https://github.com/dtan4/sendgrid2datadog

datadog sendgrid

Last synced: about 1 year ago
JSON representation

Send SendGrid metrics to DataDog

Awesome Lists containing this project

README

          

# SendGrid2Datadog

[![Build Status](https://travis-ci.org/dtan4/sendgrid2datadog.svg?branch=master)](https://travis-ci.org/dtan4/sendgrid2datadog)
[![Docker Repository on Quay](https://quay.io/repository/dtan4/sendgrid2datadog/status "Docker Repository on Quay")](https://quay.io/repository/dtan4/sendgrid2datadog)

Send SendGrid metrics to Datadog

![sendgrid2datadog](images/sendgrid2datadog.png)

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

## Install

### Heroku

[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)

### Kubernetes

```bash
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](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)