mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-21 22:04:41 -04:00
Fix metric
This commit is contained in:
1 parent
dbd6a4db71
commit
386e322050
1 file changed
+1
-1
@@ -219,7 +219,7 @@ func (pps *PostprocessingService) processEvent(e raw.Event) error {
|
||||
}
|
||||
|
||||
if ev.Failed {
|
||||
pps.metrics.Finished.WithLabelValues("failed", string(pp.Status.Outcome)).Inc()
|
||||
pps.metrics.Finished.WithLabelValues("failed").Inc()
|
||||
if !pp.StartTime.IsZero() {
|
||||
pps.metrics.Duration.WithLabelValues("failed").Observe(time.Since(pp.StartTime).Seconds())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user