Skip to main content

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)

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

statsmetrics-1.0.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

statsmetrics-1.0.2-py2-none-any.whl (6.2 kB view details)

Uploaded Python 2

File details

Details for the file statsmetrics-1.0.2.tar.gz.

File metadata

  • Download URL: statsmetrics-1.0.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for statsmetrics-1.0.2.tar.gz
Algorithm Hash digest
SHA256 2e9c7aa9192a7b996c766060243b7b427c292caae4bca783f4160a457ba6167c
MD5 2ae1c7a5fc6e93ecd6b2820eb542862c
BLAKE2b-256 852ff0d7c3a488605f6243f91405ceb7667c2c51c454e2c35f9e27c0b327fe5c

See more details on using hashes here.

File details

Details for the file statsmetrics-1.0.2-py2-none-any.whl.

File metadata

File hashes

Hashes for statsmetrics-1.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 716c249db457f1d204754e495553be20af3767a16461673af118b821a9f0380e
MD5 11eaa1d8e0b4e65736ef2955178735b3
BLAKE2b-256 cb8f723c70a23fe6b7f7a7af7c12480d8e96bdfb904496133142bfd54b53a073

See more details on using hashes here.

Supported by

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