Site Reliability Engineer focused on ChatOps solutions, configuration management, and Infrastructure as a Code (IAAS)
Published Aug 03, 2019
Six months ago, I was introduced to the concept of ChatOps
. Yes, I know a little late. Mind you, I was still new to the “Infrastructure as a code” world but I was immediately intrigued by its simplicity, ease of implementation and its impact on day to day operations. ChatOps is a what it sounds like, day-to-day operations, simplified to through chat. In this case we used Slack combined with our Cloud provider: IBM Cloud (AKA SoftLayer).
In came, gobot
(Yes, it’s written in Go, we’re lazy and undecisive people when it comes to names). Our very own, personalized solution for our day to operations in dealing with infrastructure. It’s still in its alpha stages but we’ve seen an immediate change in:
One of the first features we implemented was an ability to control power over our infrastructure. Often times we run into issues where a simple reboot is required. We simplified this to:
gobot <poweroff|poweron|reboot> <hostname|ip>
and of course the little bit of code it runs. Simple, straightforward, and ridiculously easy to implement on your backend.
slcli vs power-off <ID>
One of the other “quirks” we noticed on a daily basis was:
abcdefg
?The simple solution: alert supression. We defined a set of “maintenance windows”.
gobot maintenance <product>
This would then pop up options for a clustername
, duration
and optional datacenter
option. You can supress alerts for particular clusters, particular data centers or supress all alerts in case of a worldwide maintenance window for a period of time.
The last and maybe the most used feature we implemented was the ability to look up device information. A simple
gobot lookup <hostname|ip>
This returned information such as:
…etc
This vastly simplified having to login with our cloud provider, lookup devices and fetch any/all information from 5 different places.
One of the things we found challenging in this endeavour:
New things don’t come without their quirks but we’re definitely up for the challenge. I invision a future where almost all day-to-day operations are handled through chat. Bold, but the more we tackle issues, the more it feels like a reality.