|
@@ -61,10 +61,13 @@ type System struct {
|
|
|
|
|
|
var nodes = map[string]string{
|
|
|
"kube-01": "c4766d29-4dc1-11ea-9d98-0242ac110002",
|
|
|
- "kube-02": "2",
|
|
|
- "kube-03": "2",
|
|
|
- "kube-04": "2",
|
|
|
- "kube-05": "2",
|
|
|
+ "kube-02": "c4766d29-4dc1-11ea-9d98-0242ac110002",
|
|
|
+ "kube-03": "c4766d29-4dc1-11ea-9d98-0242ac110002",
|
|
|
+ "kube-04": "c4766d29-4dc1-11ea-9d98-0242ac110002",
|
|
|
+ "kube-05": "c4766d29-4dc1-11ea-9d98-0242ac110002",
|
|
|
+ "kube-06": "c4766d29-4dc1-11ea-9d98-0242ac110002",
|
|
|
+ "kube-07": "c4766d29-4dc1-11ea-9d98-0242ac110002",
|
|
|
+ "kube-08": "c4766d29-4dc1-11ea-9d98-0242ac110002",
|
|
|
}
|
|
|
|
|
|
func readFile(cfg *Config, file string) {
|
|
@@ -108,8 +111,8 @@ func customResourceScorer(nodeName string) int64 {
|
|
|
} else {
|
|
|
klog.Infof("Connected Successfully to InfluxDB")
|
|
|
}
|
|
|
-
|
|
|
// close the connection in the end of execution
|
|
|
+
|
|
|
defer c.Close()
|
|
|
|
|
|
//Get the uuid of this node in order to query in the database
|
|
@@ -122,7 +125,7 @@ func customResourceScorer(nodeName string) int64 {
|
|
|
klog.Infof("%v", response.Results)
|
|
|
}
|
|
|
} else {
|
|
|
- klog.Infof("Something went wrong with InfluxDB metrics extraction: %v", ok)
|
|
|
+ klog.Infof("Error finding the uuid: %v", ok)
|
|
|
}
|
|
|
|
|
|
// //Close the database connection in the end of the execution
|