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 NameDisplay NameDescriptionUnits
microk8s_controller_workqueue_work_duration_sumMicroK8s Controller Workqueue Work Duration Seconds SumDuration taken in seconds to process an item from workqueue.seconds
microk8s_controller_workqueue_work_duration_countMicroK8s Controller Workqueue Work Duration Seconds CountTotal time taken in seconds to process an item from workqueue.seconds
microk8s_controller_workqueue_work_unfinished_durationMicroK8s Controller Workqueue Longest Running Processor SecondsTime in seconds for which the longest running processor for workqueue is running
microk8s_controller_workqueue_work_longest_durationMicroK8s Controller Workqueue Unfinished Work SecondsTime in seconds for which the longest running processor for workqueue is running
microk8s_controller_workqueue_queue_duration_sumMicroK8s Controller Workqueue Queue Duration Seconds SumDuration in seconds for which an item remains in workqueue before being requested.
microk8s_controller_workqueue_queue_duration_countMicroK8s Controller Workqueue Queue Duration Seconds CountTotal duration in seconds for which an item remains in workqueue before being requested.
microk8s_controller_workqueue_nodes_countMicroK8s Controller Registered NodesNumber of registered Nodes per zone.
microk8s_controller_workqueue_nodes_unhealthyMicroK8s Controller Node Collector Unhealthy Nodes in ZoneNumber of Nodes not ready per zone.
microk8s_controller_workqueue_depthMicroK8s Controller Workqueue DepthCurrent depth of workqueue.
microk8s_controller_workqueue_addsMicroK8s Controller Workqueue Adds TotalTotal number of additions/insertions handled by workqueue.
microk8s_controller_workqueue_retriesMicroK8s Controller Workqueue Retries TotalTotal number of retries handled by workqueue.

Validate

Navigate to Infrastructure > Resources tab to check if your resources are onboarded and the metrics are collected.