Files
osprofiler/devstack/plugin.sh
Ilya Shakhat 0b878cfd24 Configure Jaeger collector in DevStack
This patch adds a new type of collector "jaeger".

To try this patch out add following lines into local.conf:

 enable_plugin osprofiler https://git.openstack.org/openstack/osprofiler refs/changes/67/611067/4
 OSPROFILER_BRANCH=refs/changes/67/611067/4
 OSPROFILER_COLLECTOR=jaeger

Jaeger UI can be accessed on port 16686.

Change-Id: I29031764290106570a1d358f6fd653c5367ca587
2018-11-23 17:47:52 +01:00

21 lines
478 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
fi
# Restore xtrace
$XTRACE