add status code to request duration metric
This commit is contained in:
parent
34e60a8404
commit
0055965295
3 changed files with 9 additions and 5 deletions
|
@ -75,6 +75,7 @@ func TestPrometheus(t *testing.T) {
|
|||
name: reqDurationName,
|
||||
labels: map[string]string{
|
||||
"service": "test",
|
||||
"code": "200",
|
||||
},
|
||||
assert: func(family *dto.MetricFamily) {
|
||||
sc := family.Metric[0].Histogram.GetSampleCount()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue