Skip to content

Commit 5761e80

Browse files
committed
add debug logging to aws.rds collector
1 parent d6840c6 commit 5761e80

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

metrics/aws.rds/rds.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ func (m *RDS) Collect(ctx context.Context, levelName string) ([]blip.MetricValue
164164
input.StartTime = &begin
165165
input.EndTime = &now
166166

167+
blip.Debug("%s: GetMetricData [%+v]\n", m.monitorId, *input)
168+
167169
output, err := m.client.GetMetricData(ctx, input)
168170
if err != nil {
169171
return nil, err
@@ -173,6 +175,9 @@ func (m *RDS) Collect(ctx context.Context, levelName string) ([]blip.MetricValue
173175

174176
for i := range output.MetricDataResults {
175177
r := output.MetricDataResults[i]
178+
if len(r.Timestamps) == 0 {
179+
blip.Debug("%s: zero data points for %s\n", m.monitorId, *r.Label)
180+
}
176181
for j := range r.Timestamps {
177182

178183
metric := *r.Label

0 commit comments

Comments
 (0)