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.
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 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 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.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')
The Datadog's Python library source is freely available on Github. Check it out here.
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.