This commit is contained in:
@@ -56,7 +56,7 @@ func main() {
|
||||
log.Printf("Got authentication cookie: %s\n", ucsClient.Cookie)
|
||||
|
||||
// Register prometheus exporters
|
||||
exporter := exporters.NewUcsmTemperatureCollector(ucsClient, ctx)
|
||||
exporter := exporters.NewUcsmExporters(ucsClient, ctx)
|
||||
prometheus.MustRegister(exporter)
|
||||
|
||||
// Start prometheus exporter
|
||||
@@ -64,4 +64,6 @@ func main() {
|
||||
|
||||
// TODO - run this in a go routine to avoid blocking, as per cbs code
|
||||
log.Fatal(http.ListenAndServe(*listenPort, nil))
|
||||
|
||||
// TODO - log off from UCS manager
|
||||
}
|
||||
|
Reference in New Issue
Block a user