nimarion / promcord

📊 Analyze your entire discord guild in grafana using prometheus. Message, User, Game and Voice statistics...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add basic database.

saltydk opened this issue · comments

commented

Whenever the docker container is restarted all the message statistics reset, would be nice if the latest "stats" where written to a file that is loaded again when starting up.

Whenever the docker container is restarted all the message statistics reset, would be nice if the latest "stats" where written to a file that is loaded again when starting up.

This can be configured with prometheus I think
And adding a database to fetch hundred of data will significantly affect the performances

commented

I don't think you're following what I meant. The totals need to be stored otherwise the suggested grafana template resets. This has nothing to do with prometheus not storing it but totals starting over.

Closing this as an extra database for storing message count is out of scope for this project. The counter metric used should be used with the rate function.
https://www.robustperception.io/how-does-a-prometheus-counter-work/