Also collect requests/calls took longer than 30s

Change-Id: I9b2a2465c91bb912d49eef28d5d767ffde790169
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
This commit is contained in:
Bogdan Dobrelya 2021-11-22 12:38:42 +01:00
parent 4a4fba487a
commit ce53850b74
1 changed files with 8 additions and 0 deletions

View File

@ -331,6 +331,14 @@ artcl_commands:
echo "+ rabbitmq report"
podman exec rabbitmq-bundle-podman-0 rabbitmqctl report
fi
slow_requests:
cmd: >
echo "+ slow req_ids";
find /var/log/containers -type f -name '*.log'
-not -path '*/stdouts/*' -not -path '*httpd*'
-exec grep -HE '(time:|held |waited )([3-9][0-9]\.|[0-9]{3,}\.)' {} \;;
echo "+ slow haproxy api calls";
grep -E '([0-9]+\/){3,}[3-9][0-9]{4,}/?' /var/log/containers/haproxy/haproxy.log
monitoring: {}
network:
ovn: