php-gaming-website icon indicating copy to clipboard operation
php-gaming-website copied to clipboard

Collect and visualize application metrics

Open marein opened this issue 3 years ago • 0 comments

To better understand the behavior of the application, data points should be collected and visualized. Besides node statistics, statistics of the individual applications such as Nginx, Nchan, PHP-FPM, RabbitMQ, Redis and MySQL should also be collected. In addition, there are statistics related to this app, such as replication lag and event store pointer for each event store follower (replication lag based on the pointer value), number of running and open games, user signups and arrivals and alike.

This issue requires several iterations:

  • [x] Set up the infrastructure and show a Grafana dashboard with at least one of the following items. #144
  • [x] Show node dashboard. #144 #148
  • [x] Show MySQL dashboard. #146
  • [x] Show RabbitMQ dashboard. With that, RabbitMQ's web ui can be disabled. #147
  • [x] Show Redis dashboard. #152
  • [x] Show Traefik dashboard. With that, Traefik's web ui can be disabled. #151
  • [x] Show Nchan dashboard. #149
  • [ ] Show PHP-FPM dashboard (maybe via artprima/prometheus-metrics-bundle). #168
  • [ ] Show other relevant application metrics like number of running games, number of written chat messages or event store follower replication lag. Each domain should get its own dashboard. This can be done with the Prometheus Pushgateway, with the Statsd Exporter or other similar solutions deployed as a sidecar.
  • [x] Mention Grafana and Prometheus in README.md. #156

marein avatar May 16 '22 20:05 marein