Skip to content

Commit

Permalink
Add debugging message (#29)
Browse files Browse the repository at this point in the history
Co-authored-by: Stylianos Rigas <stylianosrigas@Stylianoss-MacBook-Pro-Work.local>
  • Loading branch information
stylianosrigas and Stylianos Rigas authored Jan 29, 2024
1 parent bd0cccd commit 98653ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/elrond/elrond_soak.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func querySLOMetrics(ring *model.Ring, url string, queryTime time.Time, logger *
var results []pmodel.Vector
for _, installationGroup := range ring.InstallationGroups {
query := fmt.Sprintf("((slo:sli_error:ratio_rate5m{slo_service='%[1]s-ring-%[2]s'} > (14.4 * 0.005)) and ignoring(slo_window)(slo:sli_error:ratio_rate1h{slo_service='%[1]s-ring-%[2]s'} > (14.4 * 0.005))) or ignoring(slo_window)((slo:sli_error:ratio_rate30m{slo_service='%[1]s-ring-%[2]s'} > (6 * 0.005)) and ignoring(slo_window)(slo:sli_error:ratio_rate6h{slo_service='%[1]s-ring-%[2]s'} > (3.3 * 0.005))) or vector(0)", installationGroup.Name, installationGroup.ProvisionerGroupID)
logger.Infof("Running Thanos query %s", query)
result, warnings, err := v1api.Query(ctx, query, queryTime)
if err != nil {
return nil, errors.Wrap(err, "failed to query")
Expand Down

0 comments on commit 98653ee

Please sign in to comment.