Skip to content

awesome-stack/lighthouse-monitoring

Repository files navigation

Lighthouse Monitoring

Monitoring tool for Google Lighthouse.

Requirements

  • Docker

Usage

Build docker image

sh docker/build.sh

Edit target config

cp configs/targets.example.json configs/targets.json
vi configs/targets.json

Run Lighthouse

on Docker

sh run.sh

-> reports/index.html

on Local (not use Docker)

Headless mode (default)

sh runLocal.sh

Visible mode

export SHOW_CHROME=yes
sh runLocal.sh

Run with PagespeedInsights (Optional)

export PSI_API_KEY=${Your_PageSpeedInsights_ApiKey}
sh run.sh

Post to Slack (Optional)

export SLACK_INCOMING_WEBHOOK_URL=${Your_Slack_Incoming_Webhook_URL}
export SLACK_CHANNEL_NAME='#debug'
sh runPostSlack.sh

Post to ElasticSearch (Optional)

cp configs/esEnv.example.json configs/esEnv.json
vi configs/esEnv.json
sh runPostEs.sh

Post to MySQL (Optional)

cp configs/mysqlEnv.example.json configs/mysqlEnv.json
vi configs/mysqlEnv.json
sh runPostMySQL.sh

References