mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
feat(kubernetes/resource-usage): k8s resource usage for cluster, node and namespace EE-3 EE-1112 (#5301)
* backported resource usage functionality from EE * utilising view bound endpoint object instead of depracated EndpointProvider * refactor flatmap * addressed merge conflict issues
This commit is contained in:
parent
cee7ac26e9
commit
ce31de5e9e
13 changed files with 188 additions and 30 deletions
|
@ -24,6 +24,14 @@ angular.module('portainer.kubernetes').factory('KubernetesMetrics', [
|
|||
method: 'GET',
|
||||
url: `${url}/nodes/:id`,
|
||||
},
|
||||
getPods: {
|
||||
method: 'GET',
|
||||
url: `${url}/namespaces/:namespace/pods`,
|
||||
},
|
||||
getNodes: {
|
||||
method: 'GET',
|
||||
url: `${url}/nodes`,
|
||||
},
|
||||
}
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue