rodri.gz
(RGZ-ELK)
November 3, 2021, 1:24pm
1
Hello !
I want to test the apm with my php application. My application is on a RHEL server.
I have read the guide but I don't really understand where the files come from.
I understand that when you do the rpm -ivh
of the apm-agent-php-1.3.1-1.noarch.rpm
this generates the elastic_apm.so
files and <repo root> /src/bootstrap_php_part.php
then you just have to reference these documents in the php.ini
like this:
extension=elastic_apm.so
elastic_apm.bootstrap_php_part_file=<repo root>/src/bootstrap_php_part.php
I am mistaken? how is it really done?
Thanks in advanced!
riferrei
(Ricardo Ferreira)
November 3, 2021, 1:46pm
2
Hi @rodri.gz ,
The steps you followed so far seem to be correct. The only step missing is the configuration of the APM server. Still, in your php.ini file, you should include the following properties:
extension=elastic_apm.so
elastic_apm.bootstrap_php_part_file=<repo root>/src/bootstrap_php_part.php
elastic_apm.service_name="SomeName"
elastic_apm.server_url="https://cloudid.apm.region.provider.cloud.es.io"
elastic_apm.secret_token="This_Is_Secret"
elastic_apm.environment="Staging"_For_Example"
elastic_apm.service_node_name="machine_node"
elastic_apm.service_version="some_version"
For more information about which properties are available, check this page .
— @riferrei
1 Like
rodri.gz
(RGZ-ELK)
November 3, 2021, 1:54pm
3
Yes! I forgot to say that I had already installed it and it seems to be correct.
Perfect im going to try it . The < repo root > is the ~/root by default , another folder or a repository?
Thank you very much for answering and answering so quickly!
riferrei
(Ricardo Ferreira)
November 3, 2021, 1:57pm
4
It should be a location that your PHP code can reach — whether absolute or relative to the path. As an example, consider this:
elastic_apm.bootstrap_php_part_file=/opt/elastic/apm-agent-php/src/bootstrap_php_part.php
— @riferrei
1 Like
rodri.gz
(RGZ-ELK)
November 3, 2021, 1:58pm
5
i'll try taht.
Perfect , Thank you soooo much!!
1 Like
system
(system)
Closed
November 24, 2021, 9:59am
6
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.