instedd / verboice

Open source toolkit for voice services; with special focus to the needs of medium- and low-income countries, scalable services, and interacting with vulnerable populations
http://verboice.instedd.org/
GNU General Public License v3.0
43 stars 18 forks source link

Expose Prometheus metrics #922

Open matiasgarciaisaia opened 1 year ago

matiasgarciaisaia commented 1 year ago

We should add a Prometheus-compatible endpoint to Verboice exposing stats about numbers of calls in each state, probably per channel. This would allow us to better monitor an instance's state and detect anomalies (peaks of calls queued, calls not getting done as much as they should, etc).

It would be really useful in the context of using Verboice in Surveda surveys, but it's a nice feature on its own anyway.

See instedd/surveda#1472 and instedd/surveda#1498 for reference.