-
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
resource labels missing in logs, post migrate to otel collector 0.73 #26650
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Could you please share the full config? Do you have hints configured? |
hi @mar4uk , we haven't configured hints here. full config:
let me know, if you need more info. |
Thank you for sending the config. To create stream labels in Loki you need to configure hints in the collector config using resource attributes processor (refer to the loki exporter readme "Labels" section). Or, if you don't want those resource attributes to be indexed labels, you can use a parser (
|
hi @mar4uk , how can we set logs labels using hints? can you give us example? when we add below config in resource processor , it is setting loki.resource.labels : service.name in log resource attributes. resource: we need service.name as resource attributes with value from pod label like service.name = example-app in logs , can you please guide here ? thanks. |
The config looks correct, it should add label service_name = example-app in Loki.
This is correct. Could you please share what your log record looks like in Loki? |
hi @mar4uk , is below thing is not supported in 0.73 otel version for logs , to insert it in resource attributes?
|
hmm.. I don't see Could you please add a logging exporter with a verbosity detailed option? and send the log record you see in the collector stdout?
|
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. |
Please feel free to reopen if there's still something to be addressed here. |
Component(s)
exporter/loki
What happened?
hi team,
we facing issue when we upgrade from otel 0.47 to 0.73. all config we make compatible with 0.73.
we have certain labels such as service.name and service.namespace attached to pods and we set resource attributes by fetching it from pod .
metrics and traces are having these labels . but same labels are missing for logs.
can you please help here ?
thanks.
Collector version
0.73
Environment information
Environment
kubernetes
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: