Creating Cloudwatch Dashboards per Environment with Python

Show Me The Code Already

After installing Cloudwatch Agent to the machines you want to monitor, it’s time to create dashboards to view real-time metrics.

There are some ways to create Cloudwatch Dashboards such as creating them manually by selecting widgets from AWS Console, with Cloudformationetc.

I’ve decided to create them with Python because in DevOps literature, there is no such a thing as manually creating something. I also didn’t want to use Cloudformation because I like scripting and we have many applications to monitor in our company, thus, I needed something to iterate over our environments and create dashboards for each of them.
Continue reading

Basic Linux Commands with Examples

I believe it’s very important to know at least basic commands of Linux (Also, other Operating Systems). You might say, “I’m a developer/business analyst/tester etc., I don’t need to know these Linux commands!“.

Oh sweet Linus Torvalds (Creator of Linux)… Be sure he’s not around when you say those kind of things, or else he might rage-mail(Read it, you won’t regret) you with the hatred of ten thousand years.

Screen Shot 2018-02-07 at 14.55.17
Linus Torvalds’ Ragemail to his employee

Let me tell you something. You’re going to regret saying that. I was thinking the same, then one day, I needed to see logs of our consumer website because it was returning 500 – Internal Server Error. Oh boy, didn’t I struggle. Opening those logs is easy even with the knowledge of basic Linux commands. Long story short, learn them. It’s easy.
Continue reading