-
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
[k8sattributes] Support the extraction of service level metadata in processor #20840
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
What if there are multiple services associated with the pod the data coming from? |
@dmitryax So I think this is a problem similarly encountered in prometheus where a scrape target (e.g. a pod i.p.) is discovered during service discovery and some scrape targets might have multiple services associated with the pod endpoint. So then there ends up being duplicated timeseries, each with its own
Unsure how feasible these suggestions are to implement. Any thoughts on the best way to workaround this issue? |
Given that multiple services for one pod is not recommended use of k8s service, I believe we can go we this option. BTW not sure what you mean by container labels :) |
Pinging code owners for processor/k8sattributes: @dmitryax @rmfitzpatrick. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Keep in mind that this is technically more complex than other metadata we currently support in the processor. If you take, say,
Is there some kind of official guidance on using multiple Services this way? I know of multiple relatively high-profile Helm Charts that create, for example, both a normal Service and a headless one for the same set of Pods. Some also create separate Services specifically for monitoring via ServiceMonitors. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
It feels like there are still scenes that need this feature. We currently have this scenario requirement: If a client is accessing a service's ClusterIP, such as: podA->serviceB At this time, we hope to be able to automatically associate the metadata attributes of the corresponding service according to this clusterIP |
Component(s)
No response
Is your feature request related to a problem? Please describe.
Currently the k8sattributes processor extracts metadata labels that are associated with a pod object or a namespace object. This ticket is to request some metadata to be extracted for a service kube object. In particular
k8s.service.name
would be a great attribute to have available.Describe the solution you'd like
k8sattributes processor adds functionality to watch kube service and store/extract metadata labels related to kube service.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: