Skip to content
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

Merged
merged 9 commits into from
Aug 31, 2022
Merged

Conversation

celenechang
Copy link
Contributor

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 instance examples/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.

@celenechang celenechang added this to the v1.0.0 milestone Aug 23, 2022
@celenechang celenechang requested review from a team as code owners August 23, 2022 21:08
@codecov-commenter
Copy link

codecov-commenter commented Aug 23, 2022

Codecov Report

Merging #601 (b12b857) into main (b879c8c) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #601   +/-   ##
=======================================
  Coverage   58.51%   58.51%           
=======================================
  Files           3        3           
  Lines         135      135           
=======================================
  Hits           79       79           
  Misses         43       43           
  Partials       13       13           
Flag Coverage Δ
unittests 58.51% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
controllers/datadogagent_controller.go 55.07% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b879c8c...b12b857. Read the comment docs.

docs/how-to-contribute.md Outdated Show resolved Hide resolved
Co-authored-by: Bryce Eadie <bryce.eadie@datadoghq.com>
Copy link
Collaborator

@clamoriniere clamoriniere left a 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.
Copy link
Collaborator

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

Copy link
Collaborator

@clamoriniere clamoriniere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

docs/how-to-contribute.md Outdated Show resolved Hide resolved
Co-authored-by: Bryce Eadie <bryce.eadie@datadoghq.com>
@celenechang celenechang merged commit f337748 into main Aug 31, 2022
@celenechang celenechang deleted the celene/metrics_forwarder branch August 31, 2022 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants