include vnic stats
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-09-29 14:09:39 +10:00
parent 6c7d447c56
commit 88c8109391
9 changed files with 346 additions and 132 deletions

View File

@@ -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
}