prometheus

This commit is contained in:
Jack Robison 2022-03-08 14:23:44 -05:00
parent 5bb138c32c
commit f7f91389ee
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
2 changed files with 1 additions and 3 deletions

View file

@ -11,13 +11,11 @@ from functools import partial, lru_cache
from numbers import Number from numbers import Number
from asyncio import Queue from asyncio import Queue
from scribe.common import RPCError, CodeMessageError from scribe.common import RPCError, CodeMessageError
from scribe import PROMETHEUS_NAMESPACE
HISTOGRAM_BUCKETS = ( HISTOGRAM_BUCKETS = (
.005, .01, .025, .05, .075, .1, .25, .5, .75, 1.0, 2.5, 5.0, 7.5, 10.0, 15.0, 20.0, 30.0, 60.0, float('inf') .005, .01, .025, .05, .075, .1, .25, .5, .75, 1.0, 2.5, 5.0, 7.5, 10.0, 15.0, 20.0, 30.0, 60.0, float('inf')
) )
NAMESPACE = "scribe"
SignatureInfo = namedtuple('SignatureInfo', 'min_args max_args ' SignatureInfo = namedtuple('SignatureInfo', 'min_args max_args '

View file

@ -31,7 +31,7 @@ class MemPoolTxSummary:
has_unconfirmed_inputs = attr.ib() has_unconfirmed_inputs = attr.ib()
NAMESPACE = f"{PROMETHEUS_NAMESPACE}_mempool" NAMESPACE = f"{PROMETHEUS_NAMESPACE}_hub"
HISTOGRAM_BUCKETS = ( HISTOGRAM_BUCKETS = (
.005, .01, .025, .05, .075, .1, .25, .5, .75, 1.0, 2.5, 5.0, 7.5, 10.0, 15.0, 20.0, 30.0, 60.0, float('inf') .005, .01, .025, .05, .075, .1, .25, .5, .75, 1.0, 2.5, 5.0, 7.5, 10.0, 15.0, 20.0, 30.0, 60.0, float('inf')
) )