Open WebUI monitoring with OpenTelemetry and Grafana

Open WebUI monitoring with OpenTelemetry and Grafana sends traces, metrics and logs through an OpenTelemetry Collector into Tempo, Prometheus, Loki and Grafana. This page covers the setup order, identity and data mapping, security and the failures teams hit most.

On this page

How Open WebUI monitoring with OpenTelemetry and Grafana works

The platform team running Open WebUI for its users usually cannot answer basic questions: how long replies take, where the time goes, whether database or Redis calls are slowing requests, and which requests are failing. Closing that gap means putting telemetry in the path between Open WebUI and the people who watch it. OpenTelemetry is the vendor-agnostic framework for generating, exporting and collecting that telemetry as traces, metrics and logs. It does not store or display anything itself, so the design has to name a separate backend for each signal.

The OpenTelemetry Collector is the middle layer in that design. It receives telemetry over OTLP, processes it and exports it onward, and it can run as an agent beside Open WebUI or as a gateway that accepts data from several sources. Grafana is the display layer, while Tempo, Loki and Prometheus are the storage backends for traces, logs and metrics. Each of those is a separate service with its own sizing, retention and access model, and each adds operational work for the team that runs it. Decide early whether the Collector and backends will be run in the same infrastructure as Open WebUI or in a separate observability environment, since that choice affects network paths, credentials and who can read the data.

The exact telemetry Open WebUI emits must be confirmed in its documentation for the release you deploy, including which spans, metric names and log fields are produced, whether database and Redis operations are instrumented, and how the exporter is switched on and configured. Check the Open WebUI features documentation and the release notes for your version before writing dashboards or alert rules, because a metric that appears in one release may be renamed or absent in another. Confirm the same things with your own test traffic in a staging environment.

What you need before exporting Open WebUI telemetry

Telemetry export depends on several components being in place before the first trace leaves Open WebUI. Each card below is a decision or check that the Open WebUI release, the Collector, Grafana and the stores behind them must satisfy together. Confirm these items in your own environment first, because a gap in any one of them will show up as missing or partial data in Grafana.

Open WebUI release and install method

Pin the exact Open WebUI release you will instrument and record how it was installed: Docker, Docker Compose, Kubernetes with Helm, or pip with open-webui serve. The latest published release at the time of writing is v0.12.3, so check whether your environment is on it or on an earlier line. Environment variables and sidecar configuration differ by install method, so the export settings you write must match the method your team actually runs. Record the version so upgrades can be tested against the same telemetry baseline.

Open WebUI releases

Collector release and contrib distribution

Choose a Collector release and the contrib distribution, which includes the receivers and exporters a Grafana stack typically needs. Releases ship signed artifacts, SHA256 checksums and SBOM files, so plan to verify them against your supply chain policy before deployment. Confirm which components in your pipeline are stable, since core components carry mixed stability levels documented in each README. Pin the version and plan upgrades as a deliberate change.

Collector release to evaluate
v0.163.0
Collector releases

Grafana version and patch level

Select a Grafana release line and a patch level that your team can keep current. Grafana releases minor versions every other month and patch releases at least monthly, and each minor release is supported for a limited period, so an unpatched install will age out quickly. Confirm the Grafana backend for Tempo, Loki and Prometheus data sources matches your retention and query needs. Plan the upgrade window before the first dashboard goes live.

Minor release support
9 months
Grafana upgrade guidance

Backend stores for traces, logs and metrics

Decide where each signal lands: Tempo for traces, Loki for logs and Prometheus for metrics, each with its own storage sizing and retention. Object storage or local disk choices change cost and recovery time, so confirm them before ingest begins. Grafana's own configuration database must be PostgreSQL or MySQL for production, not SQLite. Ask your storage team to confirm capacity, backup and restore procedures for each store.

Grafana installation docs

Network paths and firewall rules

Map the network path from Open WebUI to the Collector and from the Collector to each backend, including ports, DNS names and any proxy in between. Telemetry traffic that leaves a segment is a data flow your security team should review, so document which hosts can send traces, logs and metrics. Confirm that egress rules allow the Collector to reach Tempo, Loki and Prometheus endpoints, and that network policies in Kubernetes permit the same flows.

Certificates and authentication for OTLP endpoints

Plan TLS certificates for each OTLP and backend endpoint, including who issues them, how they rotate and which certificate authority the Collector trusts. Decide whether receivers authenticate incoming connections, for example with OIDC through an authenticator extension, and whether exporters attach credentials such as an oauth2client token. Confirm that certificate expiry is monitored, since a lapsed certificate stops telemetry without an obvious error inside Open WebUI.

PostgreSQL and Redis for multi-replica deployments

A multi-replica Open WebUI deployment already requires PostgreSQL instead of SQLite and Redis as a shared state store, plus shared file storage. Telemetry depends on these same services, so confirm their health, connection limits and dashboards before adding spans for database and Redis queries. Verify that the database and Redis instances you will watch are the ones Open WebUI actually uses, because a single-replica test setup can hide problems that appear at scale.

Scaling Open WebUI docs

How traces, metrics and logs flow from Open WebUI to Grafana

The flow starts with users reaching one or more Open WebUI replicas in the application network. Each replica exports OTLP telemetry to an OpenTelemetry Collector, which runs as an agent beside the services or as a gateway for many sources. The Collector's trace, metric and log pipelines hand data to Tempo, Prometheus and Loki, and Grafana reads from all three. Check the crossing into the observability network, where authentication and TLS belong, and confirm that PostgreSQL and Redis telemetry comes from instrumentation you have actually configured.

Telemetry leaves the application network through the Collector into three backends.

Configuring the Collector and Open WebUI exporter in order

This sequence connects Open WebUI to a Collector that routes traces, metrics and logs to Tempo, Prometheus and Loki, with Grafana reading from all three. Each step ends with a check, so a fault is found at the point where it was introduced.

  1. Confirm the OTLP settings for your release

    Start by reading the monitoring documentation for the exact Open WebUI version you run, because telemetry settings can change between releases. List which signals it emits (traces, metrics or logs), the export protocol and endpoint options, and whether the metrics endpoint requires authentication. Record the version in your change log. Done when you have a written list of supported signals, the exact configuration keys, and a note on any signal that the release does not export so you can plan around it.

  2. Deploy and verify the Collector distribution

    Choose a Collector release, pin it to a specific version, and verify the artifact before deployment. Collector releases ship the contrib distribution with signed artifacts, SHA256 checksums and SBOM files, so compare the checksum and signature against the release page and confirm the components you need are in the build. Decide whether the Collector runs as an agent beside Open WebUI or as a gateway for several sources. Done when the process starts cleanly and its startup log lists the receivers and exporters you configured with no errors.

  3. Define receivers, processors and exporters per signal

    Write the Collector configuration with an OTLP receiver, a memory limiter and a batch processor, then create one pipeline per signal: traces to Tempo, metrics to Prometheus, and logs to Loki. Check each component's README for its stability level, since core components have mixed stability. Keep credentials in environment variables or a secrets store. Validate the file with the Collector's configuration check before starting it. Done when the configuration validates and a test span from a sample OTLP client appears in the Collector's debug output.

  4. Connect the Collector to Tempo, Prometheus and Loki

    Deploy or confirm the three backends, then set each exporter's endpoint and any authentication it needs. The authenticator extensions can add credentials to outgoing requests, for example through the oauth2client extension. Confirm that each backend is reachable from the Collector host and that any tenant or organization header your backends require is set. Confirm the Loki ingestion path for your Loki version in its documentation. Done when the Collector reports successful exports and its logs show no refused writes or dropped data.

  5. Point Open WebUI at the Collector endpoint

    Set the OTLP endpoint and protocol in Open WebUI using the keys you confirmed in the first step, so the application sends telemetry only to the Collector. Give each replica a distinct service instance identifier if you run more than one. Restart Open WebUI, then send a chat message from a test account. Done when a trace for that chat request appears in Tempo, with the service name you set in the configuration.

  6. Provision Grafana data sources as code

    Define the Tempo, Prometheus and Loki data sources in a provisioning file that Grafana loads at startup, so every Grafana instance uses the same sources. Point each data source at its backend. Grafana also documents Terraform and Git Sync for as-code workflows. If this Grafana serves production or high availability, its configuration database must be MySQL or PostgreSQL, because Grafana's installation documentation states that SQLite does not scale for production. Done when Grafana restarts and each data source passes its test in the settings page.

  7. Verify one request across traces, metrics and logs

    Run a known workload: a normal chat, a request that fails, and a few concurrent sessions. In Grafana, open the Tempo trace for the chat, check that the expected spans are present, then confirm the response-time series in Prometheus changed during the test. Search Loki for the trace identifier to find the matching log lines. Done when one request can be followed through all three signals using the same identifiers, which confirms the pipeline is complete.

Which Open WebUI signals land in Tempo, Loki and Prometheus

This table maps each Open WebUI signal class to its backend, Grafana data source, the labels or resource attributes to keep, and the fields to redact before storage. Read each row as a decision: keep the signal, shape it, or drop the sensitive field at the Collector before it reaches storage. The main takeaway is that prompt text, user identifiers and tokens should never reach Tempo, Loki or Prometheus in readable form.

Signal classBackend and Grafana data sourceKeep as labels or attributesRedact or exclude before storage
Request traces (HTTP spans)Tempo, Tempo data sourceRoute template, HTTP method, status code, service name, deployment environmentFull request URL query strings, request and response bodies, authorization headers, cookies
Database spans (PostgreSQL or SQLite)Tempo, Tempo data sourceOperation type, database system, table name, span duration, error statusRaw SQL statement text with bound values, user email or ID in query parameters
Redis spansTempo, Tempo data sourceRedis command name, span duration, error statusKeys that embed user IDs or session tokens, stored values
Latency and error metricsPrometheus, Prometheus data sourceRoute template, method, status class, service name, instance, replicaUser ID, chat ID, model prompt text, IP address and any per-user label that creates high cardinality
Application logsLoki, Loki data sourceService name, environment, log level, container or pod name, replicaPrompt and reply text, uploaded file content, tokens, API keys, email addresses, IP addresses unless policy allows them
Trace-to-log correlation fieldsLoki and Tempo linked together in GrafanaTrace ID and span ID as structured fields, not as stream labelsAny field that repeats user identity across logs and traces without a hashing rule
Resource attributesApplied to all three backends by the CollectorService name, service version, deployment environment, cluster or namespaceHost names or operator contact details that identify a person

Which response time and query signals to watch first

Start with a small set of signals: end-to-end response time for chat requests, the duration of database calls to PostgreSQL, and the latency of Redis round trips. Each signal needs one dashboard panel and, at most, one alert. Traces in Tempo show where a slow reply spent its time, while metrics in Prometheus show whether that slowness is sustained across all users or confined to one model, one replica or one hour of the day. Keep the two linked by shared resource attributes such as service name and instance, so an engineer can move from a Prometheus spike to the matching Tempo traces without guessing. Confirm which span and metric names your Open WebUI build emits before writing any dashboard query, because instrumentation names differ by version and by how the telemetry is configured. Check the exact release you run against the Open WebUI releases on GitHub page.

Thresholds must come from your own baseline. Run a load test that matches expected concurrency, record p50, p95 and p99 response times for chat requests, database query durations and Redis latency, then set alert levels above that measured normal range. Values copied from a blog post or a vendor example describe someone else's model size, hardware and user mix, so treat them as placeholders at most. Re-measure after each model change, Open WebUI upgrade or database resize, because the baseline moves with them.

Keep label cardinality low. Prometheus creates a separate time series for every unique combination of label values, so labels such as user ID, chat ID, session token or raw request path can grow the series count until the server slows down or runs out of memory. Put per-user detail in traces or logs, where it can be searched without creating series, and use bounded labels such as route template, model family, status class and replica in metrics. Review your exporter and Collector configuration for attributes that are promoted to metric labels, and confirm with your platform team how many active series your Prometheus deployment can hold before you add dashboards.

Securing the telemetry path and Grafana

Telemetry from Open WebUI carries request metadata, timings and query details that should not be open to anyone on the network. The cards below cover the controls on the Collector, the connections between components and the Grafana settings that protect the dashboards and their login paths.

Authenticate Collector receivers

Every OTLP receiver that accepts data from Open WebUI should require credentials. Collector authenticator extensions can check incoming connections, for example with OIDC, so only the Open WebUI host or an approved agent can send telemetry. Test with an unauthenticated request before go-live and confirm which receiver endpoints are exposed on which network interfaces.

Collector configuration

Credentials on outgoing exporters

The exporters that forward data to Tempo, Loki or Prometheus may also need credentials. The oauth2client extension can add tokens to outgoing requests, so backends do not accept anonymous writes. Store client secrets in your secrets manager rather than in the Collector file, and confirm which token lifetimes and rotation steps your identity provider supports.

TLS between every component

Open WebUI to Collector, Collector to backends and Grafana to its data sources all cross the network. Use TLS on each hop and check certificate names and renewal before production. Where traffic stays on a single trusted host, confirm that you still want encryption and document the decision, since a later move to a separate node would otherwise send telemetry in the clear.

Collector configuration best practices

The OpenTelemetry security guidance for Collector configuration covers the settings to review before deployment, such as which endpoints bind to which addresses and which components are enabled. Keep the configuration in version control, remove unused receivers and check each component's stability level in its README before relying on it in production.

Config best practices

Grafana cookies and content policy

The Grafana security hardening guidance recommends secure and SameSite cookies, a Content Security Policy and Trusted Types. Enable them in the Grafana configuration and test dashboards, panels and plugins afterward, since a strict policy can break custom panels. Record the chosen values so the review can confirm the setting later.

Security hardening docs

Hide version and protect metrics

Hiding the Grafana version from unauthenticated users reduces what outside scanners learn about the server. The guidance also asks you to require authentication on the metrics endpoint and to verify domains against DNS rebinding. Confirm these settings from a client outside the trusted network, and make sure your Prometheus scraper still has a working credential.

SSO choices and edition limits

Grafana authentication supports LDAP, generic OAuth, Entra ID, Okta, GitHub, GitLab, Google OAuth, auth proxy and JWT in all editions. SAML, team sync, active sync and SCIM provisioning are limited to Grafana Enterprise and Grafana Cloud. Decide which identity features you need before choosing an edition, and confirm the license terms with Grafana.

Authentication docs

Why telemetry goes missing or arrives incomplete

This table lists the failures that most often leave Open WebUI traces, metrics or logs missing or partial in Grafana, Tempo, Loki and Prometheus. Each row gives the likely cause, the check to run first and the fix, so you can work through the pipeline from the application to the query layer. Start with the endpoint and pipeline checks, since they account for most empty dashboards.

FailureLikely causeCheck to runFix
Exporter endpoint or protocol mismatchOpen WebUI points OTLP at a gRPC port while the Collector listens for HTTP, or the endpoint path is wrongConfirm the OTLP endpoint and protocol variables in the Open WebUI container match the Collector receiver's port and transportSet one protocol on both ends and point the exporter at the matching receiver address
Collector receiver not listening on the expected interfaceThe receiver binds to localhost inside its container or pod, so traffic from Open WebUI never reaches itCheck the receiver's endpoint setting and test connectivity from the Open WebUI host or pod to the Collector portBind the receiver to 0.0.0.0 or the pod interface and restrict access with network policy
Pipeline missing an exporterA traces, metrics or logs pipeline is defined without an exporter, or the receiver is declared but not wired into a pipelineReview the service pipelines section of the Collector configuration and confirm each signal has a receiver and an exporterAdd the missing exporter to the pipeline and validate the file before restarting
Dropped data under loadBatch or memory limits are too low, or the backend is slow, so the Collector discards telemetryLook at the Collector's own internal metrics and logs for refused or dropped items during peak useTune the batch and memory limiter processors, add capacity, or add a gateway tier for heavier traffic
Label cardinality breaking PrometheusPer-user, per-request or per-chat identifiers are used as metric labels, creating very large series countsQuery the series count per metric and list the label names with the most unique valuesRemove high-cardinality attributes from metrics, keep them on traces or logs, and drop unused labels in the Collector
Clock skew in tracesHost clocks on Open WebUI, Redis, PostgreSQL or the Collector drift apart, so spans appear out of order or with negative durationsCompare system time across hosts and check whether spans from different services line up on the same timelineEnable time synchronization on every host and fix drift before reading latency results
Grafana data sources pointing at the wrong tenant or storeA data source uses the wrong Tempo, Loki or Prometheus URL, or a Loki tenant header that does not match the one used for writesOpen each data source's test result and compare its URL and tenant setting with the Collector's exporter configurationCorrect the URL and tenant values, ideally through provisioning files so the setting is reviewed and versioned

Single instance and multi-replica monitoring compared

A single Open WebUI instance is the simplest telemetry shape. One OpenTelemetry Collector runs as an agent beside the Open WebUI process or container, receives OTLP data and exports traces, metrics and logs to the backends you chose. The Collector can run as an agent next to services, which is the natural fit at this scale. Grafana runs as one server, and its database choice is the decision that matters most, because the Grafana installation docs state that SQLite does not scale for production.

  • One Collector agent: Point Open WebUI's OTLP exporter at the local Collector so application configuration stays simple and the Collector handles batching, retries and export to Tempo, Loki and Prometheus.
  • Single Grafana with SQLite for evaluation only: SQLite is the default configuration store. It can serve a proof of concept, but production use calls for MySQL 8.0 or later or PostgreSQL 12 or later.
  • Local storage sizing: Traces, logs and metrics accumulate on the backends. Confirm retention and disk sizing with the storage vendor for each backend before go-live.
  • Authentication to Grafana: Use the authentication options your edition supports. SAML and SCIM are available only in Grafana Enterprise and Grafana Cloud, so confirm the edition before designing the identity integration.
  • Single failure domain: A single Collector and Grafana node means a restart or host failure stops monitoring. Accept that risk in writing or plan a backup path.

Before relying on this setup, check that a Collector outage does not block Open WebUI requests and that the Grafana database backup restores into a test instance.

What buyers ask about OpenTelemetry monitoring for Open WebUI

What drives the cost of monitoring Open WebUI with OpenTelemetry and Grafana?

The cost depends on how much of the stack you instrument, how many environments you cover and whether you run the observability backends yourself or buy them as a service. The main cost components are the engineering work to enable OTLP export in Open WebUI, deploy an OpenTelemetry Collector, and stand up Grafana, Tempo, Loki and Prometheus, plus the ongoing infrastructure to store and query telemetry. Cost rises with the number of dashboards and alert rules, the retention period you require, and the size of the telemetry volume. Ask any partner for a quote that separates one-time build work from recurring support, storage and licensing, and that names who pays for each component.

How long does an OpenTelemetry and Grafana monitoring setup usually take?

Duration follows scope, not a fixed template. The main drivers are how many Open WebUI instances and supporting services (PostgreSQL, Redis, the vector database) need telemetry, whether a single replica or multiple replicas run behind a load balancer, how many dashboards and alerts the operations team needs, and whether Grafana must run in high availability. Multi-replica setups also need the shared state services described in Open WebUI's scaling guide in place before monitoring can show a true picture. No duration is supplied for this work, so ask for a written timeline tied to a named scope and to a list of environments in the quote.

What does our team need to supply before monitoring work starts?

Plan to provide access and environment decisions before any build begins. You will need access to the Open WebUI hosts or containers, the Kubernetes or Docker environment where the Collector will run, a place to run Grafana, Tempo, Loki and Prometheus, and credentials for databases and Redis used for query metrics. You also need to decide what telemetry may leave the application. Traces and logs can include user-driven content, so your security and privacy owners should classify which attributes, log fields and retention periods are acceptable before the Collector pipeline is designed. Confirm these items, and who approves them, in the written scope.

Can our own team build OpenTelemetry monitoring for Open WebUI in-house?

Yes, many platform teams can build it in-house, provided they have people who understand OpenTelemetry Collector pipelines, Grafana provisioning and the database and cache behavior of Open WebUI. OpenTelemetry is vendor-neutral and Collector releases include signed artifacts, checksums and SBOM files, which helps with supply-chain review. The main trade-offs are the time to learn the component stability levels documented for each Collector component, the ongoing effort to keep versions current, and the work of keeping dashboards and alerts accurate after upgrades. Compare your team's capacity with a partner quote before choosing.

Which licensing terms apply to Grafana, Loki and Tempo?

Grafana, Loki and Tempo have been licensed under the GNU Affero General Public License version 3 (AGPLv3) since April 20, 2021, when Grafana Labs relicensed them from Apache License 2.0. Plugins, SDKs and agent software kept other licenses. Grafana Enterprise is offered as a non-AGPL commercial option. The OpenTelemetry Collector repository is licensed under Apache-2.0. Your legal team should confirm how AGPLv3 applies to your use, especially if you modify the software or offer it to outside users, and whether any plugins you add carry different terms. Check the Grafana Labs licensing page before you decide.

How do Grafana Enterprise and Grafana Cloud pricing differ?

Grafana Cloud is a managed service with a free tier, a Pro tier that starts with a 19 US dollar monthly platform fee plus usage, and an Enterprise tier with a minimum commitment of 25,000 US dollars per year, according to the Grafana pricing page. Grafana Enterprise is a self-managed commercial edition that you run in your own infrastructure. The authentication docs say SAML, team sync, active sync and SCIM provisioning are available only in Grafana Enterprise and Grafana Cloud, so identity needs may decide the edition. Grafana pricing changes over time, so confirm current figures with Grafana before comparing options in your quote.

What should a security reviewer check in an OpenTelemetry pipeline for Open WebUI?

A security reviewer should confirm how telemetry is authenticated, where it is stored and who can read it. The Collector can authenticate incoming connections on receivers, for example with OIDC, and can add credentials to outgoing exporter requests through extensions such as oauth2client. Grafana's security hardening guidance recommends secure and SameSite cookies, a Content Security Policy, hiding the version from unauthenticated users and requiring authentication for the metrics endpoint. Ask the implementation team to show how each of these controls is configured and tested, and to document the retention period and data classification for every telemetry type.

How DeployOpen scopes, builds and supports this monitoring stack

DeployOpen starts with a written scope that names the Open WebUI version, the telemetry signals and the Grafana, Tempo, Loki and Prometheus components to be connected. The work runs inside your own infrastructure, so the telemetry pipeline, dashboards and retention stay under your control from the first day.

How we scope

  • Engagements are fixed-scope, with the telemetry signals, backends and dashboards agreed in writing before work starts.
  • We confirm your Open WebUI deployment shape, including whether Redis and PostgreSQL are in use, since these add services to instrument.
  • The scope names who owns the Collector, storage retention and access to traces that may contain user prompts.

How we build

  • We deploy OpenTelemetry Collector pipelines in your environment and configure OTLP export from Open WebUI to them.
  • Traces, metrics and logs are routed to Tempo, Prometheus and Loki, with Grafana dashboards for response times and database and Redis queries.
  • Each pipeline is tested against sample traffic, and sensitive fields are reviewed before any data reaches a backend.

How we hand over

  • You receive the Collector configuration, Grafana provisioning files and dashboard definitions in version-controlled form.
  • Documentation covers each telemetry signal, its labels, retention settings and the alerts defined on it.
  • Your operators are walked through the runbook for pipeline failures, missing data and dashboard changes.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Retainers can cover Open WebUI, Collector and Grafana version upgrades, tested against the monitoring configuration.
  • Any quote follows from the written scope, so you can compare it directly with the cost of running this in-house.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.