Skip to content

Commit

Permalink
further review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
silvestre committed Nov 20, 2024
1 parent 4dec88b commit e2567a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/autoscaler/eventgenerator/metric/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,12 @@ func (l *logCacheFetcher) emptyAppInstanceMetrics(appId string, name string, uni
func (l *logCacheFetcher) getMetricsRestAPI(appId string, metricType string, startTime time.Time, endTime time.Time) ([]models.AppInstanceMetric, error) {
filters := l.readOptions(endTime, metricType)

l.logger.Info("query-rest-api-with-filters", lager.Data{"appId": appId, "metricType": metricType, "startTime": startTime, "endTime": endTime, "filters": l.valuesFrom(filters)})
l.logger.Info("querying-rest-api-with-filters", lager.Data{"appId": appId, "metricType": metricType, "startTime": startTime, "endTime": endTime, "filters": l.valuesFrom(filters)})
envelopes, err := l.logCacheClient.Read(context.Background(), appId, startTime, filters...)
if err != nil {
return []models.AppInstanceMetric{}, fmt.Errorf("fail to Read %s metric from %s GoLogCache client: %w", logcache_v1.EnvelopeType_GAUGE, appId, err)
}
l.logger.Debug("received-rest-api-result", lager.Data{"envelopes": envelopes})
l.logger.Info("received-rest-api-result", lager.Data{"numEnvelopes": len(envelopes)})

metrics := l.envelopeProcessor.GetGaugeMetrics(envelopes, time.Now().UnixNano())

Expand Down

0 comments on commit e2567a5

Please sign in to comment.