Peers Monitoring

Hi all!
I´m new here and I´m discovering little by little libp2p. I want to monitory my peers and get many infos as possible about them like latency, uptime, ip etc… saving than all in a database. Has anyone any Idea how to implement it?
Thank you!