add status code to request duration metric

This commit is contained in:
Marco Jantke 2017-06-15 16:06:02 +02:00 committed by Ludovic Fernandez
parent 34e60a8404
commit 0055965295
3 changed files with 9 additions and 5 deletions

View file

@ -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()