Add error-tracking monitor option to DatadogMonitor CRD. #2775#2778
Add error-tracking monitor option to DatadogMonitor CRD. #2775#2778AkselAllas wants to merge 4 commits intoDataDog:mainfrom
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c7e25f1612
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
64f680b to
5fc510b
Compare
|
I overwrote the DatadogMonitor CRD with the following file (Taken from my PR fork): datadoghq.com_datadogmonitors.yaml And by using the following image & conf for the operator: And this is the monitor yml diff: |
|
I have this feature working in my k8s cluster, could we try to get this merged? |
5fc510b to
1fecfa1
Compare
|
@AkselAllas thanks for your submission. We will plan this for 1.26 release milestone. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2778 +/- ##
==========================================
- Coverage 39.21% 39.19% -0.03%
==========================================
Files 314 314
Lines 27303 27321 +18
==========================================
Hits 10708 10708
- Misses 15807 15825 +18
Partials 788 788
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
@AkselAllas created repo branch off of your PR in #2843 and will merge it, closing this. |
What does this PR do?
Close #2775
Since the go api already supports error-tracking via
datadogV1.MONITORTYPE_ERROR_TRACKING_ALERT, then it's super easy to expose this via the CRD.Motivation
Get error-tracking monitors working via k8s yml.
#2775
Additional Notes
Need help with labels.
Minimum Agent Versions
Are there minimum versions of the Datadog Agent and/or Cluster Agent required?
Probably.
Describe your test plan
My fork successfully created the monitor in my k8s cluster.
I overwrote the DatadogMonitor CRD with the following file (Taken from my PR fork):
datadoghq.com_datadogmonitors.yaml
And by using the following image & conf for the operator:
And this is the monitor yml diff:
Checklist
bug,enhancement,refactoring,documentation,tooling, and/ordependenciesqa/skip-qalabel