For Agent v7.21+ / v6.21+, follow the instructions below to install the PHP APCu check on your host. See Use Community Integrations to install with the Docker Agent or earlier versions of the Agent.
Run the following command to install the Agent integration:
When you configure your Agent, refer to the exporter directly by this file name, or configure an alias for it on your web server. For example, if you’re using Apache, the alias in the web server configuration file would look like this:
Edit the php_apcu.d/conf.yaml file, in the conf.d/ folder at the root of your Agent’s configuration directory to start collecting your php_apcu performance data. See the sample php_apcu.d/conf.yaml file for all available configuration options.
php_apcu.can_connect Returns CRITICAL if the Agent is unable to connect to and collect metrics from the monitored APCu instance. Returns OK otherwise. Statuses: ok, critical