Monitoring Userflows using Prometheus and Grafana
Grainite makes it easy for developers to track metrics using Prometheus by providing access to counters and gauges in the Action Handlers themselves. Userflows utilizes these APIs to track various metrics for users as well as flows using Prometheus and display them on a Grafana dashboard.
Prometheus Setup
Follow the guide here to install Prometheus.
The app directory contains a prometheus.yml
file under monitoring/
, which should be used for your Prometheus instance.
If you are not running Grainite locally, be sure to change the target in prometheus.yml
to point to the correct host.
Grafana Setup
Follow the guide here to install Grafana.
Add the Prometheus data source to Grafana. Be sure to change the URL to point to your Prometheus installation.
Finally, import the userflows dashboard, found at monitoring/UserFlowsDashboard.json
into Grafana to view the metrics.
Last updated