What Tools Do You Use for Automating Self-Healing Scripts?

June 9, 2025 4 answers
Asked by bento_box_notes
Hey folks! I've been working as a DevOps engineer for around 5-6 years across two companies, and my main job has been to develop auto-remediation or self-healing scripts. These scripts kick in when monitoring tools such as Grafana or Datadog detect issues, like CPU spikes or low disk space. Up to now, I've been using Python, Go, and Shell for scripting, paired with tools like Rundeck, Jenkins, and n8n for orchestration. My question is, does anyone know of a more specialized tool that can automatically act when a monitoring metric exceeds a threshold? I'm looking for something more dedicated to this task.

Answers

mending_kit
I've heard great things about StackStorm, but honestly, Iโ€™m reluctant to install yet another job runner. Itโ€™s supposed to be solid, but maintenance can be a hassle.

bento_box_notes: StackStorm is impressive but definitely has its headaches. Itโ€™s rock solid for automating tasks, but when I last checked, the Kubernetes deployment wasnโ€™t production-ready, so we just ran it on a powerful VM.

river gauge 62: Never knew about it before. It sounds more like an add-on for monitoring tools rather than a standalone solution, but I'm interested to give it a try!

Reply to this answer
city council notes
I've been looking into tekton.dev and Argo workflows paired with Argo events for triggering tasks. But it really depends on the kind of infrastructure you're managing with your scripts.

river gauge 62: Isnโ€™t tekton mostly for building and deploying apps? I havenโ€™t used it, so Iโ€™m not sure. It kind of feels like a Jenkins alternative to me. My infrastructure involves around 1300 virtual hosts, mostly CentOS variants and some outdated CentOS 6, plus Windows servers.

Reply to this answer
have a seat
You might want to check out Monit. It's an older tool, but it does the job well. Just a heads up, though; it can sometimes mask serious issues instead of fixing them. Itโ€™s more about managing symptoms.

~3 folds inward: That's a valid point! I mainly want it for maintenance tasks, and itโ€™s nice to have that safety net. Iโ€™ve used Monit before, but only on a smaller scaleโ€”never figured out how to scale it without chaos.

Reply to this answer
+celestial chart!
Iโ€™d suggest using Webhooks with an orchestrator. It's often better to stick with general solutions rather than something built just for this specific purpose.

map4_contour: So, would that mean having a library of pre-made scripts that are tried and tested?

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions