bring back prometheus metrics, with new metrics for replication state machine

This commit is contained in:
Christian Schwarz
2018-09-07 22:03:41 -07:00
parent ab9446137f
commit fa47667f31
12 changed files with 156 additions and 52 deletions
+2
View File
@@ -3,6 +3,7 @@ package job
import (
"context"
"errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/zrepl/zrepl/logger"
)
@@ -47,6 +48,7 @@ type Job interface {
Name() string
Run(ctx context.Context)
Status() interface{}
RegisterMetrics(registerer prometheus.Registerer)
}
func WaitWakeup(ctx context.Context) <-chan struct{} {