Example #1
0
 def disk_usage(self, request, project_id, cluster_id):
     node_list = self.get_node_ip_list(request, project_id, cluster_id)
     result = prometheus.get_cluster_disk_usage_range(cluster_id, node_list)
     return response.Response(result)
Example #2
0
 def disk_usage(self, request, project_id, cluster_id):
     """ 集群 磁盘 使用情况 """
     node_ip_list = self._get_cluster_node_ip_list(project_id, cluster_id)
     response_data = prom.get_cluster_disk_usage_range(cluster_id, node_ip_list)
     return Response(response_data)