mirror of
https://github.com/grafana/grafana.git
synced 2026-08-26 05:17:26 -05:00
Fix outcome metric (#90322)
This commit is contained in:
@@ -68,9 +68,9 @@ func (m *dualWriterMetrics) recordStorageDuration(isError bool, mode string, nam
|
||||
m.storage.WithLabelValues(strconv.FormatBool(isError), mode, name, method).Observe(duration)
|
||||
}
|
||||
|
||||
func (m *dualWriterMetrics) recordOutcome(mode string, name string, outcome bool, method string) {
|
||||
func (m *dualWriterMetrics) recordOutcome(mode string, name string, areEqual bool, method string) {
|
||||
var observeValue float64
|
||||
if outcome {
|
||||
if !areEqual {
|
||||
observeValue = 1
|
||||
}
|
||||
m.outcome.WithLabelValues(mode, name, method).Observe(observeValue)
|
||||
|
||||
Reference in New Issue
Block a user