Update git submodules
* Update aodh from branch 'master' - Integrate OSprofiler in Aodh * Add osprofiler wsgi middleware. This middleware is used for 2 things: 1) It checks that person who wants to trace is trusted and knows secret HMAC key. 2) It starts tracing in case of proper trace headers and adds first wsgi trace point, with info about HTTP request * Traces HTTP API calls * Traces DB (SQLAlchemy) calls Demo: https://tovin07.github.io/aodh/alarm_delete.html HOW TO TEST? 1. Install devstack with aodh as usual 2. Install osprofiler pip install osprofiler 3. Add these line to /etc/aodh/aodh.conf [profiler] enabled = true hmac_keys = SECRET_KEY connection_string = redis://localhost:6379 # example when using redis 4. Pass HMAC_KEYS to client commands - aodh client with `--profile <HMAC_KEYS>` - openstack client with `--os-profiler <HMAC_KEYS>` Output will look like this: To display trace use the command: osprofiler trace show --html <TRACE_ID> 5. Use osprofiler to get the trace osprofiler trace show \ --connection-string redis://localhost:6379 \ --out out.html \ --html <TRACE_ID> 6. Open that html file with browser and view the result Change-Id: I44bf27413af2133451cbd84d908631ce6a2fe1f7
This commit is contained in:
parent
7bec599307
commit
af8f54abf5
2
aodh
2
aodh
@ -1 +1 @@
|
||||
Subproject commit 954c02bfa6adfd3e2797538c8d8c9f7411481153
|
||||
Subproject commit a662f053c432a85dc66ed6d149d3c9a61846d799
|
Loading…
Reference in New Issue
Block a user