Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Monitor Your PHP Application with the Elastic Stack

Monitor Your PHP Application with the Elastic Stack

"Every outage is like a murder mystery" is a common complaint. But it doesn't have to be!
This talk gives an overview on how to monitor PHP applications from all possible sides. We dive into:
* System metrics: Keep track of network traffic and system load.
* Application metrics: Gather metrics from nginx or Apache, php-fpm, and MySQL.
* Application logs: Collect logs in a structured format or parse them to extract all the relevant information.
* Uptime monitoring: Ping services and actively monitor their availability and response time.
* Tracing: Follow calls through your application and visualize them.

And we will do all of that live since it is so easy and much more interactive that way.

Philipp Krenn

June 08, 2018
Tweet

More Decks by Philipp Krenn

Other Decks in Programming

Transcript

  1. Monitor Your PHP Applications
    with Logs, Metrics, Pings & Traces
    Philipp Krenn̴̴̴̴̴@xeraa

    View full-size slide

  2. Infrastructure | Developer

    View full-size slide

  3. Disclaimer
    I build highly monitored Hello World
    apps

    View full-size slide

  4. How do you log and monitor?

    View full-size slide

  5. Metricbeat: System

    View full-size slide

  6. Filebeat Modules

    View full-size slide

  7. Metricbeat: Modules

    View full-size slide

  8. Filebeat: Log + JSON

    View full-size slide

  9. Alerts*
    * X-Pack and part of the Elastic Cloud

    View full-size slide

  10. Machine Learning**
    Anomaly Detection of Time Series Data
    ** X-Pack

    View full-size slide

  11. GA: Node.js, React, Python
    Beta: Ruby, Go, Java
    https://github.com/frankkoornstra/elastic-apm-agent
    https://github.com/philkra/elastic-apm-php-agent

    View full-size slide