Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/poogles/asynciomeasures
- Owner: Poogles
- License: mit
- Created: 2018-11-22T15:52:40.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-22T17:46:47.000Z (about 6 years ago)
- Last Synced: 2024-08-09T00:27:26.388Z (5 months ago)
- Topics: asyncio, datadog, datadog-metrics, python3, statsd, statsd-tags
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 Datadogclient = 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.