[PR #6882] [CLOSED] Create prometheus metric for item counts #11182

Closed
opened 2026-02-07 06:33:54 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/6882
Author: @holahmeds
Created: 11/21/2021
Status: Closed

Base: masterHead: item-count-metric


📝 Commits (2)

  • b220f1e Create metric for item counts
  • d84db4b Move prometheus metrics to it's own class

📊 Changes

3 files changed (+104 additions, -7 deletions)

View changed files

📝 Emby.Server.Implementations/ApplicationHost.cs (+10 -7)
Emby.Server.Implementations/Metrics/PrometheusMetricsCollector.cs (+75 -0)
MediaBrowser.Controller/Metrics/IMetricsCollector.cs (+19 -0)

📄 Description

Changes
Create prometheus metric for number of items in library, by item type:

  • Movie
  • Series
  • Season
  • Episode
  • MusicArtist
  • MusicAlbum
  • MusicVideo
  • Audio
  • Book
  • PhotoAlbum
  • Photo

Issues

#3016


🔄 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/jellyfin/jellyfin/pull/6882 **Author:** [@holahmeds](https://github.com/holahmeds) **Created:** 11/21/2021 **Status:** ❌ Closed **Base:** `master` ← **Head:** `item-count-metric` --- ### 📝 Commits (2) - [`b220f1e`](https://github.com/jellyfin/jellyfin/commit/b220f1e1271094e83d56d5e766d3daa0da8e6230) Create metric for item counts - [`d84db4b`](https://github.com/jellyfin/jellyfin/commit/d84db4b8e4d5c7d92626b60779afb946835cbf1d) Move prometheus metrics to it's own class ### 📊 Changes **3 files changed** (+104 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `Emby.Server.Implementations/ApplicationHost.cs` (+10 -7) ➕ `Emby.Server.Implementations/Metrics/PrometheusMetricsCollector.cs` (+75 -0) ➕ `MediaBrowser.Controller/Metrics/IMetricsCollector.cs` (+19 -0) </details> ### 📄 Description **Changes** Create prometheus metric for number of items in library, by item type: * Movie * Series * Season * Episode * MusicArtist * MusicAlbum * MusicVideo * Audio * Book * PhotoAlbum * Photo **Issues** <!-- Tag any issues that this PR solves here. ex. Fixes # --> #3016 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 06:33:54 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#11182