Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.34 KB

README.md

File metadata and controls

37 lines (25 loc) · 1.34 KB
☝️ Support to get errors on the Kibana dashboard was a missing feature and was introduced in apm-agent-php 1.4.1 #409

Elastic APM + Kibana + A simple PHP project

Elastic APM & Kibana dev environment with a simple PHP project to test apm-agent-php.

Running this project you'll end with a local dev environment as such:

Prerequisites

APM Agent for PHP

Get apm-agent-php_1.1_all.deb to be installed as a PHP extension during docker-compose (build,up).

# fetch the Elastic apm-agent-php deb package
wget https://github.com/elastic/apm-agent-php/releases/download/v1.1/apm-agent-php_1.1_all.deb

Get running!

docker-compose up

Now, visit http://localhost to see the index.php.

Assuming all went well you'll see the simple PHP project php-project service on

http://localhost:5601/app/apm/services?rangeFrom=now-15m&rangeTo=now

Side note

The docker-compose.yml was copied from https://www.elastic.co/guide/en/apm/get-started/current/quick-start-overview.html. Then I added php service, for testing APM on a simple PHP project.