[PR #22265] [MERGED] feat: add OpenTelemetry system metrics instrumentation #49624

Closed
opened 2026-04-30 01:56:06 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/22265
Author: @ashm-dev
Created: 3/5/2026
Status: Merged
Merged: 3/6/2026
Merged by: @tjbck

Base: devHead: feat/otel-system-metrics


📝 Commits (1)

  • f5631ba feat: add otel system metrics instrumentation

📊 Changes

2 files changed (+3 additions, -0 deletions)

View changed files

📝 backend/open_webui/utils/telemetry/instrumentors.py (+2 -0)
📝 backend/requirements.txt (+1 -0)

📄 Description

Description

  • Add Python runtime and system metrics via opentelemetry-instrumentation-system-metrics (CPU, memory, GC, threads)

Added

  • opentelemetry-instrumentation-system-metrics==0.60b1 dependency
  • SystemMetricsInstrumentor in telemetry instrumentors

Changed

  • N/A

Deprecated

  • N/A

Removed

  • N/A

Fixed

  • N/A

Security

  • N/A

Breaking Changes

  • N/A

Additional Information

  • Exposes process.runtime.cpython.memory, process.runtime.cpython.cpu_time, process.runtime.cpython.gc_count, process.runtime.cpython.thread_count, system.cpu.utilization, system.memory.usage etc. via existing OTLP exporter
  • No configuration changes needed — works with existing ENABLE_OTEL setup

Contributor License Agreement

By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/22265 **Author:** [@ashm-dev](https://github.com/ashm-dev) **Created:** 3/5/2026 **Status:** ✅ Merged **Merged:** 3/6/2026 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `feat/otel-system-metrics` --- ### 📝 Commits (1) - [`f5631ba`](https://github.com/open-webui/open-webui/commit/f5631babdbad71f7a7fc69bb558b51d5b543d880) feat: add otel system metrics instrumentation ### 📊 Changes **2 files changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/utils/telemetry/instrumentors.py` (+2 -0) 📝 `backend/requirements.txt` (+1 -0) </details> ### 📄 Description ### Description - Add Python runtime and system metrics via `opentelemetry-instrumentation-system-metrics` (CPU, memory, GC, threads) ### Added - `opentelemetry-instrumentation-system-metrics==0.60b1` dependency - `SystemMetricsInstrumentor` in telemetry instrumentors ### Changed - N/A ### Deprecated - N/A ### Removed - N/A ### Fixed - N/A ### Security - N/A ### Breaking Changes - N/A --- ### Additional Information - Exposes `process.runtime.cpython.memory`, `process.runtime.cpython.cpu_time`, `process.runtime.cpython.gc_count`, `process.runtime.cpython.thread_count`, `system.cpu.utilization`, `system.memory.usage` etc. via existing OTLP exporter - No configuration changes needed — works with existing `ENABLE_OTEL` setup ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-30 01:56:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#49624