GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cloudinsight/cloudinsight-python-sdk: Cloudinsight Python SDK

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
cloudinsight
cloudinsight
 
 
example
example
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
README.md
README.md
 
 
setup.py
setup.py
 
 
tox.ini
tox.ini
 
 

Repository files navigation

Cloudinsight Python SDK

Build Status

Installation

To install from pip:

pip install -i http://pypi.oneapm.com/simple --trusted-host pypi.oneapm.com --upgrade cloudinsight

To install from source:

python setup.py install

Quick Start Guide

# Import the module. In this manner, you'll connect to OneStatsd at localhost:8251
from cloudinsight import statsd
# or specify your OneStatsd address.
# from cloudinsight import OneStatsd
# statsd = OneStatsd('localhost', 8251) #, constant_tags=['k1:v1', 'k2:v2'])
# once constant_tags is spedified, every metric will carry the tags

# Increment a counter by default value 1.
statsd.increment('page.views')

# Increment a counter by value you specified.
statsd.increment('page.views', 100)

# Record a metric at a sample rate 50%(eg. 50% of the time the metirc will be recorded).
statsd.gauge('users.online', 123, sample_rate=0.5)
statsd.increment('page.views', sample_rage=0.5)

# Record a tagged metric.
statsd.gauge('users.online', 123, tags=['gender:male','region:north'])

See document at: http://docs-ci.oneapm.com/api/python.html

About

Cloudinsight Python SDK

docs-ci.oneapm.com/api/python.html

Resources

Readme
Activity
Custom properties

Stars

2 stars

Watchers

3 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.