Skip to content

Latest commit

 

History

History
125 lines (85 loc) · 3.38 KB

index.rst

File metadata and controls

125 lines (85 loc) · 3.38 KB

datadog --- The Datadog's Python library

datadog

The datadog module provides datadog.api - a simple wrapper around Datadog's HTTP API - datadog.threadstats - a tool for collecting metrics in high performance applications - and datadog.dogstatsd a DogStatsd Python client.

Installation

To install from source, download a distribution and run:

>>> sudo python setup.py install

If you use virtualenv you do not need to use sudo.

Datadog.api module

Datadog.api is a Python client library for Datadog's HTTP API.

Datadog.api client requires to run datadog initialize method first.

datadog.initialize

datadog.api.Comment

datadog.api.Downtime

datadog.api.Event

datadog.api.Graph

datadog.api.Host

datadog.api.Infrastructure

datadog.api.Metric

datadog.api.Monitor

datadog.api.Screenboard

datadog.api.ServiceCheck

datadog.api.Tag

datadog.api.Timeboard

datadog.api.User

Datadog.threadstats module

Datadog.threadstats is a tool for collecting application metrics without hindering performance. It collects metrics in the application thread with very little overhead and allows flushing metrics in process, in a thread or in a greenlet, depending on your application's needs.

To run properly Datadog.threadstats requires to run datadog initialize method first.

datadog.initialize

datadog.threadstats.base.ThreadStats

Datadog.dogstatsd module

datadog.dogstatsd.base.DogStatsd

statsd

A global ~datadog.dogstatsd.base.DogStatsd instance that is easily shared across an application's modules. Initialize this once in your application's set-up code and then other modules can import and use it without further configuration.

>>> from datadog import initialize, statsd >>> initialize(statsd_host='localhost', statsd_port=8125) >>> statsd.increment('home.page.hits')

Source

The Datadog's Python library source is freely available on Github. Check it out here.

Get in Touch

If you'd like to suggest a feature or report a bug, please add an issue here. If you want to talk about Datadog in general, reach out at datadoghq.com.