Comments (5)
My apologies for not responding earlier, but I do not thing that this info should be exposed in a public endpoint due to security concerts. It leaks info. I realize that the number of messages is already questionable, but I need that to display the nice counter on the website.
from ntfy.
Thanks for your response!
Ahh okay no worries! Ya I thought that if you were comfortable with the total message quantity and message rate metrics being exposed via API that there wouldn't be an issue with showing the total number of topics, subscriptions etc.
Is there another way it would be possible to expose these metrics? Maybe behind an auth'd API?
from ntfy.
I could see the stats API returning more stats when queried by an admin user, which should be relatively easy to achieve. Basically return the same stuff that the metrics endpoint would.
from ntfy.
Are you referring to this file as the "metrics endpoint" -> https://github.com/binwiederhier/ntfy/blob/main/server/server_metrics.go
from ntfy.
Yeah, the prometheus endpoint is how you'd usually get metrics. It's pretty awesome.
from ntfy.
Related Issues (20)
- Windows Edge ( arm64 ) "Grant Now" button does nothing HOT 2
- E-mail publishing, attachment limited to 4ko file size
- Add Github wiki HOT 3
- ntfy link with optional display name parameter HOT 2
- Documentation Enhancement: Add docker compose info from following issue
- [HOW] how do i get notifications when a message received when the app is terminated (flutter android) HOT 7
- Any possibility of reading a topic via ntfy cli from the past? HOT 4
- Date/time is wrong (UTC instead of local time) HOT 5
- Adding a configuration option to force sending a EVENT_MESSAGE
- Add support for SMTP AUTH_LOGIN HOT 2
- Separate notification category for service info HOT 4
- Add explicit client.yml default location for macOS install
- Instabilities with Megalodon HOT 4
- Configuring Ntfy with Nginx as a Reverse Proxy: Seeking Assistance HOT 6
- Clearing a topic's messages by using android intent?
- Android client subscribe/unsubscribe through CLI/API tools
- iOS issues when showing notifications content HOT 9
- Using PHP example from doc for publishing JSON notification sends JSON object and is not interpreted by the server HOT 4
- Add an option to remove a custom notification settings for a channel without accessing the channel on the server HOT 3
- HTML based Mail rejected HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ntfy.