Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

Can CloudWatch Query SQL Servers?

$
0
0

My stack for setting up a SQL-query-based CloudWatch alarm seems ridiculous. I need:

  1. A SQL Query returning what I wish to monitor (e.g. SELECT TOP (1) is_server_screwed FROM my_table;).
  2. A PowerShell script that sends the result of my query to CloudWatch (e.g. $Metric = boilerplate_here; Write-CWMetricData -Namespace SQL -MetricData $Metric).
  3. A SQL Server Agent Job (or equivalent Task Scheduler Task) to fire the script on a schedule.
  4. A CloudWatch Alarm to alert me whenever the query's results cross thresholds.

Is there any way to remove steps 2 and 3? I'm surprised that CloudWatch itself cannot query the server.


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>