Skip to content

Commit

Permalink
Merge pull request #687 from equinor/master
Browse files Browse the repository at this point in the history
Fixed error message (#686)
  • Loading branch information
satr authored Oct 3, 2024
2 parents 0a5b79e + ae97fd8 commit ab457ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/metrics/prometheus_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (c *client) GetMetrics(ctx context.Context, appName, envName, componentName
for metricName, query := range getPrometheusQueries(appName, envName, componentName, duration, since) {
result, resultWarnings, err := c.api.Query(ctx, query, now)
if err != nil {
log.Ctx(ctx).Error().Msgf("Failed to get Prometheus metrics: %v", err)
log.Ctx(ctx).Error().Err(err).Msgf("Failed to get Prometheus metrics for the query: %s", query)
return nil, nil, errors.New("failed to get Prometheus metrics")
}
if len(resultWarnings) > 0 {
Expand Down

0 comments on commit ab457ab

Please sign in to comment.