Skip to content

Commit

Permalink
fix: add log show node (#2123)
Browse files Browse the repository at this point in the history
Signed-off-by: 张启航 <[email protected]>
  • Loading branch information
ZhangSetSail authored Jan 13, 2025
1 parent 96a2970 commit d14eaac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/handler/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ func (n *nodesHandle) HandleNodeInfo(node v1.Node) (nodeinfo model.NodeInfo, err
}
continue
}
logrus.Infof("show node role %v", roles)
// req resource from Prometheus
var query string
query = fmt.Sprintf(`sum(rbd_api_exporter_cluster_pod_memory{node_name="%v"}) by (instance)`, node.Name)
Expand Down

0 comments on commit d14eaac

Please sign in to comment.