Hacker News new | ask | show | jobs
by buro9 2216 days ago
Recently I've been thinking there must be a better way.

I want rich insights from a session angle, but I mostly want to know performance timings and what my end users experience. How can I improve my web apps to increase engagement, and where are the issues on my website as it's seen from a user's perspective.

My current thought (not yet implemented) is to take several existing things and to glue them together.

1. Boomerang https://github.com/akamai/boomerang is a Real User Monitoring JS include that is open source and comes from the Yahoo and Akamai performance teams

2. Grafana Cloud https://grafana.com/products/cloud/ has Loki and Prometheus for log consumption and metrics respectively and now has a self serve plan of $50 per month (but I think this is reasonable as the data storage is managed for you and you could run many instances of RUM monitoring via this to spread the cost reasonably)

3. Write a simple server to receive the Boomerang requests, log each request received in full detail and structured. At the same time increment Prometheus metrics. Let Loki and Prometheus then put that into Grafana Cloud.

Then it's just a case of using Grafana to configure a dashboard to offer whatever views, alerts, analysis that you want.

The thing I like about this is that no matter what the website the inputs are the same (whatever Boomerang provides), and so the dashboards are inherently shareable so that others can use them.