-
Notifications
You must be signed in to change notification settings - Fork 76
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
Add OTel collector on Agent Startup based on configuration #681
Conversation
✅ Deploy Preview for agent-public-docs canceled.
|
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.
LGTM 👍
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.
Should everything here be in a metrics
package? We want to move away from having a plugins
package so can we move plugin/otel_collector.go
to the collector
package and rename it to otel_collector_plugin.go
?
internal/plugin/otel_collector.go
Outdated
type ( | ||
// Collector The OTel collector plugin start an embedded OTel collector for metrics collection in the OTel format. | ||
Collector struct { | ||
svc *otelcol.Collector |
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.
whats svc
?
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 running service? Collector.collector seemed incorrect. What would you prefer?
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.
oh right it wasn't obvious to me what svc
meant. Could it be called just service
?
Proposed changes
Add an embedded OTel Collector to NGINX Agent
Checklist
Before creating a PR, run through this checklist and mark each as complete.
CONTRIBUTING
documentmake install-tools
and have attached any dependency changes to this pull requestREADME.md
)