Introduction
The Kubernetes controller manager is a daemon that embeds the core control loops shipped with Kubernetes. In Kubernetes, a controller is a control loop which watches the shared state of the cluster through the apiserver and makes changes attempting to move the current state towards the desired state.
Starting with release 1.21, daemon-controller-manager was consolidated into daemon-kubelite.
The kube-controller-manager daemon is started using the arguments in
${SNAP_DATA}/args/kube-controller-manager. For more detail on these arguments, see the upstream kube-controller-manager documentation .
Global Template
Assign following template to Microk8s Master or Microk8s integration resource under Infrastructure > Resources > Microk8s page.
Collector Type: Agent
Category: Application Monitors
G2 Monitor Name: Agent G2 - Linux - MicroK8s Kubelite
Global Template Name: Agent G2 - Linux - MicroK8s Kubelite
Collected Metrics
Metric Name | Display Name | Description | Units |
---|---|---|---|
microk8s_controller_workqueue_work_duration_sum | MicroK8s Controller Workqueue Work Duration Seconds Sum | Duration taken in seconds to process an item from workqueue. | seconds |
microk8s_controller_workqueue_work_duration_count | MicroK8s Controller Workqueue Work Duration Seconds Count | Total time taken in seconds to process an item from workqueue. | seconds |
microk8s_controller_workqueue_work_unfinished_duration | MicroK8s Controller Workqueue Longest Running Processor Seconds | Time in seconds for which the longest running processor for workqueue is running | |
microk8s_controller_workqueue_work_longest_duration | MicroK8s Controller Workqueue Unfinished Work Seconds | Time in seconds for which the longest running processor for workqueue is running | |
microk8s_controller_workqueue_queue_duration_sum | MicroK8s Controller Workqueue Queue Duration Seconds Sum | Duration in seconds for which an item remains in workqueue before being requested. | |
microk8s_controller_workqueue_queue_duration_count | MicroK8s Controller Workqueue Queue Duration Seconds Count | Total duration in seconds for which an item remains in workqueue before being requested. | |
microk8s_controller_workqueue_nodes_count | MicroK8s Controller Registered Nodes | Number of registered Nodes per zone. | |
microk8s_controller_workqueue_nodes_unhealthy | MicroK8s Controller Node Collector Unhealthy Nodes in Zone | Number of Nodes not ready per zone. | |
microk8s_controller_workqueue_depth | MicroK8s Controller Workqueue Depth | Current depth of workqueue. | |
microk8s_controller_workqueue_adds | MicroK8s Controller Workqueue Adds Total | Total number of additions/insertions handled by workqueue. | |
microk8s_controller_workqueue_retries | MicroK8s Controller Workqueue Retries Total | Total number of retries handled by workqueue. |
Validate
Navigate to Infrastructure > Resources tab to check if your resources are onboarded and the metrics are collected.