Prompt
What should I use to detect drift in production infrastructure?
Latest observation
Oct 25, 2026
OpenAI APIWeb search: off
For production infrastructure drift detection, the best choice depends on what you mean by “drift”:
1) Configuration drift
If you want to detect when servers, cloud resources, or Kubernetes objects no longer match the desired state, use:
- Terraform:
terraform planin CI/CD or scheduled jobs - AWS Config / Azure Policy / GCP Config Connector: cloud-native drift and policy compliance
- Kubernetes:
- Argo CD or Flux for GitOps drift detection
kubectl difffor simple checks
- Ansible: can compare desired vs actual, though it’s more remediation-oriented
2) Application/data drift
If you mean changes in runtime behavior, metrics, or data distributions:
- Evidently AI
- WhyLabs
- Monte Carlo
- Datadog / New Relic for observability-based anomaly/drift signals
3) Recommended practical setup
A common production pattern is:
- GitOps/IaC as source of truth
- Scheduled drift checks
- Alerting on unexpected diffs
- Automatic reconciliation where safe
Examples:
- Cloud infra: Terraform + AWS Config
- Kubernetes: Argo CD
- Multi-cloud compliance: OPA/Gatekeeper or Kyverno
If you want, I can recommend the best tool for your exact stack (AWS/Azure/GCP, Kubernetes, Terraform, etc.).