Skip to content

Commit

Permalink
fix bug for origin histograms
Browse files Browse the repository at this point in the history
  • Loading branch information
leklund committed Jul 6, 2023
1 parent 2617e8e commit b20edd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/origin/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func Process(response *Response, serviceID, serviceName, serviceVersion string,
0.0005: stats.Latency0to1, // yolo
} {
for i := uint64(0); i < n; i++ {
m.LatencySeconds.WithLabelValues(serviceID, serviceName, datacenter, origin).Observe(v)
m.LatencySeconds.WithLabelValues(serviceID, serviceName, datacenter, origin, srcDelivery).Observe(v)
}
}

Expand All @@ -132,7 +132,7 @@ func Process(response *Response, serviceID, serviceName, serviceVersion string,
0.0005: stats.WafLatency0to1, // yolo
} {
for i := uint64(0); i < n; i++ {
m.LatencySeconds.WithLabelValues(serviceID, serviceName, datacenter, origin).Observe(v)
m.LatencySeconds.WithLabelValues(serviceID, serviceName, datacenter, origin, srcWaf).Observe(v)
}
}

Expand All @@ -151,7 +151,7 @@ func Process(response *Response, serviceID, serviceName, serviceVersion string,
0.0005: stats.ComputeLatency0to1, // yolo
} {
for i := uint64(0); i < n; i++ {
m.LatencySeconds.WithLabelValues(serviceID, serviceName, datacenter, origin).Observe(v)
m.LatencySeconds.WithLabelValues(serviceID, serviceName, datacenter, origin, srcCompute).Observe(v)
}
}
}
Expand Down

0 comments on commit b20edd0

Please sign in to comment.