Add configurable query period and average to pmp-check-aws-rds

Bug #1436943 reported by Alex Bame
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Monitoring Plugins
Fix Released
Medium
Unassigned

Bug Description

I started having problems recently with CloudWatch returning null sets for the default query and average periods of 60 seconds for the storage metric. This had previously been working, and still works in some cases, but it seems that CloudWatch is perhaps changing its behavior.

Increasing the requested time to 300 seconds and keeping the average at 60 reliably gives metrics to check. The attached patch adds two new options: -t for time period to query (default 5 minutes) and -a for average to request (default 1 minute). It also adds a -d flag for enabling API request debugging via boto.

Experimentation showed that the Amazon API only accepts multiples of 60 for requested averages, so that's why the option units are in minutes rather than seconds.

Revision history for this message
Alex Bame (alexbame) wrote :
Revision history for this message
Roman Vynar (roman-vynar) wrote :

Thanks Alex for the patch.

Changed in percona-monitoring-plugins:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Roman Vynar (roman-vynar) wrote :
Changed in percona-monitoring-plugins:
status: Confirmed → Fix Committed
Changed in percona-monitoring-plugins:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.