Web server metrics
The last metrics that we want to have in our centralized logger is everything related to the HTTP requests and responses performance. We could add those metrics inside the Flask application alongside our timers, but it's better to do it at the web server level to reduce the overhead and to make metrics compatible with content that's not generated by Flask.
For instance, if nginx serves static files directly, we still want to track that. Graylog has a marketplace (https://marketplace.graylog.org) for extending the system with content packs, and there's an nginx content pack (https://github.com/Graylog2/graylog-contentpack-nginx) that will parse nginx's access and error logs to push them in Graylog.
The pack comes with a ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access