Package list golang-github-go-kit-kit / c961428
fix test to read quantile metrics with p prefix Eric Feliksik 4 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
160160 svc := newMockCloudWatch()
161161 cw := New(namespace, svc, WithLogger(log.NewNopLogger()))
162162 histogram := cw.NewHistogram(name).With(label, value)
163 n50 := fmt.Sprintf("%s_50", name)
164 n90 := fmt.Sprintf("%s_90", name)
165 n95 := fmt.Sprintf("%s_95", name)
166 n99 := fmt.Sprintf("%s_99", name)
163 n50 := fmt.Sprintf("%s_p50", name)
164 n90 := fmt.Sprintf("%s_p90", name)
165 n95 := fmt.Sprintf("%s_p95", name)
166 n99 := fmt.Sprintf("%s_p99", name)
167167 quantiles := func() (p50, p90, p95, p99 float64) {
168168 err := cw.Send()
169169 if err != nil {