Instrumentation that we might like to keep

This commit is contained in:
Jonathan Lange
2016-07-04 16:03:50 +01:00
parent 848574eced
commit 31c88fd62b
2 changed files with 6 additions and 0 deletions

View File

@@ -326,6 +326,7 @@ func (c *awsCollector) Report(ctx context.Context) (report.Report, error) {
}
}
log.Debugf("Fetching %d reports from %v to %v", len(reportKeys), start, now)
reports, err := c.getReports(reportKeys)
if err != nil {
return report.MakeReport(), err

View File

@@ -188,6 +188,11 @@ func (c *MemcacheClient) FetchReports(keys []string) (map[string]report.Report,
}
}
if len(missing) > 0 {
sort.Strings(missing)
log.Warningf("Missing %d reports from memcache: %v", len(missing), missing)
}
memcacheHits.Add(float64(len(reports)))
memcacheRequests.Add(float64(len(keys)))
return reports, missing, nil