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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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:
dev← Head:feat/otel-system-metrics📝 Commits (1)
f5631bafeat: 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
opentelemetry-instrumentation-system-metrics(CPU, memory, GC, threads)Added
opentelemetry-instrumentation-system-metrics==0.60b1dependencySystemMetricsInstrumentorin telemetry instrumentorsChanged
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
process.runtime.cpython.memory,process.runtime.cpython.cpu_time,process.runtime.cpython.gc_count,process.runtime.cpython.thread_count,system.cpu.utilization,system.memory.usageetc. via existing OTLP exporterENABLE_OTELsetupContributor 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.