-
Notifications
You must be signed in to change notification settings - Fork 103
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
update metrics forwarder to support v2 #601
Conversation
Codecov Report
@@ Coverage Diff @@
## main #601 +/- ##
=======================================
Coverage 58.51% 58.51%
=======================================
Files 3 3
Lines 135 135
=======================================
Hits 79 79
Misses 43 43
Partials 13 13
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Co-authored-by: Bryce Eadie <bryce.eadie@datadoghq.com>
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.
the PR looks good.
small comment about struct decription
// +optional | ||
GeneratedToken string `json:"generatedToken,omitempty"` | ||
|
||
// Status corresponds to the ClusterAgent deployment computed status. |
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.
DeploymentStatus can be use also for the clustercheckrunner so it can be good to remove the notion of ClusterAgent in the description
…-operator into celene/metrics_forwarder
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.
💯
Co-authored-by: Bryce Eadie <bryce.eadie@datadoghq.com>
What does this PR do?
Update Metrics Forwarder to support v2 as well as maintain support for v1 DatadogAgent.
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Describe your test plan
Deploy the operator with the v1 DatadogAgent CRD enabled and set flag
operatorMetricsEnabled=true
. Apply the DatadogAgent, for instanceexamples/datadogagent/datadog-agent-all.yaml
. Make sure that operator metrics are reporting to Datadog.Do the same with the v2 CRD, using
examples/v2alpha1/min.yaml
.