Remove unused fields from MetricsService.
This commit is contained in:
parent
c8a6b73bff
commit
3f2686d0b3
2
main.go
2
main.go
|
@ -167,8 +167,6 @@ func NewPrometheus() *prometheus {
|
|||
}
|
||||
|
||||
metricsService := &api.MetricsService{
|
||||
Config: &conf,
|
||||
TargetManager: targetManager,
|
||||
Storage: memStorage,
|
||||
}
|
||||
|
||||
|
|
|
@ -18,16 +18,12 @@ import (
|
|||
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
|
||||
"github.com/prometheus/prometheus/config"
|
||||
"github.com/prometheus/prometheus/retrieval"
|
||||
"github.com/prometheus/prometheus/storage/local"
|
||||
"github.com/prometheus/prometheus/web/httputils"
|
||||
)
|
||||
|
||||
// MetricsService manages the /api HTTP endpoint.
|
||||
type MetricsService struct {
|
||||
Config *config.Config
|
||||
TargetManager retrieval.TargetManager
|
||||
Storage local.Storage
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue