Grafana and Loki
Orbis Studio can emit structured JSON logs for ingestion by Grafana Loki.
This page demonstrates how to connect Orbis Studio to the reference Grafana stack shipped with the Orbis Studio repository. For more information, see the README.
To consume structured Orbis Studio logs with other ingestion providers, see Logs.
Prerequisites
- Clone the Orbis Studio repository to access the reference Grafana stack. If you are using your own Grafana and Loki instances, cloning the repository is not required.
- Docker and Docker Compose
Configure environment variables
-
In the root folder of your Orbis Studio application, edit your existing
.envfile or create a new one. -
Add the following environment variables. Replace the placeholders with the values for your deployment:
_10ORBISAGENTS_LOG_ENV=container_10ORBISAGENTS_LOG_LEVEL=INFO_10ORBISAGENTS_LOG_FILE=/var/log/langflow/langflow.log_10LANGFLOW_SERVICE_NAME=langflow_10LANGFLOW_VERSION=1.10.0_10LANGFLOW_ENVIRONMENT=productionSetting
ORBISAGENTS_LOG_ENV=containerswitches structlog's terminal processor toJSONRenderer, so every line written to stdout is a JSON object containing the event message, level, timestamp, logger name, exception structure, and service metadata. For more information, see Logs.The shipped Promtail configuration scrapes
*.logfiles from a directory rather than stdout.ORBISAGENTS_LOG_FILEmust point at a file inside the directory that Promtail watches. SetORBISAGENTS_LOG_DIRto that same directory so Orbis Studio creates the file in the right place. -
Start the reference Loki + Promtail + Grafana stack from the repository:
_10cd deploy/observability/grafana-loki_10export ORBISAGENTS_LOG_DIR=/var/log/langflow_10docker compose up -d -
Launch Orbis Studio with your
.envfile:_10uv run langflow run --env-file .env -
Run a flow in Orbis Studio to generate log traffic.
-
Open Grafana at
http://localhost:3000and navigate to Dashboards > Orbis Studio Logs to view structured log output, including panels for structured tracebacks, PII redaction, stdlib library output, and service/environment/version coverage.