Skip to content

Conversation

jameschoa
Copy link

What does this PR do?

Exposes the requeue period used by the internalReconcile function as an environment variable to address #1171.

Motivation

We want to migrate the management of our monitors from Terraform to the Datadog operator. The problem though is that we will potentially have thousands of monitors that would query the Datadog API every minute. Allowing the user to adjust the requeue period will help reduce the number of requests per minute and avoid rate limit issues.

Additional Notes

PR currently targets the DatadogMonitor resources only, but the same pattern should be applicable for other resources.

Minimum Agent Versions

Currently tested with the following versions:

  • Agent: v7.50.2
  • Cluster Agent: v7.50.2

Describe your test plan

  1. Create a DatadogMonitor resource in the cluster
  2. Observe the operator logs to confirm that the reconciliation happens every X seconds as configured through the env var instead of the default of 60 seconds.

Checklist

  • PR has at least one valid label: bug, enhancement, refactoring, documentation, tooling, and/or dependencies
  • PR has a milestone or the qa/skip-qa label

@jameschoa jameschoa requested a review from a team as a code owner March 4, 2025 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants