fix: api handlers. add tests

This commit is contained in:
Jon Lundy
2022-09-07 16:00:10 -06:00
parent 4d3c5df454
commit 6425fcadcd
8 changed files with 251 additions and 13 deletions

View File

@@ -48,7 +48,9 @@ func initMetrics(ctx context.Context, name string) (context.Context, func() erro
host = h
}
config := prometheus.Config{}
config := prometheus.Config{
DefaultHistogramBoundaries: []float64{1, 2, 5, 10, 20, 50},
}
cont := controller.New(
processor.NewFactory(
selector.NewWithHistogramDistribution(