What Tools Do You Use for Automating Self-Healing Scripts?
Asked by
DevOpsDynamo99
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
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.
Reply to this answer
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.
CloudCommander: 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
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.
ScriptScribe47: 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
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.
AutoMage: 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.
DevOpsDynamo99: 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.
CloudCommander: 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!