add k8s_state dashboard_info (#13181)
Ilya Mashchenko committed
Jun 20, 2022 at 18:09 UTC
f62bc0efddb2a5ddaa11655bb59771478b11e44b
1 file changed
+188
web/gui/dashboard_info.js
+188
@@ -6833,4 +6833,192 @@ netdataDashboard.context = {
6833
info: '<p>The number of banned IP addresses.</p>'
6834
},
6835
6836
+ // ------------------------------------------------------------------------
6837
+ // K8s state: Node.
6838
+
6839
+ 'k8s_state.node_allocatable_cpu_requests_utilization': {
6840
+ info: 'The percentage of allocated CPU resources used by Pod requests. '+
6841
+ 'A Pod is scheduled to run on a Node only if the Node has enough CPU resources available to satisfy the Pod CPU request.'
6842
+ },
6843
+ 'k8s_state.node_allocatable_cpu_requests_used': {
6844
+ info: 'The amount of allocated CPU resources used by Pod requests. ' +
6845
+ '1000 millicpu is equivalent to '+
6846
+ '<a href="https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/#cpu-units" target="_blank">1 physical or virtual CPU core</a>.'
6847
+ },
6848
+ 'k8s_state.node_allocatable_cpu_limits_utilization': {
6849
+ info: 'The percentage of allocated CPU resources used by Pod limits. '+
6850
+ 'Total limits may be over 100 percent (overcommitted).'
6851
+ },
6852
+ 'k8s_state.node_allocatable_cpu_limits_used': {
6853
+ info: 'The amount of allocated CPU resources used by Pod limits. ' +
6854
+ '1000 millicpu is equivalent to '+
6855
+ '<a href="https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/#cpu-units" target="_blank">1 physical or virtual CPU core</a>.'
6856
+ },
6857
+ 'k8s_state.node_allocatable_mem_requests_utilization': {
6858
+ info: 'The percentage of allocated memory resources used by Pod requests. '+
6859
+ 'A Pod is scheduled to run on a Node only if the Node has enough memory resources available to satisfy the Pod memory request.'
6860
+ },
6861
+ 'k8s_state.node_allocatable_mem_requests_used': {
6862
+ info: 'The amount of allocated memory resources used by Pod requests.'
6863
+ },
6864
+ 'k8s_state.node_allocatable_mem_limits_utilization': {
6865
+ info: 'The percentage of allocated memory resources used by Pod limits. '+
6866
+ 'Total limits may be over 100 percent (overcommitted).'
6867
+ },
6868
+ 'k8s_state.node_allocatable_mem_limits_used': {
6869
+ info: 'The amount of allocated memory resources used by Pod limits.'
6870
+ },
6871
+ 'k8s_state.node_allocatable_pods_utilization': {
6872
+ info: 'Pods limit utilization.'
6873
+ },
6874
+ 'k8s_state.node_allocatable_pods_usage': {
6875
+ info: '<p>Pods limit usage.</p>'+
6876
+ '<p><b>Available</b> - the number of Pods available for scheduling. '+
6877
+ '<b>Allocated</b> - the number of Pods that have been scheduled.</p>'
6878
+ },
6879
+ 'k8s_state.node_condition': {
6880
+ info: 'Health status. '+
6881
+ 'If the status of the Ready condition remains False for longer than the <code>pod-eviction-timeout</code> (the default is 5 minutes), '+
6882
+ 'then the node controller triggers API-initiated eviction for all Pods assigned to that node. '+
6883
+ '<a href="https://kubernetes.io/docs/concepts/architecture/nodes/#condition" target="_blank">More info.</a>'
6884
+ },
6885
+ 'k8s_state.node_pods_readiness': {
6886
+ info: 'The percentage of Pods that are ready to serve requests.'
6887
+ },
6888
+ 'k8s_state.node_pods_readiness_state': {
6889
+ info: '<p>Pods readiness state.</p>'+
6890
+ '<p><b>Ready</b> - the Pod has passed its readiness probe and ready to serve requests. '+
6891
+ '<b>Unready</b> - the Pod has not passed its readiness probe yet.</p>'
6892
+ },
6893
+ 'k8s_state.node_pods_condition': {
6894
+ info: '<p>Pods state. '+
6895
+ '<a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-conditions" target="_blank">More info.</a></p>'+
6896
+ '<b>PodReady</b> - the Pod is able to serve requests and should be added to the load balancing pools of all matching Services. '+
6897
+ '<b>PodScheduled</b> - the Pod has been scheduled to a node. '+
6898
+ '<b>PodInitialized</b> - all init containers have completed successfully. '+
6899
+ '<b>ContainersReady</b> - all containers in the Pod are ready.</p>'
6900
+ },
6901
+ 'k8s_state.node_pods_phase': {
6902
+ info: '<p>Pods phase. The phase of a Pod is a high-level summary of where the Pod is in its lifecycle. '+
6903
+ '<a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase" target="_blank">More info.</a></p>'+
6904
+ '<p><b>Running</b> - the Pod has been bound to a node, and all of the containers have been created. '+
6905
+ 'At least one container is still running, or is in the process of starting or restarting. ' +
6906
+ '<b>Failed</b> - all containers in the Pod have terminated, and at least one container has terminated in failure. '+
6907
+ 'That is, the container either exited with non-zero status or was terminated by the system. ' +
6908
+ '<b>Succedeed</b> - all containers in the Pod have terminated in success, and will not be restarted. ' +
6909
+ '<b>Pending</b> - the Pod has been accepted by the Kubernetes cluster, but one or more of the containers has not been set up and made ready to run.</p>'
6910
+ },
6911
+ 'k8s_state.node_containers': {
6912
+ info: 'The total number of containers and init containers.'
6913
+ },
6914
+ 'k8s_state.node_containers_state': {
6915
+ info: '<p>The number of containers in different lifecycle states. '+
6916
+ '<a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-states" target="_blank">More info.</a></p>'+
6917
+ '<p><b>Running</b> - a container is executing without issues. '+
6918
+ '<b>Waiting</b> - a container is still running the operations it requires in order to complete start up. '+
6919
+ '<b>Terminated</b> - a container began execution and then either ran to completion or failed for some reason.</p>'
6920
+ },
6921
+ 'k8s_state.node_init_containers_state': {
6922
+ info: '<p>The number of init containers in different lifecycle states. '+
6923
+ '<a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-states" target="_blank">More info.</a></p>'+
6924
+ '<p><b>Running</b> - a container is executing without issues. '+
6925
+ '<b>Waiting</b> - a container is still running the operations it requires in order to complete start up. '+
6926
+ '<b>Terminated</b> - a container began execution and then either ran to completion or failed for some reason.</p>'
6927
+ },
6928
+ 'k8s_state.node_age': {
6929
+ info: 'The lifetime of the Node.'
6930
+ },
6931
+
6932
+ // K8s state: Pod.
6933
+
6934
+ 'k8s_state.pod_cpu_requests_used': {
6935
+ info: 'The overall CPU resource requests for a Pod. '+
6936
+ 'This is the sum of the CPU requests for all the Containers in the Pod. '+
6937
+ 'Provided the system has CPU time free, a container is guaranteed to be allocated as much CPU as it requests. '+
6938
+ '1000 millicpu is equivalent to '+
6939
+ '<a href="https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/#cpu-units" target="_blank">1 physical or virtual CPU core</a>.'
6940
+ },
6941
+ 'k8s_state.pod_cpu_limits_used': {
6942
+ info: 'The overall CPU resource limits for a Pod. '+
6943
+ 'This is the sum of the CPU limits for all the Containers in the Pod. '+
6944
+ 'If set, containers cannot use more CPU than the configured limit. '+
6945
+ '1000 millicpu is equivalent to '+
6946
+ '<a href="https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/#cpu-units" target="_blank">1 physical or virtual CPU core</a>.'
6947
+ },
6948
+ 'k8s_state.pod_mem_requests_used': {
6949
+ info: 'The overall memory resource requests for a Pod. '+
6950
+ 'This is the sum of the memory requests for all the Containers in the Pod.'
6951
+ },
6952
+ 'k8s_state.pod_mem_limits_used': {
6953
+ info: 'The overall memory resource limits for a Pod. '+
6954
+ 'This is the sum of the memory limits for all the Containers in the Pod. '+
6955
+ 'If set, containers cannot use more RAM than the configured limit.'
6956
+ },
6957
+ 'k8s_state.pod_condition': {
6958
+ info: 'The current state of the Pod. ' +
6959
+ '<a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-conditions" target="_blank">More info.</a></p>'+
6960
+ '<p><b>PodReady</b> - the Pod is able to serve requests and should be added to the load balancing pools of all matching Services. ' +
6961
+ '<b>PodScheduled</b> - the Pod has been scheduled to a node. ' +
6962
+ '<b>PodInitialized</b> - all init containers have completed successfully. ' +
6963
+ '<b>ContainersReady</b> - all containers in the Pod are ready. '
6964
+ },
6965
+ 'k8s_state.pod_phase': {
6966
+ info: 'High-level summary of where the Pod is in its lifecycle. ' +
6967
+ '<a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase" target="_blank">More info.</a></p>'+
6968
+ '<p><b>Running</b> - the Pod has been bound to a node, and all of the containers have been created. '+
6969
+ 'At least one container is still running, or is in the process of starting or restarting. ' +
6970
+ '<b>Failed</b> - all containers in the Pod have terminated, and at least one container has terminated in failure. '+
6971
+ 'That is, the container either exited with non-zero status or was terminated by the system. ' +
6972
+ '<b>Succedeed</b> - all containers in the Pod have terminated in success, and will not be restarted. ' +
6973
+ '<b>Pending</b> - the Pod has been accepted by the Kubernetes cluster, but one or more of the containers has not been set up and made ready to run. '+
6974
+ 'This includes time a Pod spends waiting to be scheduled as well as the time spent downloading container images over the network. '
6975
+ },
6976
+ 'k8s_state.pod_age': {
6977
+ info: 'The <a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-lifetime" target="_blank">lifetime</a> of the Pod. '
6978
+ },
6979
+ 'k8s_state.pod_containers': {
6980
+ info: 'The number of containers and init containers belonging to the Pod.'
6981
+ },
6982
+ 'k8s_state.pod_containers_state': {
6983
+ info: 'The state of each container inside this Pod. '+
6984
+ '<a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-states" target="_blank">More info.</a> '+
6985
+ '<p><b>Running</b> - a container is executing without issues. '+
6986
+ '<b>Waiting</b> - a container is still running the operations it requires in order to complete start up. '+
6987
+ '<b>Terminated</b> - a container began execution and then either ran to completion or failed for some reason.</p>'
6988
+ },
6989
+ 'k8s_state.pod_init_containers_state': {
6990
+ info: 'The state of each init container inside this Pod. '+
6991
+ '<a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-states" target="_blank">More info.</a> '+
6992
+ '<p><b>Running</b> - a container is executing without issues. '+
6993
+ '<b>Waiting</b> - a container is still running the operations it requires in order to complete start up. '+
6994
+ '<b>Terminated</b> - a container began execution and then either ran to completion or failed for some reason.</p>'
6995
+ },
6996
+
6997
+ // K8s state: Pod container.
6998
+
6999
+ 'k8s_state.pod_container_readiness_state': {
7000
+ info: 'Specifies whether the container has passed its readiness probe. '+
7001
+ 'Kubelet uses readiness probes to know when a container is ready to start accepting traffic.'
7002
+ },
7003
+ 'k8s_state.pod_container_restarts': {
7004
+ info: 'The number of times the container has been restarted.'
7005
+ },
7006
+ 'k8s_state.pod_container_state': {
7007
+ info: 'Current state of the container. '+
7008
+ '<a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-states" target="_blank">More info.</a> '+
7009
+ '<p><b>Running</b> - a container is executing without issues. '+
7010
+ '<b>Waiting</b> - a container is still running the operations it requires in order to complete start up. '+
7011
+ '<b>Terminated</b> - a container began execution and then either ran to completion or failed for some reason.</p>'
7012
+ },
7013
+ 'k8s_state.pod_container_waiting_state_reason': {
7014
+ info: 'Reason the container is not yet running. '+
7015
+ '<a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-state-waiting" target="_blank">More info.</a> '
7016
+ },
7017
+ 'k8s_state.pod_container_terminated_state_reason': {
7018
+ info: 'Reason from the last termination of the container. '+
7019
+ '<a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-state-terminated" target="_blank">More info.</a>'
7020
+ },
7021
+
7022
+ // ------------------------------------------------------------------------
7023
+
7024
};