kube-state-metrics series are missing for a new CRD-based resource
IntermediateTroubleshootingKubernetes monitoring and the Prometheus Operator
Answer
Likely causes → kube-state-metrics only exposes built-in resources by default; custom resources need --custom-resource-state-config.
Diagnose → curl ksm:8080/metrics | grep -i <crd> returns nothing.
Fix → Provide a CustomResourceStateMetrics config describing which fields to expose, and grant RBAC to list/watch the CRD.
Prevent → Prefer the operator's own metrics endpoint for its CRDs where available.
More on Kubernetes monitoring and the Prometheus Operator
A new ServiceMonitor is not picked up by the Prometheus OperatorIntermediateServiceMonitor is selected but its targets don't appear on `/targets`IntermediateServiceMonitor target appears but Operator logs `skipping servicemonitor ... failed to get secret`AdvancedPodMonitor targets show `DOWN` with `connection refused` on port 8080 while the app listens on 9090BeginnerPrometheusRule created but rules don't show in PrometheusIntermediate`KubeletDown` / `TargetDown` alerts fire for kube-scheduler and kube-controller-manager on EKS/GKEBeginner