TriliumNext / Notes

Build your personal knowledge base with TriliumNext Notes
https://triliumnext.github.io/Docs/
GNU Affero General Public License v3.0
972 stars 55 forks source link

(Feature request) Support /metrics endpoint #437

Open perfectra1n opened 1 month ago

perfectra1n commented 1 month ago

Describe feature

I think it would be cool to support a /metrics endpoint to gather data about a Trilium instance. We could still put it behind authN, this endpoint is common for tools like Prometheus that scrape information from various services to then display in Grafana. If we think this is a trash idea, I'll put it back in the 🗑.

Additional Information

No response

meichthys commented 1 month ago

Related to https://github.com/TriliumNext/Notes/issues/81

eliandoran commented 1 month ago

@perfectra1n , what kind of information would you be interested in?

perfectra1n commented 1 month ago

(This was inspired by this issue for a Trilium homepage widget)

I believe are the first things that come to mind...

perfectra1n commented 1 month ago

Yeah I think it's slightly related to that issue @meichthys but I think the majority of those requests were for some form of "in app" visibility / metrics, while this would be "outside" of the app in a sense...

perfectra1n commented 1 month ago

As a really silly example of something similar, here's my Nextcloud dashboard image