status: infra for reporting jobs instead of just replication.Report

This commit is contained in:
Christian Schwarz
2018-09-23 21:08:03 +02:00
parent 4a6160baf3
commit 9446b51a1f
7 changed files with 116 additions and 25 deletions

View File

@ -39,7 +39,7 @@ func init() {
func (j *prometheusJob) Name() string { return jobNamePrometheus }
func (j *prometheusJob) Status() interface{} { return nil }
func (j *prometheusJob) Status() *job.Status { return &job.Status{Type: job.TypeInternal} }
func (j *prometheusJob) RegisterMetrics(registerer prometheus.Registerer) {}