Get metrics from Google Chrome Lighthouse in real time to:
- Visualize and monitor Lighthouse stats.
- Track and audit scores for your websites accessibility, best practices, performance, PWA, and SEO audit scores.
The Lighthouse check is not included in the Datadog Agent package, so you need to install it.
For Agent v7.21+ / v6.21+, follow the instructions below to install the Lighthouse 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:
datadog-agent integration install -t datadog-lighthouse==<INTEGRATION_VERSION>
-
Configure your integration similar to core integrations.
-
Edit the
lighthouse.d/conf.yaml
file in theconf.d/
folder at the root of your Agent's configuration directory to start collecting your Lighthouse metrics. See the sample lighthouse.d/conf.yaml for all available configuration options.
-
Node.js LTS (8.9+).
- Check if Node.js and npm installed:
node -v npm -v
- If not, install Node.js and npm.
-
- Check if installed.
# example root@hostname:~# npm list -g --depth=0 | grep 'lighthouse' |_ lighthouse@5.6.0
- Install if not (no output from above command):
npm install -g lighthouse
-
Either Google Chrome/Chromium or Puppeteer.
-
- Debian/Ubuntu
sudo apt-get update sudo apt-get install -y chromium-browser
- RHEL/CentOS
sudo yum install -y epel-release sudo yum install -y chromium
Note: This integration runs Chrome/Chromium in headless mode. Chrome/Chromium may require kernel 4.4+ on RHEL/CentOS for the headless mode to work properly.
-
- Check if installed.
# example root@hostname:~# npm list -g --depth=0 | grep 'puppeteer' |_ puppeteer@1.12.2
- Install if not (no output from above command):
npm install -g puppeteer --unsafe-perm=true
-
-
Verify if
dd-agent
user is able to run the lighthouse cli.sudo -u dd-agent lighthouse <WEB_URL> --output json --quiet --chrome-flags='--headless'
Run the Agent's status subcommand and look for lighthouse
under the Checks section.
See metadata.csv for a list of metrics provided by this check.
The Lighthouse integration does not include any events.
The Lighthouse integration does not include any service checks.
Need help? Contact Datadog support.