-
Notifications
You must be signed in to change notification settings - Fork 151
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
Automatically collect metrics, logs from K8s Control Plane #355
Conversation
helm-charts/splunk-otel-collector/templates/config/_otel-agent.tpl
Outdated
Show resolved
Hide resolved
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.
Just to confirm. Since these are plain prometheus metrics, this is a temporary solution, and will be replaced with receiver_creator / prometheus going forward, right?
Prior to switching to prometheus, we probably need to setup all the filtering of the non-default metrics in signalfx exporter https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/signalfxexporter/internal/translation/default_metrics.go#L22 @mstumpfx can correct me if I'm wrong
helm-charts/splunk-otel-collector/templates/config/_otel-agent.tpl
Outdated
Show resolved
Hide resolved
also don't forget to run |
I'm getting this error trying it locally:
|
The benefit of this approach is that the filtering is already built-in to the smart agent monitor. But yeah, they're just prometheus metrics and we could do exactly what you said. |
Looks like I am still running into some render issues, looking into them. |
I started this PR earlier then intended and my first commit had config errors in it. The sa apiserver configs have been updated and work properly now. The git actions are passing now. Using the auto discovery rule with type==port made the configs a lot cleaner, thanks for the input @dmitryax and @mstumpfx. Can you guys look at this PR again? |
helm-charts/splunk-otel-collector/templates/config/_otel-agent.tpl
Outdated
Show resolved
Hide resolved
LGTM from discovery perspective. Glad the |
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. Please rebase and add a line to CHANGELOG
…via the smartagent/kubernetes-apiserver receiver. Added a control plane section to advanced-configuration.md. Included the latest rendered manifests.
Overview
Notes: