Repository navigation
docs: list the user gauges exported by OpenTelemetry metrics - #1502
Open
raphael-bynome wants to merge 1 commit into
Open
raphael-bynome wants to merge 1 commit into
raphael-bynome wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.activeandwebui.users.active.today(unitusers). This adds them to the table, with what each one counts: "active" means alast_active_atwithin 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
Notes for reviewers
Checked against
backend/open_webui/utils/telemetry/metrics.pyonmainat0.13.0(gauge registration and the_count_active_users/_count_users_active_todayqueries).🤖 Generated with Claude Code