kube-state-metrics
Enjoy a richer custom dashboards experience
kube-state-metrics is a simple service that listens to the Kubernetes API server and generates metrics about the state of the objects. groundcover comes with a built-in deployment of kube-state-metrics, and exposes its metrics within our embedded Grafana in two potential ways described below.
groundcover selected metrics
groundcover's built-in deployment of kube-state-metrics comes with a minimal configuration, keeping only a pre-selected set of the metrics which are used in our native screens. This approach has the benefit of limiting the potentially huge cardinality of KSM metrics, while also allowing us to enrich the selected metrics with extra groundcover labels.
KSM metrics generated in this method will be prefixed with groundcover_
in order to separate them from other KSM deployments.
For example, the metrickube_pod_status_phase
will appear in groundcover as groundcover_kube_pod_status_phase.
Full KSM metrics
If you are interested in having the full scope of available KSM metrics, it's possible to configure groundcover's KSM deployment for the task.
This is achieved following these steps:
Configuring the KSM deployment for full collection
Turning on custom metrics scraping
Setting up a scrape job to fetch the KSM metrics
Configuring the KSM deployment
groundcover uses a minimal set of KSM collectors. In order to configure our KSM deployment for full collection, use the following configuration:
Turning on custom metrics scraping
groundcover supports a flag to turn on automatic collection of custom metrics. If you haven't enabled custom metrics yet, do so using the steps in the link above.
Setting up a custom metrics scrape job
Add the following override to add a scrape job which will scrape the KSM deployment, making the metrics available in groundcover's embedded Grafana.
Last updated