Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/poogles/asynciomeasures

Statsd (with tags) and Datadog integration for asyncio.
https://github.com/poogles/asynciomeasures

asyncio datadog datadog-metrics python3 statsd statsd-tags

Last synced: about 2 months ago
JSON representation

Statsd (with tags) and Datadog integration for asyncio.

Awesome Lists containing this project

README

        

# asynciomeasures [![Build Status](https://travis-ci.org/Poogles/asynciomeasures.svg?branch=master)](https://travis-ci.org/Poogles/asynciomeasures)

This library allows you to send metrics to your Datadog or Statsd server.
This works on Python >= 3.5 and relies on asyncio and the async/await syntax.

### Installation

```sh
pip install asynciomeasures
```

### Example

```python
from asynciomeasures import Datadog

client = Datadog('udp://127.0.0.1:8125')
client.incr('foo')
client.decr('bar', tags={'one': 'two'})
with client.timer('baz'):
...
```

### Development

There's some great tests here. To run them you'll need deps and the following.

```python
pip install -r test_requirements.txt
pytest -vv
```

All should pass.

### Notes

Thanks to everyone that contributed. This is a fork of the origional aiomeasures
with updates for latest python versions.