-
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
[k8sattributesprocessor] Support set resource attributes from environment variables of k8s pods #33700
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Is |
Hi @TylerHelmuth , metrics So I came up with the idea to use |
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. |
Component(s)
processor/k8sattributes
Is your feature request related to a problem? Please describe.
We are using the receiver creator with prometheus simple receiver as the receiver inside to automatically discover pods with
prometheus.io/scrape: "true"
annotations and collect metrics from them. The problem is that theservice.name
labels in the metrics areprometheus_simple/<ip:port>
, but we want them be the real service name of the applications.Describe the solution you'd like
Currently the k8sattributesprocessor can set resource attributes from k8s labels and annotations of pods, namespaces and nodes. If it can also extract pod environment variables, such as the OTEL_RESOURCE_ATTRIBUTES, OTEL_SERVICE_NAME, and set them as the resource attributes, that would help to solve the problem above.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: