Tutorial: How to use the Grafana Open Source tools for PHP to visualize logs, metrics, traces

Dear Community Users :grafana:

If you are using PHP in your applications, scripts or simply made a home fun project but curious to know how to visualize logs, metrics, traces and in Grafana then this post is for you.

I recently wrote a detailed article about using PHP with the Grafana open source stack for complete visibility into your applications. The article is available in both English and German (Deutsch).

Additionally, I created a bonus video for visual learners in understanding the concept of Observability :telescope: and step-by-step instructions on how to make use of the Grafana built-in features to identify issues easily.

Useful links:

Here are all the links, also check also the GitHub code repository link inside the video description.

Video:

Blog post (English):

Blog post (German/Deutsch):

System Requirements:

  • Any of the following (macOS, Windows, Linux)
  • Docker (docker compose)

Stack overview

  • Grafana for Visualization
  • Loki for logs
  • Tempo for traces (Tracing)
  • Alloy for OTel data collection (OpenTelemetry)

I hope it will be helpful!! :slightly_smiling_face: