
The python-observabilityclient is the client for interacting with prometheus from CLI and from services. Allow to install it from git as part of this devstack plugin. Change-Id: I4de463e7f188d1aa68e4d4e73e0a0b1090d56683
19 lines
483 B
Plaintext
19 lines
483 B
Plaintext
# lib/observabilityclient
|
|
# Functions to control the installation of observabilityclient
|
|
|
|
# Save trace setting
|
|
_XTRACE_PROMETHEUS=$(set +o | grep xtrace)
|
|
set +o xtrace
|
|
|
|
function install_observabilityclient {
|
|
if use_library_from_git "python-observabilityclient"; then
|
|
git_clone_by_name "python-observabilityclient"
|
|
setup_dev_lib "python-observabilityclient"
|
|
else
|
|
pip_install_gr python-observabilityclient
|
|
fi
|
|
}
|
|
|
|
# Restore xtrace
|
|
$_XTRACE_PROMETHEUS
|