-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CECO-2][DatadogMonitor] Configure force sync period #1404
Conversation
if err != nil { | ||
logger.Error(err, "Invalid value for monitor force sync period. Defaulting to 60 minutes.") | ||
} else { | ||
logger.V(1).Info("Setting monitor force sync period", "minutes", forceSyncPeriodInt) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid spamming the used sync period, this log is set to appear only in debug
with logger.V(1)
@@ -71,8 +71,11 @@ To deploy a `DatadogMonitor` with the Datadog Operator, use the [`datadog-operat | |||
``` | |||
|
|||
This automatically creates a new monitor in Datadog. You can find it on the [Manage Monitors][7] page of your Datadog account. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1404 +/- ##
==========================================
- Coverage 49.01% 49.01% -0.01%
==========================================
Files 223 223
Lines 19501 19508 +7
==========================================
+ Hits 9559 9562 +3
- Misses 9453 9456 +3
- Partials 489 490 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
|
/merge |
🚂 MergeQueue: pull request added to the queue The median merge time in Use |
/merge |
🚂 MergeQueue: pull request added to the queue The median merge time in Use |
What does this PR do?
DD_MONITOR_FORCE_SYNC_PERIOD
env varMotivation
Describe your test plan
DD_MONITOR_FORCE_SYNC_PERIOD
set to5
kubectl apply -f examples/datadogmonitor/metric-monitor-imagepullbackoff.yaml
DatadogMonitor
)DatadogMonitor
query within 5 minutes at most from your modification : you can identify this by looking at the monitor audit trail in the UI or in kubernetes by reviewing theMonitor Last Force Sync Time
in theDatadogMonitor
(withinStatus
) or the associated eventsDD_MONITOR_FORCE_SYNC_PERIOD
to a non integer value, e.g. "0,5" and assess the presence of the operator log complaining the value is invalid:Checklist
bug
,enhancement
,refactoring
,documentation
,tooling
, and/ordependencies
qa/skip-qa
label