add docker tag to prometheus version info

This commit is contained in:
Alex Grintsvayg 2020-01-27 14:16:08 -05:00
parent 8961848ab1
commit e04b0a6995
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5

View file

@ -1,7 +1,7 @@
from aiohttp import web from aiohttp import web
from prometheus_client import Counter, Info, generate_latest as prom_generate_latest from prometheus_client import Counter, Info, generate_latest as prom_generate_latest
from lbry import __version__ as version from lbry import __version__ as version
from lbry.build_info import BUILD, COMMIT_HASH from lbry.build_info import BUILD, COMMIT_HASH, DOCKER_TAG
from lbry.wallet.server import util from lbry.wallet.server import util
import lbry.wallet.server.version as wallet_server_version import lbry.wallet.server.version as wallet_server_version
@ -11,6 +11,7 @@ VERSION_INFO = Info('build', 'Wallet server build info (e.g. version, commit has
VERSION_INFO.info({ VERSION_INFO.info({
'build': BUILD, 'build': BUILD,
"commit": COMMIT_HASH, "commit": COMMIT_HASH,
"docker_tag": DOCKER_TAG,
'version': version, 'version': version,
"min_version": util.version_string(wallet_server_version.PROTOCOL_MIN), "min_version": util.version_string(wallet_server_version.PROTOCOL_MIN),
}) })