Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

List of metrics to use with exporters

Project Description

This module contains metrics which you can use to export to analytics apps.


Installation instructions:

Install via pip:

$ pip install statsmetrics

See ``pip`` installation instructions at http://www.pip-installer.org/en/latest/installing.html

Available metrics:

  • Couchbase

Usage example:

from statsmetrics import couchbase as couchbasemetrics
metrics = couchbasemetrics.get_metrics()

Response format:

'cluster': {
  'url': '/pools/default/',
  'metrics': [
      {'name':'storageTotals.ram.total','id':'storageTotals.ram.total','suffix':'bytes','labels':['name']},
      (... other cluster metrics)
  ]
},
'nodes': {
  'url': '/pools/nodes/',
  'metrics': [
      {'name':'systemStats.cpu_utilization_rate','id':'systemStats.cpu_utilization_rate','suffix':'count','labels':['name','hostname']},
      (... other nodes metrics)
  ]
},
  'buckets': {
      'url': '/pools/default/buckets/',
      'metrics': [
          {'name':'basicStats.quotaPercentUsed','id':'basicStats.quotaPercentUsed','suffix':'percent','labels':['name','bucket']},
          (... other buckets metrics),
      ],
      'bucket_stats': [
          {'name':'avg_bg_wait_time','id':'avg_bg_wait_time','suffix':'seconds','labels':['name','bucket']},
          (... other bucket_stats metrics),
      ]
  }
}

Testing the package:

$ python test.py

Tips:

Convert returned data to JSON format

import json
from statsmetrics import couchbase as couchbasemetrics
metrics = couchbasemetrics.get_metrics()
print json.dumps(metrics, ensure_ascii=False)
Release History

Release History

This version
History Node

1.0.1

History Node

1.0.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
statsmetrics-1.0.1.tar.gz (5.1 kB) Copy SHA256 Checksum SHA256 Source Nov 7, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting