This project provides a jsonnet library for configuring kube-state-metrics and installing it on Kubernetes.
The ksmCustom library provides a way to configure Custom Resource State Metrics, it is generated from a JSON schema derived from the Go structs in kube-state-metrics. The kube-state-metrics library is manually curated.
See docs to configure Custom Resource State Metrics and install kube-state-metrics.