Connect your PHP applications to Datadog to:
The PHP integration enables you to monitor any custom metric by instrumenting a few lines of code. For instance, you can have a metric that returns the number of page views or the time of any function call. For additional information about the PHP integration, please refer to this guide on submitting metrics. For advanced usage, please refer to the documentation in the repository.
Install the library by cloning the Git repository:
git clone firstname.lastname@example.org:DataDog/php-datadogstatsd.git
Start instrumenting your code:
# Require the datadogstatsd.php library file require './libraries/datadogstatsd.php'; # Increment a counter. DataDogStatsD::increment('your.data.point');
Go to the Metrics explorer page and see that it works!
The PHP integration does not include any metric at this time.
The PHP integration does not include any event at this time.
The PHP integration does not include any service check at this time.
Need help? Contact Datadog Support.
Learn more about infrastructure monitoring and all our integrations on our blog