Requirement: Launch a process monitoring command and process the output using a shell script & use an AI tool to document the flow
tools: Shell script, gemini & mermaidchart.com
This is part of a multipart series in identifying a root cause on a typical chicken-egg story kind of issue :)
YouTube:
Step 1) Command which monitors the process:
You can launch the below command on a abnormally loaded machine; so you can use this output to assess the RCA. As going after top command every minute is challenging.
Step 2) Develop a script that is able to digest the above commands output and print it to a more readable info [preprocess]
Step 3) document the above code flow diagram and write code information (kind of readme) using GENAI
Here we will use gemini… I pasted the output from gemini below after several prompts to make it accurarte
Step 4) Invoke the script developed
sh processosstat.sh <inputfile> ><processed_output.file>
Output:
Step 5) Now use your favourite tool include excel to perform analytics
This will be part 2 in our case.
Thank you!
No comments:
Post a Comment