kryptokrona / hugin-api

RESTful API and WebSocket server for the Hugin Messenger service.
https://kryptokrona.org
Other
28 stars 8 forks source link

[Feature]: Add new metrics to Prometheus #138

Closed mjovanc closed 2 years ago

mjovanc commented 2 years ago

Description of feature request

Add metric such as posts added to API over time Add metric of how many hashtags added to API Add metric of how many encrypted posts added to API Add metric of how many transactions (queries) to PostgreSQL database and load

Why is this needed

No response

Code of Conduct

mjovanc commented 2 years ago

Would be good to have some statistics under the graph such as:

Total Posts: 180 Posts 24h: 20

And under Hashtag Graph:

Total Hashtags: 20 Hashtags 24h: 10

mjovanc commented 2 years ago

We will provide endpoints, issue created for fixing this first: https://github.com/kryptokrona/hugin-cache/issues/160