Migrate the builtin Prometheus checks to metric templates

This commit is contained in:
stefanprodan
2020-02-06 15:07:53 +02:00
parent d154c63ac3
commit d7d9d1eabe
34 changed files with 986 additions and 770 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
package controller
import (
"github.com/weaveworks/flagger/pkg/metrics/observers"
"sync"
"time"
@@ -73,7 +74,7 @@ func SetupMocks(c *flaggerv1.Canary) Mocks {
rf := router.NewFactory(nil, kubeClient, flaggerClient, "annotationsPrefix", logger, flaggerClient)
// init observer
observerFactory, _ := metrics.NewFactory("fake", 5*time.Second)
observerFactory, _ := observers.NewFactory("fake")
// init canary factory
configTracker := canary.ConfigTracker{