Merge "Allow installing observabilityclient from git"
This commit is contained in:
18
devstack/lib/observabilityclient
Normal file
18
devstack/lib/observabilityclient
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# 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
|
@@ -8,6 +8,7 @@ echo_summary "devstack-plugin-prometheus's plugin.sh was called..."
|
|||||||
. $DEST/devstack-plugin-prometheus/devstack/lib/prometheus
|
. $DEST/devstack-plugin-prometheus/devstack/lib/prometheus
|
||||||
. $DEST/devstack-plugin-prometheus/devstack/lib/node_exporter
|
. $DEST/devstack-plugin-prometheus/devstack/lib/node_exporter
|
||||||
. $DEST/devstack-plugin-prometheus/devstack/lib/podman_exporter
|
. $DEST/devstack-plugin-prometheus/devstack/lib/podman_exporter
|
||||||
|
. $DEST/devstack-plugin-prometheus/devstack/lib/observabilityclient
|
||||||
|
|
||||||
# Show all of defined environment variables
|
# Show all of defined environment variables
|
||||||
(set -o posix; set)
|
(set -o posix; set)
|
||||||
@@ -23,6 +24,8 @@ if is_service_enabled prometheus; then
|
|||||||
# Perform installation of service source
|
# Perform installation of service source
|
||||||
echo_summary "Installing prometheus"
|
echo_summary "Installing prometheus"
|
||||||
install_prometheus
|
install_prometheus
|
||||||
|
echo_summary "Installing python-observabilityclient"
|
||||||
|
install_observabilityclient
|
||||||
|
|
||||||
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
||||||
# Configure after the other layer 1 and 2 services have been configured
|
# Configure after the other layer 1 and 2 services have been configured
|
||||||
|
@@ -17,3 +17,8 @@ PROMETHEUS_CUSTOM_SCRAPE_TARGETS=${PROMETHEUS_CUSTOM_SCRAPE_TARGETS:-""}
|
|||||||
NODE_EXPORTER_VERSION=1.8.2
|
NODE_EXPORTER_VERSION=1.8.2
|
||||||
# List of "," excluded collector names
|
# List of "," excluded collector names
|
||||||
NODE_EXPORTER_COLLECTOR_EXCLUDE=${NODE_EXPORTER_COLLECTOR_EXCLUDE:-""}
|
NODE_EXPORTER_COLLECTOR_EXCLUDE=${NODE_EXPORTER_COLLECTOR_EXCLUDE:-""}
|
||||||
|
|
||||||
|
## Variables related to the observabilityclient
|
||||||
|
GITREPO["python-observabilityclient"]=${OBSERVABILITYCLIENT_REPO:-${GIT_BASE}/openstack/python-observabilityclient.git}
|
||||||
|
GITBRANCH["python-observabilityclient"]=${OBSERVABILITYCLIENT_BRANCH:-$TARGET_BRANCH}
|
||||||
|
GITDIR["python-observabilityclient"]=$DEST/python-observabilityclient
|
||||||
|
Reference in New Issue
Block a user