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

Enable otel-agent using DDA annotation #1475

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

levan-m
Copy link
Contributor

@levan-m levan-m commented Oct 21, 2024

What does this PR do?

Adds a logic to enable otel-agent using annotation on DatadogAgent.

Sample DDA metadata with the annotation to enable otel-agent container.

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  annotations:
    agent.datadoghq.com/otel-agent-enabled: "true"
...

Motivation

What inspired you to submit this pull request?

Additional Notes

Anything else we should know when reviewing?

Minimum Agent Versions

Are there minimum versions of the Datadog Agent and/or Cluster Agent required?

  • Agent: vX.Y.Z
  • Cluster Agent: vX.Y.Z

Describe your test plan

Write there any instructions and details you may have to test your PR.

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

@levan-m levan-m added the enhancement New feature or request label Oct 21, 2024
@levan-m levan-m added this to the v1.10.0 milestone Oct 21, 2024
@levan-m levan-m requested a review from a team as a code owner October 21, 2024 17:53
@codecov-commenter
Copy link

codecov-commenter commented Oct 21, 2024

Codecov Report

Attention: Patch coverage is 57.14286% with 3 lines in your changes missing coverage. Please review.

Project coverage is 48.70%. Comparing base (ae5b9e1) to head (a05e26e).

Files with missing lines Patch % Lines
...ller/datadogagent/feature/enabledefault/feature.go 0.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1475   +/-   ##
=======================================
  Coverage   48.70%   48.70%           
=======================================
  Files         224      224           
  Lines       19845    19852    +7     
=======================================
+ Hits         9665     9669    +4     
- Misses       9673     9675    +2     
- Partials      507      508    +1     
Flag Coverage Δ
unittests 48.70% <57.14%> (+<0.01%) ⬆️

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

Files with missing lines Coverage Δ
api/datadoghq/v2alpha1/test/builder.go 92.00% <100.00%> (+0.05%) ⬆️
...ller/datadogagent/feature/enabledefault/feature.go 34.57% <0.00%> (-0.39%) ⬇️

Continue to review full report in Codecov by Sentry.

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

@levan-m levan-m merged commit 86c5b1d into main Oct 22, 2024
19 checks passed
@levan-m levan-m deleted the levan-m/otel-agent-using-annotation branch October 22, 2024 15:54
levan-m added a commit that referenced this pull request Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants