forked from LBRYCommunity/lbry-sdk
add docker tag to prometheus version info
This commit is contained in:
parent
8961848ab1
commit
e04b0a6995
1 changed files with 2 additions and 1 deletions
|
@ -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),
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue