Browse Source

Also collect requests/calls took longer than 30s

Change-Id: I9b2a2465c91bb912d49eef28d5d767ffde790169
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
changes/56/818756/2
Bogdan Dobrelya 6 months ago
parent
commit
ce53850b74
  1. 8
      roles/collect_logs/defaults/main.yml

8
roles/collect_logs/defaults/main.yml

@ -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:

Loading…
Cancel
Save