mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 06:19:41 +02:00
Feat 4612 real time metrics for kube nodes (#4708)
* feat(k8s/node): display realtime node metrics GH#4612 * feat(k8s): show observation timestamp instead of real timestamp GH#4612 Co-authored-by: Simon Meng <simon.meng@portainer.io>
This commit is contained in:
parent
45ceece1a9
commit
dc180d85c5
11 changed files with 273 additions and 1 deletions
|
@ -15,7 +15,8 @@ class KubernetesClusterController {
|
|||
KubernetesNodeService,
|
||||
KubernetesApplicationService,
|
||||
KubernetesComponentStatusService,
|
||||
KubernetesEndpointService
|
||||
KubernetesEndpointService,
|
||||
EndpointProvider
|
||||
) {
|
||||
this.$async = $async;
|
||||
this.$state = $state;
|
||||
|
@ -26,6 +27,7 @@ class KubernetesClusterController {
|
|||
this.KubernetesApplicationService = KubernetesApplicationService;
|
||||
this.KubernetesComponentStatusService = KubernetesComponentStatusService;
|
||||
this.KubernetesEndpointService = KubernetesEndpointService;
|
||||
this.EndpointProvider = EndpointProvider;
|
||||
|
||||
this.onInit = this.onInit.bind(this);
|
||||
this.getNodes = this.getNodes.bind(this);
|
||||
|
@ -132,6 +134,7 @@ class KubernetesClusterController {
|
|||
}
|
||||
|
||||
this.state.viewReady = true;
|
||||
this.state.useServerMetrics = this.EndpointProvider.currentEndpoint().Kubernetes.Configuration.UseServerMetrics;
|
||||
}
|
||||
|
||||
$onInit() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue