Report stats to both statsd and prometheus
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenDev Sysadmins 614af38d5a OpenDev Migration Patch 1 month ago
doc Add initial code 5 months ago
promstat Add initial code 5 months ago
releasenotes Add initial code 5 months ago
.gitignore Add initial code 5 months ago
.gitreview OpenDev Migration Patch 1 month ago
.mailmap Add initial code 5 months ago
.stestr.conf Add initial code 5 months ago
.zuul.yaml Add initial code 5 months ago
CONTRIBUTING.rst Add initial code 5 months ago
HACKING.rst Add initial code 5 months ago
LICENSE Add initial code 5 months ago
README.rst Add initial code 5 months ago
requirements.txt Add initial code 5 months ago
setup.cfg Change openstack-dev to openstack-discuss 5 months ago
setup.py Add initial code 5 months ago
test-requirements.txt Add initial code 5 months ago
tox.ini Add initial code 5 months ago

README.rst

promstat

Library for reporting stats to both statsd and prometheus.

statsd and prometheus are both popular metrics collecting systems, but they operate quite differently from each other. promstat is a wrapper abstraction library around the statsd and prometheus clients that allows instrumenting code once so that operators can integrate with either system.

prometheus has a more structured reporting system, so the calling semantics of prometheus_client are used. Each metric reporter has an additional field, template which is a statsd metric name template to be used for the statsd reporting.

promstat does not have a global Registry like prometheus_client defaults to using. If you want to use the global Registry object with promstat, pass prometheus_client.REGISTRY to the registry parameter of the PromStat constructor.