HTTP metrics improvements

- Switch to ochttp plugin
- Add HTTP request metrics
- Relabel for consistency
This commit is contained in:
Travis Groth 2019-07-11 20:11:17 -04:00
parent 8e4a54c6ca
commit e635c9bb3b
8 changed files with 139 additions and 129 deletions

View file

@ -18,7 +18,7 @@ func testDataRetrieval(v *view.View, t *testing.T, want string) {
t.Fatalf("%s: failed to retrieve data line %s", name, err)
}
if len(data) != 1 {
t.Errorf("%s: received too many data rows: %d", name, len(data))
t.Fatalf("%s: received incorrect number of data rows: %d", name, len(data))
}
if !strings.HasPrefix(data[0].String(), want) {