Skip to content

Commit

Permalink
fix: duplicate metric issue
Browse files Browse the repository at this point in the history
Signed-off-by: Soumya Ghosh Dastidar <[email protected]>
  • Loading branch information
gdsoumya committed Nov 1, 2024
1 parent 52f6267 commit ef96407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/handle-result-deletion.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (gaugeMetrics *GaugeMetrics) unsetOutdatedMetrics(resultDetails ChaosResult
case result.Verdict != resultDetails.Verdict:
gaugeMetrics.ResultVerdict.DeleteLabelValues(resultDetails.Namespace, resultDetails.Name, resultDetails.ChaosEngineName,
resultDetails.ChaosEngineContext, result.Verdict, fmt.Sprintf("%f", result.ProbeSuccessPercentage), resultDetails.AppLabel,
resultDetails.AppNs, resultDetails.AppKind, resultDetails.WorkflowName, result.FaultName)
resultDetails.AppNs, resultDetails.AppKind, resultDetails.WorkflowName, resultDetails.FaultName)
result.Timer = time.Now()
needRequeue = &scrapeDuration
default:
Expand Down

0 comments on commit ef96407

Please sign in to comment.