osprofiler/devstack
Ilya Shakhat 66d0607dd0 Expose connection_string parameter into DevStack plugin
With this patch the user can select which OSProfiler driver to use
in DevStack. The configuration parameter is `OSPROFILER_CONNECTION_STRING`.
Default empty value refers to Ceilometer-based driver (value `messaging://`).

DevStack plugin's README is updated to explain new option.

Change-Id: I608cd3e7bafd29db72e9e3e4cb8eb7437cd81ab2
2017-06-14 14:58:47 +02:00
..
lib Expose connection_string parameter into DevStack plugin 2017-06-14 14:58:47 +02:00
README.rst Expose connection_string parameter into DevStack plugin 2017-06-14 14:58:47 +02:00
plugin.sh Cleanup code of DevStack plugin 2017-06-08 16:55:19 +02:00
settings Expose connection_string parameter into DevStack plugin 2017-06-14 14:58:47 +02:00

README.rst

Enabling OSProfiler using DevStack

This directory contains the files necessary to run OpenStack with enabled OSProfiler in DevStack.

OSProfiler has different drivers for trace processing. The default driver uses Ceilometer to process and store trace events. Other drivers may connect to databases directly and do not require Ceilometer.

To configure DevStack and enable OSProfiler edit ${DEVSTACK_DIR}/local.conf file and add the following to [[local|localrc]] section:

Note

The order of enabling plugins matters.

Run DevStack as normal:

$ ./stack.sh

Config variables

OSPROFILER_HMAC_KEYS - a set of HMAC secrets, that are used for triggering of profiling in OpenStack services: only the requests that specify one of these keys in HTTP headers will be profiled. E.g. multiple secrets are specified as a comma-separated list of string values:

OSPROFILER_HMAC_KEYS=swordfish,foxtrot,charlie

OSPROFILER_CONNECTION_STRING - connection string to identify the driver. Default value is messaging:// refers to Ceilometer driver. For a full list of drivers please refer to http://git.openstack.org/cgit/openstack/osprofiler/tree/osprofiler/drivers. Example: enable ElasticSearch driver with the server running on localhost:

OSPROFILER_CONNECTION_STRING=elasticsearch://127.0.0.1:9200