haydenwoodhead / burner.kiwi

No bullshit temporary mail service written in Go
https://burner.kiwi
MIT License
216 stars 26 forks source link

Prometheus metrics #34

Closed krakazyabra closed 2 years ago

krakazyabra commented 2 years ago

Hi! What was the reason to remove prom metrics? even if kiwi runs outside of k8s, metrics are bro :) may be there is another kind of monitoring inside? I took a look at the code but saw nothing regarding monitoring.

P.S. can kiwi run in cluster-mode?

haydenwoodhead commented 2 years ago

I removed prometheus metrics because I didn’t like the way I had implemented them. The current approach I would prefer would be to log these metrics. Are there any specific metrics you wish burner.kiwi had?

krakazyabra commented 2 years ago

Hi! At first - standard go metrics, processes, gc etc About mail - currently active mail boxes, message size, some per domain statistics (like how many mailboxes were created per each domain, how many were deleted), accepted/rejected mails, rejected by blacklist rule

that's all that came to mind.

haydenwoodhead commented 2 years ago

I agree that these would be useful. I would happily take a pr that adds these metrics. However, it is not something I have the bandwidth to do at this point.