juaalta / datadog-go

πŸ“ Send custom metrics to Datadog using a Go sample App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Datadog Agent (Docker) + Go Sample App

Example of running a Datadog Agent in a docker cotainer and send custom metrics from a Go sample application using the Go statsd library.

How to run it

  1. You need an API Key from your account in Datadog. You can get one here.

  2. Create .envfile in the root folder with the following content:

    DD_API_KEY=xxxx

  3. Run datadog agent as a docker container:

    docker-compose up -d

  4. Execute go application:

    go run main.go

About

πŸ“ Send custom metrics to Datadog using a Go sample App


Languages

Language:Go 100.0%