Client for Telemetron
Project description
# README #
A Python client for Telemetron.
## Dependencies
Python 2.6+
## How to use the client
### Sending a counter using _UDP_, to localhost:2013:
from telemetron.client import Client
client = Client(prefix="foo") # UDP localhost:2013
client.inc("mycounter", 1000)
client.flush()
### Sending a counter using _TCP_, to _metrics.external.com:2014_:
from telemetron.client import Client
client = Client(
host="metrics.external.com",
port=2014
socket_type=Client.TCP_SOCKET,
prefix="bar")
client.inc("mycounter", 1000)
client.flush()
## How to run tests
python setup.py nosetests
## Deployment instructions
### Using package:
python setup.py install
### Using pip:
pip install telemetron-client
A Python client for Telemetron.
## Dependencies
Python 2.6+
## How to use the client
### Sending a counter using _UDP_, to localhost:2013:
from telemetron.client import Client
client = Client(prefix="foo") # UDP localhost:2013
client.inc("mycounter", 1000)
client.flush()
### Sending a counter using _TCP_, to _metrics.external.com:2014_:
from telemetron.client import Client
client = Client(
host="metrics.external.com",
port=2014
socket_type=Client.TCP_SOCKET,
prefix="bar")
client.inc("mycounter", 1000)
client.flush()
## How to run tests
python setup.py nosetests
## Deployment instructions
### Using package:
python setup.py install
### Using pip:
pip install telemetron-client
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
telemetron-client-2.0.tar.gz
(4.8 kB
view hashes)