From 9ac41322e5b006fa3232744e8b9845c9f388f557 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Tue, 4 Feb 2020 10:25:40 -0500 Subject: [PATCH] add cpu count to prometheus --- lbry/wallet/server/prometheus.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lbry/wallet/server/prometheus.py b/lbry/wallet/server/prometheus.py index c36a565f3..c0bfde613 100644 --- a/lbry/wallet/server/prometheus.py +++ b/lbry/wallet/server/prometheus.py @@ -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)