Skip to main content

No project description provided

Project description

monasca-statsd
================

A Monasca-Statsd Python client.

Quick Start Guide
-----------------

First install the library with `pip` or `easy_install`

# Install in system python ...
sudo pip install monasca-statsd

# .. or into a virtual env
pip install monasca-statsd

Then start instrumenting your code:

``` python
# Import the module.
from monascastatsd import monascastatsd

# Optionally, configure the host and port if you're running Statsd on a
# non-standard port.
monascastatsd.connect('localhost', 8125)

# Increment a counter.
monascastatsd.increment('page.views')

# Record a gauge 50% of the time.
monascastatsd.gauge('users.online', 123, sample_rate=0.5)

# Sample a histogram.
monascastatsd.histogram('file.upload.size', 1234)

# Time a function call.
@monascastatsd.timed('page.render')
def render_page():
# Render things ...

# Tag a metric.
monascastatsd.histogram('query.time', 10, dimensions = {"version": "1.0", "environment": "dev"})
```
Documentation
-------------

Read the full API docs
[here](https://github.com/stackforge/monasca-statsd).

Feedback
--------

To suggest a feature, report a bug, or general discussion, head over
[here](https://bugs.launchpad.net/monasca).

Change Log
----------
- 1.0.0
- Initial version of the code


License
-------

Copyright (c) 2014 Hewlett-Packard Development Company, L.P.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
See the License for the specific language governing permissions and
limitations under the License.

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

monasca-statsd-1.0.1.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

monasca_statsd-1.0.1-py2.py3-none-any.whl (8.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file monasca-statsd-1.0.1.tar.gz.

File metadata

File hashes

Hashes for monasca-statsd-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e5cfad4ccff697feb96056bdce9f4246c7d95f4413cf8275a211964874809c0c
MD5 0cbe08363883ed3659aa13ef3f3844bc
BLAKE2b-256 ceefcd985dd21881711bd4a4441db259e6dc8719bb73e076c6e35820e3940e25

See more details on using hashes here.

File details

Details for the file monasca_statsd-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for monasca_statsd-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3e3c449b2ceb82ae135b0b980aa9887d0701089f5c813d810d84cb3a21821567
MD5 4b33944004bcd9e85a6ae2e7262c4491
BLAKE2b-256 c8bbf12338683b1705de40d57fe615ba95ae924f018b8ef48d0b3afaa13e32af

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