add cpu count to prometheus
This commit is contained in:
parent
c3233e03ef
commit
9ac41322e5
1 changed files with 2 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
import os
|
||||
from aiohttp import web
|
||||
from prometheus_client import Counter, Info, generate_latest as prom_generate_latest, Histogram, Gauge
|
||||
from lbry import __version__ as version
|
||||
|
@ -14,6 +15,7 @@ VERSION_INFO.info({
|
|||
"docker_tag": DOCKER_TAG,
|
||||
'version': version,
|
||||
"min_version": util.version_string(wallet_server_version.PROTOCOL_MIN),
|
||||
"cpu_count": os.cpu_count()
|
||||
})
|
||||
SESSIONS_COUNT = Gauge("session_count", "Number of connected client sessions", namespace=NAMESPACE)
|
||||
|
||||
|
|
Loading…
Reference in a new issue