Add pluggable live collectors and simplify API connect form
This commit is contained in:
@@ -14,7 +14,8 @@ import (
|
||||
|
||||
func newCollectTestServer() (*Server, *httptest.Server) {
|
||||
s := &Server{
|
||||
jobManager: NewJobManager(),
|
||||
jobManager: NewJobManager(),
|
||||
collectors: testCollectorRegistry(),
|
||||
}
|
||||
mux := http.NewServeMux()
|
||||
mux.HandleFunc("POST /api/collect", s.handleCollectStart)
|
||||
|
||||
Reference in New Issue
Block a user