grafana / docker-otel-lgtm

OpenTelemetry backend in a Docker image
Apache License 2.0
312 stars 55 forks source link

loki log is display without the severity #121

Closed vincenzopalazzo closed 1 week ago

vincenzopalazzo commented 1 month ago

I do not think this is a good place to make this question but IDK where to make one of this.

So I am running the following libraries https://github.com/vincenzopalazzo/cln-opentelemetry/blob/main/opentelemetry-common/Cargo.toml#L7

However with the recent version of the docker-otel-lgtm I see the log in the following way

Image

But the the may version I see the log line displayed with the colors

Image

zeitlinger commented 1 month ago

I don't understand this: "But the the may version I see the log line displayed with the colors"

Can you describe what changed or what you expect to be different?

vincenzopalazzo commented 1 month ago

Sorry if I was not able to make it clear @zeitlinger

If you see the image first image, the log line at the info level is gray, but in the second image the log line at the info level is green.

I am not able to understand what it is changed across the two grafana instance in order to restore the colors

Do you have any idea?

vincenzopalazzo commented 1 month ago

Ah looks like the fields inside the log message are different.

With the docke image I have the detected_log_level

Image

But with with the docker image from may (or so) I get the field like level

Image

zeitlinger commented 1 month ago

we've switched to the native otlp endpoint: https://grafana.com/docs/loki/latest/send-data/otel/native_otlp_vs_loki_exporter/

vincenzopalazzo commented 1 month ago

So if I am understanding correctly there is no way to restore the colors? @zeitlinger

Thanks for your time

zeitlinger commented 1 month ago

https://github.com/grafana/loki/issues is the right place to ask - but I've also asked internally

zeitlinger commented 1 month ago

will be fixed with the next grafana release

https://github.com/grafana/grafana/pull/93574

vincenzopalazzo commented 1 month ago

Amazing, when it will land in this repository could you please close this issue? so I know when upgrade my node :)

Thanks!

zeitlinger commented 1 week ago

fixed with https://github.com/grafana/docker-otel-lgtm/releases/tag/v0.7.8

vincenzopalazzo commented 1 week ago

Thanks @zeitlinger

arukiidou commented 1 week ago