Skip to content

Commit

Permalink
Fixed error message (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
satr authored Oct 3, 2024
1 parent 02f2e2d commit ae97fd8
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 ae97fd8

Please sign in to comment.