Grafana Faro Environment as Label

Hi,

we want to use Grafana Faro for Real User Monitoring. We have the app.environment variable in the initializer but the logs in loki do not have an environment label.

image

It is part of the “message” or not indexed fields.

Is there an option to define the labels manually? I saw you can define custom labels but is it possible to extract ones from the log?

metrics don’t have that environment label (maybe a bug, I don’t know), but events have. Search app_environment string in your Faro logs.

do you know if we can change it to a label to use it as a filter?

Nope.