Interview Prep/Monitoring & Observability/Kubernetes Monitoring, Scale & Cloud

What CRDs does the Prometheus Operator provide?

IntermediateConceptKubernetes Monitoring, Scale & Cloud
Answer
CRD Purpose
Prometheus / PrometheusAgent A Prometheus (or agent) deployment and its config
Alertmanager An Alertmanager cluster
ServiceMonitor Scrape endpoints behind a Kubernetes Service
PodMonitor Scrape pods directly, no Service needed
Probe Blackbox-style probing of static targets or Ingresses
ScrapeConfig Raw scrape configs (static, file, HTTP, EC2 SD and more)
PrometheusRule Recording and alerting rules
AlertmanagerConfig Namespaced routes, receivers and inhibitions
ThanosRuler Thanos rule evaluation
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata: { name: api, labels: { release: monitoring } }
spec:
  selector: { matchLabels: { app: api } }
  endpoints: [{ port: http-metrics, interval: 30s }]

App teams own their ServiceMonitors and PrometheusRules in their namespace; the platform team owns the Prometheus object.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Kubernetes Monitoring, Scale & Cloud