Skip to main content

A tool to count runtime metrics

Project description

procstat

This library helps to count runtime metrics. For specific events you increment manually the corresponding counters. By default the library dumps all counters into stderr each 3 seconds. It also can display the speed of metric is changing.

It also can dump metrics into influxdb, will be documented later, see source code for details.

Usage:

import time
from procstat import Stat

stat = Stat(speed_keys=['foo', 'bar'])
while True:
    stat.inc('foo') # default increment is 1
    stat.inc('bar', 2)
    stat.inc('baz', 3)
    time.sleep(1)

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

procstat-0.0.1.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file procstat-0.0.1.tar.gz.

File metadata

  • Download URL: procstat-0.0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.3

File hashes

Hashes for procstat-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a5e6d3713a3a500c2e2b234a28cec861d5d554d5e675c8fec5a0bd878988450b
MD5 a0e7a020e11aef35cc4ee6f36679e67d
BLAKE2b-256 b11e3e69066c8a2886cb1e5fbbc4107215f0d3db952dfda40e5ede6a07fc2166

See more details on using hashes here.

Supported by

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