Prometheus is predominantly used for monitoring backend services. In this talk I present a technique for monitoring client-side rich client web apps with Prometheus. Presented at KubeCon Berlin 2017.
16. • “Counters” are actually more like gauges, with
partial aggregation on the client (I’ll explain later)
• Client pushes to server every 15s
• Opensource: https://github.com/weaveworks/promjs
• All credit to Jordan Pellizzari @ Weaveworks
18. The Pushgateway never forgets series pushed to it
and will expose them to Prometheus forever…
The latter point is especially relevant when multiple
instances of a job differentiate their metrics in the
Pushgateway via an instance label or similar.
https://prometheus.io/docs/practices/pushing/
20. Bunch of similar projects
• Webdriver Exporter by Matt Bostock from Cloudflare
• Looks awesome, but we didn’t see this when we started our project…
• https://github.com/mattbostock/webdriver_exporter
• Prometheus User Metrics by Riley Eynon-Lynch from Peardesk
• New project, similar aims
• https://github.com/peardeck/prometheus-user-metrics
• Torch by Outbrain
• https://github.com/outbrain/torch
• Prometheus at JustWatch by Dominik Schulz from JustWatch
• Describes the same problem, couldn’t find any code through
• https://speakerdeck.com/dominikschulz/prometheus-at-justwatch