Microsoft: Build an infrastructure monitoring solution with Service Map
Have you ever been responsible for a flaky application, and wanted to set up an automatic notification when a server, process, or connection isn’t there when it should be? Me too! And by using OMS Azure Log Analytics and Service Map, I solved my problem with the built-in features and a small bit of PowerShell.
To help show off the usefulness of Service Map, we built a simple, three-tier, hybrid cloud application. It has Internet Information Services (IIS) in an Azure VM Scale Set in the front end, a Tomcat server running on Linux in the middle, and MySQL for a back end. We use two additional servers running JMeter to generate constant load to the app. And, to make things a bit more interesting, we have a piece of code that runs periodically on the Tomcat server that affects performance by consuming high CPU and memory.
All in all, it’s a pretty simple application—I’m sure your real-world apps are much more complicated—but because we intentionally try to make it run poorly, it sometimes breaks. Maybe a server was restarted and JMeter didn’t get relaunched. Or maybe we used a bit too much memory on our application server, and the Tomcat server died. Nothing’s more frustrating than getting ready to run a demo and noticing that your app is no longer there.
Fortunately, the very tools we’re trying to demonstrate are very useful for monitoring themselves. That’s the whole point, isn’t it?
So, I wrote a script. Service Map has a REST API that allows you to query for any information that Service Map has. If you see it on the Service Map UI, you can get it via the API.
Read the entire article here, Build an infrastructure monitoring solution with Service Map – Operations Management Suite Blog
via the fine folks at Microsoft.