Tracking client-side metrics with Prometheus?

449 views
Skip to first unread message

Tom Wilkie

unread,
Dec 15, 2016, 7:23:54 AM12/15/16
to promethe...@googlegroups.com, Jordan Pellizzari, David Kaltschmidt
Hello

I'd like to track metrics that originate from within the browser with Prometheus.  Is anyone doing this, and if so willing to share how?

I'd like to track things like:
- Errors during page load, anything that propagates to window.onerror
- Client-side histogram of HTTP request latency

If nothing to do this exists, I'd envisage having something like the push-gateway running in our backend for prometheus to scrape, and adding plumbing for client-side JS to push metrics to it.  One problem with this is the push-gateway explicitly not doing aggregation, and I don't want to run a push gateway per user!

Any thoughts?

Thanks

Tom

Julius Volz

unread,
Dec 15, 2016, 1:40:53 PM12/15/16
to Tom Wilkie, Prometheus Users, Jordan Pellizzari, David Kaltschmidt
I have not taken a closer look at this yet, but https://github.com/outbrain/torch tries to solve the aggregation part.
 
Any thoughts?

Thanks

Tom

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAGoUHOMT-bP_PEueeNDs9Y2R7dmfkKiqAS-Zn0a05DS2n1wSeQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Tom Wilkie

unread,
Dec 15, 2016, 1:52:23 PM12/15/16
to Julius Volz, Prometheus Users, Jordan Pellizzari, David Kaltschmidt
Sweet, thanks Julius.  Will take a look.

Tom
Reply all
Reply to author
Forward
0 new messages