Reputation: 2421
I created custom metrics that basically check Mongo replication, connection count, query response time, and connection percentage against maximum allowable connections. The script runs on a 5 minute cron. I have configured the widget to check for these metrics on 5 minute periods. But after a while the the metrics completely disappear off the widget and i have to re add it.
I tried looking this up online but can't find ANY reason why this would happen. I checked on the servers that it's monitoring and I don't find anything in logs that show the cron erroring out. Can any AWS experts tell me where to start troubleshooting this? I'm not expecting to get this resolved with the limited amount of information other than the symptoms of the problem, but is there a way of getting more information on the metrics disappearing via AWS (whether it be CloudTrail or by other means)?
Upvotes: 2
Views: 2325
Reputation: 269284
First things is to confirm that your metrics are available. In the Amazon CloudWatch console, click Browse Metrics, then drill-down to find your metric and tick the box.
If the metrics are showing, then the data is there -- it's just a matter of fixing the dashboard widget.
Go to your dashboard widget, click the three dots and select Edit. Select a time range in the top-right (1h, 3h, 12h...), then click Update widget.
Upvotes: 1