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 Slide

  2. View Slide

  3. View Slide

  4. View Slide

  5. Infrastructure | Developer

    View Slide

  6. Disclaimer
    I build highly monitored Hello World
    apps

    View Slide

  7. How do you log and monitor?

    View Slide

  8. Application

    View Slide

  9. View Slide

  10. View Slide

  11. Cloud

    View Slide

  12. View Slide

  13. View Slide

  14. Open Source

    View Slide

  15. View Slide

  16. View Slide

  17. Monitoring

    View Slide

  18. Metricbeat: System

    View Slide

  19. Packetbeat

    View Slide

  20. Filebeat Modules

    View Slide

  21. Metricbeat: Modules

    View Slide

  22. Filebeat: Log + JSON

    View Slide

  23. Heartbeat

    View Slide

  24. Auditbeat

    View Slide

  25. More

    View Slide

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

    View Slide

  27. View Slide

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

    View Slide

  29. View Slide

  30. Future

    View Slide

  31. APM

    View Slide

  32. View Slide

  33. 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 Slide

  34. Conclusion

    View Slide

  35. View Slide