I did this long ago and stopped before making a release. I have not put any work into this recently, so this is just releasing the old not-quite-finished code. Loki and Event stuff should work. Please let me know how it works for you. There are no dashboards for that data at this time, sorry.
Example config file for this version: https://github.com/unifi-poller/unifi-poller/blob/dn2_events/examples/up.conf.example
Docker: docker pull golift/unifi-poller:2.0.2-beta1