-
Task
-
Resolution: Done
-
Major
-
None
-
False
-
-
False
-
OCPSTRAT-140 - [Docs] Onboarding New Providers/Platforms (Phase 3)
-
-
Goal:
Embed the binary mentioned [1] on the new documentation responsible for parsing the etcd logs slow requests by a latency bucket into the tools image.
The source code was created here[2] but should be moved to OPCT Repos (CLI or plugins).
Nice to have:
- Implement the data aggregator into the binary instead of using a lot of bash-ish
FILTER_MSG="apply request took too long" for TS in $( grep -rni "${FILTER_MSG}" ${MUST_GATHER_PATH} \ | awk '{print$1}' \ | awk -F'.log:' '{print$2}' \ | awk -F':' '{print$2}' \ | sort | uniq); do echo "-> ${TS}" grep -rni "${FILTER_MSG}" ${MUST_GATHER_PATH} \ | grep $TS \ | grep -Po 'took":"([a-z0-9\.]+)"' \ | awk -F'took":' '{print$2}' \ | tr -d '"' \ | ./insights-ocp-etcd-logs done