Files
osprofiler/devstack/plugin.sh
Dmitriy Rabotyagov be27342337 Cleanup jaeger backend from devstack and examples
Jaeger native backend was replaced witrh OTLP and removed in [1]

Though devstack and some option references remained as is,
which could confuse users.

[1] https://review.opendev.org/c/openstack/osprofiler/+/952373

Change-Id: I9f47b9fe5a4791d170a740a228b9cac5a5936e58
Signed-off-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@cleura.com>
2025-08-08 13:44:41 +02:00

31 lines
792 B
Bash

#!/bin/bash
# DevStack extras script to install osprofiler
# Save trace setting
XTRACE=$(set +o | grep xtrace)
set -o xtrace
source $DEST/osprofiler/devstack/lib/osprofiler
if [[ "$1" == "stack" && "$2" == "install" ]]; then
echo_summary "Configuring system services for OSProfiler"
install_osprofiler_collector
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
echo_summary "Configuring OSProfiler"
configure_osprofiler
elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then
echo_summary "Configuring Tempest"
configure_osprofiler_in_tempest
elif [[ "$1" == "unstack" ]]; then
if [[ "$OSPROFILER_COLLECTOR" == "otlp" ]]; then
echo_summary "Deleting jaeger docker container"
drop_jaeger_backend
fi
fi
# Restore xtrace
$XTRACE