Netsimon is an application that monitors the speed index of a web pages.
ubuntu
git clone https://github.com/bashow0316/netsimon.git
sudo apt install chromium-browser
sudo apt install npm
cd dir
Install puppeteer & speedline
cd netsimon/script
npm i puppeteer
npm i speedline
cd netsimon
sudo mkdir elastic01-data && sudo chown -R 1000:1000 elastic01-data
sudo docker-compose up -d
cd netsimon/script
./speedline.sh
Access kibana
Check elasticsearch index
Management
> Index patterns
> Create index pattern
Index pattern
index-*
Click Discover
Change user at cron.d/netsimon
cd netsimon/cron.d
vi netsimon
(Change user)
Move cron.d/netsimon
cd netsimon/cron.d
sudo cp netsimon /etc/cron.d/
sudo systemctl restart cron.service
Make kibana dashboard
Sample dashboard
netsimon/kibana-object/export.ndjson
Change Web page list
Chage file
netsimon/script/speedline.conf
Sample
name URL
- https://developers.google.com/web/tools/lighthouse/audits/speed-index
- https://sites.google.com/a/webpagetest.org/docs/using-webpagetest/metrics/speed-index
- Docker
- Docker-compose
- puppeteer
- speedline
- Elasticsearch
- Kibana
Page tracing
- https://github.com/puppeteer/puppeteer/blob/master/docs/api.md#pagetracing
- https://github.com/puppeteer/puppeteer/blob/master/docs/api.md#class-tracing