-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
K8S Processor: Include more tags #141
Comments
I like having them at least as options for the config, not always on :) |
This package is going to allow controlled transition/rename of metrics. The initial implementation just prepares the way to remove the calls to the observability package. In order to be able to rename and change the metrics generated by the Collector without breaking current usage the obsreport package is being introduced. After this is merged a command-line flag can be added to control the generation of the different sets of metrics - initially with the default as legacy only. Link to tracking Issue: Needed for #141, see also the comments of PR #530 Testing: Besides the added tests I have a series of follow up PRs ready, I used these other PRs to manually validate the changes. Documentation: Please refer to doc.go in the new package.
These metrics had an outdated prefix, while at it renamed the metrics attempting to make their meaning more obvious. Link to tracking Issue: Related to #141 Testing: Manually validated generated metric names
hostName should be supported by host.name (https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/resource/semantic_conventions/host.md) and containerName by container.name (https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/resource/semantic_conventions/container.md) |
I am currently using this processor to map deployment data from istio's sidecar trace data. I would be very happy if it supports statefulset and daemonset other than deployment. |
What we ended up with (at least for now), was having a custom changeset that provides some of this capabilities (and few others) on top of existing processor. It's not the highest priority, but we would like to move some of those changes back to the main version (the scope of the changes was not accepted previously, so we would need to redo it in a more efficient way). But, if that helps, you could try it out: https://github.com/SumoLogic/opentelemetry-collector-contrib/tree/main/processor/k8sprocessor |
Thank you very much ! When will the code (https://github.com/SumoLogic/opentelemetry-collector-contrib/tree/main/processor/k8sprocessor) be upstreamed to otel-contrib main code? |
Thanks @hansh0801 This is a bit complex, you can refer to the original discussion on that for context. We started working on a reimplementation using a more lightweight approach, but hit several issues, such lack of agreement how to treat tags when there are several containers running in a Pod (this information cannot be really extracted on that level). Or how to handle The plan was to go back to this after GA |
I would make a correction to the original request.
I suggest to add the following attributes as optional that can be clearly associated with a pod:
We also should probably make |
Makes sense. Let's add Job and CronJob as optional attributes as well 👍 |
Currently, the processor supports following tags:
It would be great to include more tags, such as:
Additionally, it would be good to have an ability to include all labels and annotations
The text was updated successfully, but these errors were encountered: