Started working on a metrics collector utility and a dashboard with relay stats for Nostream.

Reply to this note

Please Login to reply.

Discussion

Amazing! Are these public? Is this something you’ll contribute to Nostream repo? Will it work with multiple relay nodes?

Yup

https://github.com/bleetube/nostream_exporter (work in progress)

To start it is exporting one metric, the total count of events in the events table. I have select queries to add in for these metrics as well:

- top events by kind

- top talker users by pubkey all time

- top talker users by pubkey recently

- count of paid users

I'll implement those and add in more as time permits. I'll also put together a grafana dashboard to chart them out. And if I think of any good metrics to alert on using alertmanager, I'll add those to the repo as well. Might be nice to send myself an alert if a user is spamming the relay, for instance.

#[6]