Libraries

Libraries

API and DogStatsD client libraries

The following table lists Datadog-official and community contributed API and DogStatsD client libraries. A few libraries support both the API and DogStatsD, but most focus on one or the other.

Languages Libraries Official API DogStatsD Author Notes
Arduino ArduinoStatsd Alexander Else
C++ cpp-datadogstatsd BoardiesITSolutions Send metrics from your C++ applications to your Datadog account.
DogFood Garrett Sickles C++ header library to send metrics to your Datadog account.
C# / .NET dogstatsd-csharp-client Datadog
DatadogSharp Yoshifumi Kawai Also supports APM.
DatadogStatsD Gregoire Verdier High Performance DogStatsD Client for .NET Core
Clojure clojure-statsd-client Unbounce A DogStatsD client for Clojure.
CloudFormation cdk-datadog-resources An AWS CDK construct library that wraps the DataDog/datadog-cloudformation-resources.
Crystal statsd.cr Mike Fiedler
Delphi datadog-delphi Rodrigo Farias Rezino
Elixir ex-datadog-plug Tyr Chen, Tubi A plug for logging response times.
mtx N2O Ecosystem
statix Aleksei Magusev
Erlang / Elixir dogstatsde waisbrot
Go datadog-go Datadog
datadog-api-client-go Datadog Client library in beta and subject to change.
godspeed Tim Heckman
xstats Olivier Poitrey
go-datadog-api Mark Smith from Dropbox
Haskell Haskell Datadog Client Ian Duncan
Java java-dogstatsd-client Datadog
datadog-api-client-java Datadog Client library in beta and subject to change.
Lassie Bazaarvoice Only for creating screenboards.
java-dogstatsd-client Arnab Karmakar A fork of Indeed's java-dogstatsd-client; supports events and blocking metrics.
metrics-datadog Coursera A reporting bridge between Dropwizard metrics and Datadog.
dogstatd-client Chas Honton
Lua APISIX Apache APISIX Send custom metrics to DogStatsD using the UDP protocol.
NiFi DataDogReportingTask Apache Publishes metrics from NiFi to Datadog.
Node.js datadog-api-client Datadog
hot-shots Brightcove
node-dogstatsd Young Han Lee
node-dogapi Brett Langdon
datadog-metrics Daniel Bader
Perl webservice-datadog Jennifer Pinkham
dogstatsd-perl Stefan Goethals
PHP php-datadogstatsd Alex Corley
dog-statsd graze.com A fork of thephpleague/statsd with additional Datadog features by Graze.
Python datadogpy Datadog Also includes an API client CLI tool, 'dog'.
datadog-api-client-python Datadog
R datadogr A simple R package to query for metrics.
rdog Alexis Lê-Quôc An R package to analyze Datadog metrics into R.
Racket racket-dogstatsd DarrenN A DogStatsD client for Racket.
Ruby DogApi Datadog
datadog_api_client Datadog
dogstatsd-ruby Datadog
Scala datadog-scala Cory Watson
datadog4s Avast Toolkit for monitoring applications written in functional Scala using Datadog.
scaladog NomadBlacky Datadog API client for Scala.
Swift DatadogSDK Datadog
Swift SwiftDog Jacob Aronoff

APM & Continuous Profiler client libraries

The following table lists Datadog-official and community contributed trace client libraries.

Languages Libraries Official Author Notes
.NET dd-trace-dotnet Datadog NuGet package is `Datadog.Trace`.
DatadogSharp Yoshifumi Kawai Also supports DogStatsD.
Elixir spandex Zach Daniel
Go dd-trace-go Datadog Go package 'tracer'.
dd-go-opentracing Gustavo Chaín OpenTracing Tracer implementation for Datadog in Go.
datadog-go Matt Ho OpenTracing Tracer implementation for Datadog in Go.
Java dd-trace-java Datadog Java package 'tracer'.
apm-client Chas Honton
Node.js dd-trace-js Datadog OpenTracing API implementation in JavaScript for Node.js.
PHP dd-trace-php Datadog composer package is 'datadog/dd-trace'.
Python dd-trace-py Datadog pip package is called 'ddtrace'.
Ruby dd-trace-rb Datadog gem is called 'ddtrace'.
ddtrace-rb-method-wrapper Brandfolder gem is called `ddtrace-method-wrapper`.
Rust datadog-apm Pipefy
Scala scala-opentracing Colisweb
Finagle datadog-finagle Datadog Reports Finagle traces to Datadog.

Serverless client libraries

The following table lists Datadog-official and community contributed serverless client libraries.

Languages Libraries Official Author Notes
Lambda datadog-lambda-python Datadog Official Datadog Python Lambda library
datadog-lambda-js Datadog Official Datadog Node.js Lambda library
datadog-lambda-rb Datadog Official Datadog Ruby Lambda library
datadog-lambda-go Datadog Official Datadog Go Lambda library
datadog-lambda-java Datadog Official Datadog Java Lambda library
serverless-plugin-datadog Datadog Plugin to automatically instrument your Lambda functions with Datadog.
serverless-datadog-metrics Dante Consulting, Inc. This library logs useful metrics from AWS Lambda functions, so that they can be accumulated via Datadog's AWS Lambda integration.

Log management client libraries

The following table lists Datadog-official and community contributed log management client libraries.

Type Libraries Official Author Notes
Flutter Datadog Flutter tshedor Log-only SDK for Flutter
Laravel laravel-datadog-logger Aurélien SCHILTZ Logger, handler, and formatter created for DataDog log management on Laravel framework.

Datadog client community libraries

Dashboards backup

Using Datadog APIs, it’s possible to write a script to backup your Dashboard definitions as code. See the following projects as examples of how these backups can be accomplished:

Language Library Author
JavaScript dog-watcher Brightcove
Ruby doggy Shopify
Ruby kennel Zendesk

Managing monitors

There are multiple community projects available to maintain, manage, or backup monitors using the Datadog API:

Language Library Author
Python DogPush TrueAccord
Ruby barkdog codenize-tools
Ruby interferon Airbnb
Ruby dogwatch Rapid7
Terraform Terraform Terraform
Terraform datadog-to-terraform Intercom

Community integrations

Ansible

In addition to the official Ansible integration, the monitoring section of the ansible-modules-extras repository contains modules that interact with Datadog.

Aptible

Enclave delivers your metrics to a Datadog account. Consult the dedicated Aptible help center to learn how.

Auth0

The Auth0 extension takes your Auth0 logs and ships them to Datadog.

CLI management

A set of tools to backup/restore dashboards and monitors, and configure users through a command line interface.

Consul

Publish Consul service counts into Datadog from DogStatsD with the Consul library.

Dogscaler

Scale up auto-scale groups based on the results of a Datadog query with Dogscaler.

Dynatrace

This plugin sends any Dynatrace measure from a chart to Datadog.

FreeSwitch

This is for a FreeSwitch ESL application to export statistics to Datadog using the DogStatsD API and is written by WiMacTel.

Google Analytics

You can get data into Datadog from Google Analytics using the Datadog API with the Google Analytics library from Bithaus.

Heroku

Heroku emits dyno metrics through logs. To convert these logs into metrics and send them to Datadog, use one of the following log drains. To send your Heroku logs to Datadog, see Collect Heroku logs.

Jira

A tool to poll data from Jira and upload it as metrics to Datadog.

K6

K6, a load and performance regression testing tool developed by Load Impact, can send test results to Datadog using DogStatsD. To enable this feature, see the tutorial.

LaunchDarkly

A LaunchDarkly webhook handler that records changes as Datadog events.

Logstash output

Moogsoft

A Moogsoft listener that ingests Datadog notifications.

NGINX LUA

OpenVPN

Phusion Passenger

Send health metrics from Phusion’s Passenger server using the passenger-datadog-monitor written by Stevenson Jean-Pierre

Pid-stats

This library allows you to generate process information from StatsD, given pid files. It was created by GitterHQ.

SaltStack

Sensu

Use these Sensu handlers to automatically send both metrics and events to Datadog.

StackStorm

This StackStorm Datadog integration pack supplies action integration for Datadog.

Winston

A Winston Datadog transport.

Community Agent ports

FreeBSD

FreeBSD dd-agent port

NixOS

dd-agent nixpkg

If you’ve written a Datadog library and would like to add it to this page, send an email to opensource@datadoghq.com.