mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 17:51:21 +00:00
Instrumentation that we might like to keep
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user