-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[exporter/Loki] multiple attributes for loki not working #21168
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
the attributes processor should look like this:
To promote multiple attributes to labels you need to specify them coma-separated in one action By the way, traceID is not a good candidate to label promotion. Its value doesn't have boundaries (there are infinite values of traceIDs) which leads to high cardinality issue in Loki. The best practice is to use filter expressions to query logs for a specific traceID:
A few articles on Loki labels: |
@mar4uk Thank you so much for your response. I was planning to change trace id to correlation Id. I will definitely follow the best practices which you have shared. Thanks again. |
Another way to correlate logs and traces is configuring Derived fields in Loki datasource configuration: This will parse the log message, find traceID and make it a link to the tracing datasource: |
Should this be closed? |
Component(s)
exporter/loki
Describe the issue you're reporting
Hello,
I am trying to set multiple labels in loki dashboard, but it's are not working. In the below configuration one label at a time is working but both of them not working together. I can always see app-name in loki dashboard, and if I am adding only traceId id as a label then I can see traceId label after removing app_name.This app_name and traceId I am setting from flauntD manifest file
This is my loki dashboard:
Please help me where the configuration is wrong.
The text was updated successfully, but these errors were encountered: