kube-state-metrics
Enjoy a richer custom dashboards experience
Last updated
Enjoy a richer custom dashboards experience
Last updated
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'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.
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
groundcover uses a minimal set of KSM collectors. In order to configure our KSM deployment for full collection, use the following configuration:
Add the following override to add a scrape job which will scrape the KSM deployment, making the metrics available in groundcover's embedded Grafana.
groundcover supports a flag to turn on . If you haven't enabled custom metrics yet, do so using the steps in the link above.