Skip to main content

Library for posting metrics to a server

Project description

A python library to send application metrics using UDP.

Build Status

Installation

pip install measures

Usage

  • count

from measures import Measure
measure = Measure('myclient', ('localhost', 1984))
measure.count('mymetric', dimensions={'name': 'john'})
  • time

from measures import Measure
measure = Measure('myclient', ('localhost', 1984))
with measure.time('mymetric') as dimensions:
    dimensions['name'] = 'john'

Contributing

  • Set up your environment

git clone https://github.com/globocom/measures.git
cd measures
mkvirtualenv measures
pip install -r test_requirements.txt
  • Run the tests

make tests
  • Write tests for your new feature or bug fix

  • Write needed code changes

  • Iterate, have fun :)

  • Make a pull request with your changes

Who do I talk to?

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

measures-1.1.0.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file measures-1.1.0.tar.gz.

File metadata

  • Download URL: measures-1.1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for measures-1.1.0.tar.gz
Algorithm Hash digest
SHA256 807f2968a42977fdb3417d12365f15a56f9bebf32b55bdc0088d8a7d3c7f8583
MD5 ac29b4892ce71a71214d3a498d0ceccd
BLAKE2b-256 3047eacbbea8e7d7282e5cfc82b59b6d9aedb466f92a4083c10386fcec885a6f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page