stash icon indicating copy to clipboard operation
stash copied to clipboard

[Bug] Success/Fail prometheus metrics inverted condition

Open fabiormoura opened this issue 9 years ago • 1 comments

Hi,

I found two of the metrics sent to pushgateway with its boolean values flipped.

See snippet below where it happens:

https://github.com/appscode/stash/blob/e6065cb275eefd915ca4e68ae1a336f6510c091b/pkg/scheduler/scheduler.go#L289-L295

I believe the expected behaviour is having the success metric as 0 and fail as 1 when err != nil

fabiormoura avatar Oct 01 '17 14:10 fabiormoura

Thanks @fabiormoura ! It is fixed in master branch now.

tamalsaha avatar Oct 09 '17 13:10 tamalsaha