Identify Kubernetes Cluster Health Issues
Problem
You are unable to identify issues related to Kubernetes cluster health.
Solution
The third-party kube-state-metrics monitoring service generates metrics based on the current state of Kubernetes clusters. The kube-state-metrics service is a beta-only feature that runs as a cluster service and is installed automatically when you install Paragon Automation. Once this service is installed, you can enable this service to generate, monitor, and expose metrics of various objects within a Kubernetes cluster.
To enable kube-state-metrics from the Paragon Automation UI:
-
Create an unmanaged device.
The unmanaged device represents the cluster. The device hostname must be the kube-state-metrics service IP. For example, the hostname could be
kube-state-metrics.healthbot.svc.cluster.local
. -
Add the device to a device group.
-
Create rules.
-
Apply playbooks to the device group.
After you have enabled kube-state-metrics, you can view metrics on pods, DaemonSets, deployments, persistent volume, endpoints, ingress, job, lease, and configmap objects that are part of a Kubernetes cluster. For more information, see Understand kube-state-metrics Service.
To view metrics:
-
Navigate to the Monitoring > Network Health page.
-
On the Network Health page, click the Device Group entity type, and select the new unmanaged device from the Devices drop-down list.
A tile view and table view of the results are displayed after a few minutes.