Interview Prep/Monitoring & Observability/Kubernetes monitoring and the Prometheus Operator

Metrics from short-lived Kubernetes Job pods never appear

IntermediateTroubleshootingKubernetes monitoring and the Prometheus Operator
Answer

Likely causes → The pod finishes before the next scrape (30s interval), or the PodMonitor is selected but the pod is gone by discovery time.

Diagnose → Job duration vs scrape interval.

Fix → Push final metrics to Pushgateway (or OTel collector) at job end, or have the job stay alive for one scrape window.

Prevent → Track job success via kube-state-metrics (kube_job_status_succeeded, kube_job_status_failed) instead of app metrics.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Kubernetes monitoring and the Prometheus Operator