Skip to content

docs: list the user gauges exported by OpenTelemetry metrics - #1502

Open
raphael-bynome wants to merge 1 commit into
open-webui:mainfrom
raphael-bynome:docs-otel-user-gauges
Open

raphael-bynome wants to merge 1 commit into
open-webui:mainfrom
raphael-bynome:docs-otel-user-gauges

Conversation

@raphael-bynome

@raphael-bynome raphael-bynome commented Nov 8, 2026 •

Copy link
Copy Markdown

Summary

The metrics table in the OpenTelemetry page only lists the two HTTP instruments. backend/open_webui/utils/telemetry/metrics.py (v0.13.0) also registers three observable gauges: webui.users.total, webui.users.active and webui.users.active.today (unit users). This adds them to the table, with what each one counts: "active" means a last_active_at within the last 180 s, and "today" starts at midnight UTC (now - now % 86400), which matters when building dashboards in another timezone.

Related issue or discussion

None.

Checklist

  • I have reviewed the relevant documentation and matched the existing style.
  • This PR meets Open WebUI's contribution standards: it is accurate, relevant to users, narrowly scoped, maintainable, and not promotional content, advertising, lead generation, SEO placement, or a request to list a product, service, provider, integration, gateway, tool, or company primarily for visibility.
  • I understand that PRs that do not meet these standards may be closed without review and will not be merged. Repeated, low-quality, off-topic, promotional, or intentionally misleading submissions may result in the contributor being blocked from future participation in Open WebUI repositories.

Notes for reviewers

Checked against backend/open_webui/utils/telemetry/metrics.py on main at 0.13.0 (gauge registration and the _count_active_users / _count_users_active_today queries).

🤖 Generated with Claude Code

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant