[PR #886] [CLOSED] Expose total subscribers and topics in the /v1/stats api - 885 #1451

Closed
opened 2026-05-07 01:02:09 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/binwiederhier/ntfy/pull/886
Author: @kevinlutzer
Created: 9/17/2023
Status: Closed

Base: mainHead: kl/885


📝 Commits (1)

  • d0898c8 Expose total subscribers and topics in the /v1/stats api

📊 Changes

3 files changed (+28 additions, -10 deletions)

View changed files

📝 server/server.go (+17 -2)
📝 server/server_test.go (+7 -6)
📝 server/types.go (+4 -2)

📄 Description

Overview

I added the total subscription and topic count to the stats API

Proof of Performance

I build a dev container using make docker-dev. Running it, I can hit the stats API to get the bellow response:
Screenshot 2023-09-17 at 11 08 37 AM

Issue

https://github.com/binwiederhier/ntfy/issues/885


🔄 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/binwiederhier/ntfy/pull/886 **Author:** [@kevinlutzer](https://github.com/kevinlutzer) **Created:** 9/17/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `kl/885` --- ### 📝 Commits (1) - [`d0898c8`](https://github.com/binwiederhier/ntfy/commit/d0898c86500e40f19ce9881b32c6fa77adc3dade) Expose total subscribers and topics in the /v1/stats api ### 📊 Changes **3 files changed** (+28 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `server/server.go` (+17 -2) 📝 `server/server_test.go` (+7 -6) 📝 `server/types.go` (+4 -2) </details> ### 📄 Description # Overview I added the total subscription and topic count to the stats API # Proof of Performance I build a dev container using `make docker-dev`. Running it, I can hit the stats API to get the bellow response: ![Screenshot 2023-09-17 at 11 08 37 AM](https://github.com/binwiederhier/ntfy/assets/26232349/3319696f-2507-4dba-8382-5e5100e519e9) # Issue https://github.com/binwiederhier/ntfy/issues/885 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 01:02:09 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#1451
No description provided.